2.87. test_linux_cp module¶
- class test_linux_cp.TestLinuxCP(methodName='runTest')¶
Bases:
framework.VppTestCaseLinux Control Plane
- extra_vpp_plugin_config = ['plugin', 'linux_cp_plugin.so', '{', 'enable', '}', 'plugin', 'linux_cp_unittest_plugin.so', '{', 'enable', '}']¶
- 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
- test_linux_cp_tap()¶
Linux CP TAP
- test_linux_cp_tun()¶
Linux CP TUN
- class test_linux_cp.TestLinuxCPIpsec(methodName='runTest')¶
Bases:
template_ipsec.TemplateIpsec,test_ipsec_tun_if_esp.TemplateIpsecItf4,template_ipsec.IpsecTun4IPsec Interface IPv4
- extra_vpp_plugin_config = ['plugin', 'linux_cp_plugin.so', '{', 'enable', '}', 'plugin', 'linux_cp_unittest_plugin.so', '{', 'enable', '}']¶
- gen_encrypt_pkts(p, sa, sw_intf, src, dst, count=1, payload_size=54)¶
- setUp()¶
Clear trace before running each test
- tearDown()¶
Show various debug prints after each test
- test_linux_cp_ipsec4_tun()¶
Linux CP Ipsec TUN
- verify_decrypted(p, rxs)¶
- verify_encrypted(p, sa, rxs)¶
- class test_linux_cp.VppLcpPair(test, phy, host)¶
Bases:
vpp_object.VppObject- add_vpp_config()¶
Add the configuration for this object to vpp.
- object_id()¶
Return a unique string representing this object.
- query_vpp_config()¶
Query the vpp configuration.
- Returns
True if the object is configured
- remove_vpp_config()¶
Remove the configuration for this object from vpp.