2.65. 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

test_mipip4()

p2mp IPv4 tunnel Tests

validate(rx, expected)
verify_ip4ip4_encaps(a, p_ip4s, p_ip4_encaps)
verify_ip6ip4_encaps(a, p_ip6s, p_ip4_encaps)
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_ipip6()

ip{v4,v6} over ip6 test

test_ipip_create()

ipip create / delete interface test

test_ipip_vrf_create()

ipip create / delete interface VRF test

validate(rx, expected)
verify_ip4ip6_encaps(a, p_ip4s, p_ip6_encaps)
verify_ip6ip6_encaps(a, p_ip6s, p_ip6_encaps)
class test_ipip.TestMPLS(methodName='runTest')

Bases: framework.VppTestCase

MPLS Test Case

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_mpls()

MPLS over ip{6,4} test

test_ipip.ipip_add_tunnel(test, src, dst, table_id=0, dscp=0, flags=0)

Add a IPIP tunnel