2.67. test_ipsec_ah module¶
- class test_ipsec_ah.ConfigIpsecAH(methodName='runTest')¶
Bases:
template_ipsec.TemplateIpsecBasic 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¶
alias of
scapy.layers.ipsec.AH
- 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', 'ah4-decrypt']¶
- tra4_encrypt_node_name = 'ah4-encrypt'¶
- tra6_decrypt_node_name = ['ah6-decrypt', 'ah6-decrypt']¶
- tra6_encrypt_node_name = 'ah6-encrypt'¶
- tun4_decrypt_node_name = ['ah4-decrypt', 'ah4-decrypt']¶
- tun4_encrypt_node_name = 'ah4-encrypt'¶
- tun6_decrypt_node_name = ['ah6-decrypt', 'ah6-decrypt']¶
- tun6_encrypt_node_name = 'ah6-encrypt'¶
- unconfig_network()¶
- class test_ipsec_ah.TemplateIpsecAh(methodName='runTest')¶
Bases:
test_ipsec_ah.ConfigIpsecAHBasic 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.IpsecTcpTestsIpsec AH - TCP tests
- class test_ipsec_ah.TestIpsecAh2(methodName='runTest')¶
Bases:
test_ipsec_ah.TemplateIpsecAh,template_ipsec.IpsecTra46Tests,template_ipsec.IpsecTun46TestsIpsec 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.IpsecTun6Ipsec 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.IpsecTun4HandoffTestsIpsec AH Handoff
- class test_ipsec_ah.TestIpsecAhTun(methodName='runTest')¶
Bases:
test_ipsec_ah.TemplateIpsecAh,template_ipsec.IpsecTun46TestsIpsec AH - TUN encap tests
- gen_pkts(sw_intf, src, dst, count=1, payload_size=54)¶
- gen_pkts6(p, sw_intf, src, dst, count=1, payload_size=54)¶
- setUp()¶
Clear trace before running each test
- verify_encrypted(p, sa, rxs)¶
- verify_encrypted6(p, sa, rxs)¶
- class test_ipsec_ah.TestIpsecAhTun2(methodName='runTest')¶
Bases:
test_ipsec_ah.TemplateIpsecAh,template_ipsec.IpsecTun46TestsIpsec AH - TUN encap tests
- gen_pkts(sw_intf, src, dst, count=1, payload_size=54)¶
- gen_pkts6(p, sw_intf, src, dst, count=1, payload_size=54)¶
- setUp()¶
Clear trace before running each test
- verify_encrypted(p, sa, rxs)¶
- verify_encrypted6(p, sa, rxs)¶