2.57. test_ipsec_ah module

class test_ipsec_ah.ConfigIpsecAH(methodName='runTest')

Bases: template_ipsec.TemplateIpsec

Basic test for IPSEC using AH transport and Tunnel mode

TRANSPORT MODE:

— encrypt —

|pg2| <——-> |VPP|

— decrypt —

TUNNEL MODE:

— encrypt — plain —

|pg0| <——- |VPP| <—— |pg1|

— — —

— decrypt — plain —

|pg0| ——-> |VPP| ——> |pg1|

— — —

config_ah_tra(params)
config_ah_tun(params)
config_network(params)
encryption_type
net_objs = []
setUp()

Clear trace before running each test

classmethod setUpClass()

Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api

tearDown()

Show various debug prints after each test

classmethod tearDownClass()

Perform final cleanup after running all tests in this test-case

tra4_decrypt_node_name = 'ah4-decrypt'
tra4_encrypt_node_name = 'ah4-encrypt'
tra6_decrypt_node_name = 'ah6-decrypt'
tra6_encrypt_node_name = 'ah6-encrypt'
tun4_decrypt_node_name = 'ah4-decrypt'
tun4_encrypt_node_name = 'ah4-encrypt'
tun6_decrypt_node_name = 'ah6-decrypt'
tun6_encrypt_node_name = 'ah6-encrypt'
unconfig_network()
class test_ipsec_ah.TemplateIpsecAh(methodName='runTest')

Bases: test_ipsec_ah.ConfigIpsecAH

Basic test for IPSEC using AH transport and Tunnel mode

TRANSPORT MODE:

— encrypt —

|pg2| <——-> |VPP|

— decrypt —

TUNNEL MODE:

— encrypt — plain —

|pg0| <——- |VPP| <—— |pg1|

— — —

— decrypt — plain —

|pg0| ——-> |VPP| ——> |pg1|

— — —

setUp()

Clear trace before running each test

classmethod setUpClass()

Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api

tearDown()

Show various debug prints after each test

classmethod tearDownClass()

Perform final cleanup after running all tests in this test-case

class test_ipsec_ah.TestIpsecAh1(methodName='runTest')

Bases: test_ipsec_ah.TemplateIpsecAh, template_ipsec.IpsecTcpTests

Ipsec AH - TCP tests

class test_ipsec_ah.TestIpsecAh2(methodName='runTest')

Bases: test_ipsec_ah.TemplateIpsecAh, template_ipsec.IpsecTra46Tests, template_ipsec.IpsecTun46Tests

Ipsec AH w/ SHA1

class test_ipsec_ah.TestIpsecAhAll(methodName='runTest')

Bases: test_ipsec_ah.ConfigIpsecAH, template_ipsec.IpsecTra4, template_ipsec.IpsecTra6, template_ipsec.IpsecTun4, template_ipsec.IpsecTun6

Ipsec AH all Algos

setUp()

Clear trace before running each test

tearDown()

Show various debug prints after each test

test_integ_algs()

All Engines SHA[1_96, 256, 384, 512] w/ & w/o ESN

class test_ipsec_ah.TestIpsecAhHandoff(methodName='runTest')

Bases: test_ipsec_ah.TemplateIpsecAh, template_ipsec.IpsecTun6HandoffTests, template_ipsec.IpsecTun4HandoffTests

Ipsec AH Handoff