2.43. test_ipip module

IP{4,6} over IP{v,6} tunnel functional tests

class test_ipip.TestIPIP(methodName='runTest')

Bases: framework.VppTestCase

IPIP Test Case

generate_ip4_frags(payload_length, fragment_size)
payload(len)
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_ipip4()

ip{v4,v6} over ip4 test

test_ipip_create()

ipip create / delete interface test

test_ipip_vrf_create()

ipip create / delete interface VRF test

validate(rx, expected)
class test_ipip.TestIPIP6(methodName='runTest')

Bases: framework.VppTestCase

IPIP6 Test Case

destroy_tunnel()
generate_ip6_frags(payload_length, fragment_size)
generate_ip6_hairpin_frags(payload_length, fragment_size)
payload(len)
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

setup_tunnel()
tearDown()

Show various debug prints after each test

classmethod tearDownClass()

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

test_decap()

ip{v4,v6} over ip6 test decap

test_encap()

ip{v4,v6} over ip6 test encap

test_frag()

ip{v4,v6} over ip6 test frag

test_ipip_create()

ipip create / delete interface test

test_ipip_vrf_create()

ipip create / delete interface VRF test

validate(rx, expected)
test_ipip.ipip_add_tunnel(test, src, dst, table_id=0, tc_tos=255)

Add a IPIP tunnel