2.98. test_vtr module

class test_vtr.Tag(dot1, vlan)

Bases: tuple

dot1

Alias for field number 0

vlan

Alias for field number 1

class test_vtr.TestVtr(methodName='runTest')

Bases: framework.VppTestCase

VTR Test Case

add_tags(packet, tags)
classmethod create_hosts_and_learn(count)
create_packet(src_if, dst_if, do_dot1=True)
remove_tags(packet, tags)
setUp()

Clear trace and packet infos 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_1ad_vtr_pop_1()

1AD VTR pop 1 test

test_1ad_vtr_pop_2()

1AD VTR pop 2 test

test_1ad_vtr_push_1ad()

1AD VTR push 1 1AD test

test_1ad_vtr_push_1q()

1AD VTR push 1 1Q test

test_1ad_vtr_push_2ad()

1AD VTR push 2 1AD test

test_1ad_vtr_push_2q()

1AD VTR push 2 1Q test

test_1ad_vtr_translate_1_1ad()

1AD VTR translate 1 -> 1 1AD test

test_1ad_vtr_translate_1_1q()

1AD VTR translate 1 -> 1 1Q test

test_1ad_vtr_translate_1_2ad()

1AD VTR translate 1 -> 2 1AD test

test_1ad_vtr_translate_1_2q()

1AD VTR translate 1 -> 2 1Q test

test_1ad_vtr_translate_2_1ad()

1AD VTR translate 2 -> 1 1AD test

test_1ad_vtr_translate_2_1q()

1AD VTR translate 2 -> 1 1Q test

test_1ad_vtr_translate_2_2ad()

1AD VTR translate 2 -> 2 1AD test

test_1ad_vtr_translate_2_2q()

1AD VTR translate 2 -> 2 1Q test

test_1q_vtr_pop_1()

1Q VTR pop 1 test

test_1q_vtr_push_1()

1Q VTR push 1 test

test_1q_vtr_push_2()

1Q VTR push 2 test

test_1q_vtr_translate_1_1()

1Q VTR translate 1 -> 1 test

test_1q_vtr_translate_1_2()

1Q VTR translate 1 -> 2 test

vtr_test(swif, tags)