test_mpls module

class test_mpls.TestMPLS(methodName='runTest')

Bases: framework.VppTestCase

MPLS Test Case

create_stream_ip4(src_if, dst_ip)
create_stream_labelled_ip4(src_if, mpls_labels, mpls_ttl=255, ping=0, ip_itf=None)
create_stream_labelled_ip6(src_if, mpls_label, mpls_ttl)
setUp()
classmethod setUpClass()
tearDown()
test_bind()

MPLS Local Label Binding test

test_deag()

MPLS Deagg

test_imposition()

MPLS label imposition test

test_swap()

MPLS label swap tests

test_tunnel()

MPLS Tunnel Tests

test_v4_exp_null()

MPLS V4 Explicit NULL test

test_v6_exp_null()

MPLS V6 Explicit NULL test

verify_capture_ip4(src_if, capture, sent, ping_resp=0)
verify_capture_ip6(src_if, capture, sent)
verify_capture_labelled(src_if, capture, sent, mpls_labels, ttl=254, num=0)
verify_capture_labelled_ip4(src_if, capture, sent, mpls_labels)
verify_capture_tunneled_ip4(src_if, capture, sent, mpls_labels)
static verify_filter(capture, sent)
verify_mpls_stack(rx, mpls_labels, ttl=255, num=0)