2.98. test_srmpls module

class test_srmpls.TestSRMPLS(methodName='runTest')

Bases: framework.VppTestCase

SR-MPLS Test Case

create_stream_ip4(src_if, dst_ip, ip_ttl=64, ip_dscp=0)
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_sr_mpls()

SR MPLS

verify_capture_labelled_ip4(src_if, capture, sent, mpls_labels, ip_ttl=None)
verify_capture_tunneled_ip4(src_if, capture, sent, mpls_labels)
test_srmpls.verify_filter(capture, sent)
test_srmpls.verify_mpls_stack(tst, rx, mpls_labels)