2.41. 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, dst_ip=None, n=257)¶
-
create_stream_labelled_ip6
(src_if, mpls_label, mpls_ttl, dst_ip=None)¶
-
send_and_assert_no_replies
(intf, pkts, remark)¶
-
setUp
()¶
-
tearDown
()¶
-
test_bind
()¶ MPLS Local Label Binding test
-
test_deag
()¶ MPLS Deagg
-
test_imposition
()¶ MPLS label imposition test
-
test_interface_rx
()¶ MPLS Interface Receive
-
test_mcast_head
()¶ MPLS Multicast Head-end
-
test_mcast_ip4_tail
()¶ MPLS IPv4 Multicast Tail
-
test_mcast_ip6_tail
()¶ MPLS IPv6 Multicast Tail
-
test_mcast_mid_point
()¶ MPLS Multicast Mid Point
-
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, ttl=255, top=None)¶
-
-
class
test_mpls.
TestMPLSDisabled
(methodName='runTest')¶ Bases:
framework.VppTestCase
MPLS disabled
-
send_and_assert_no_replies
(intf, pkts, remark)¶
-
setUp
()¶
-
tearDown
()¶
-
test_mpls_disabled
()¶ MPLS Disabled
-
-
class
test_mpls.
TestMPLSL2
(methodName='runTest')¶ Bases:
framework.VppTestCase
MPLS-L2
-
setUp
()¶
-
tearDown
()¶
-
test_vpls
()¶ Virtual Private LAN Service
-
test_vpws
()¶ Virtual Private Wire Service
-
verify_capture_tunneled_ethernet
(capture, sent, mpls_labels, ttl=255, top=None)¶
-
-
class
test_mpls.
TestMPLSPIC
(methodName='runTest')¶ Bases:
framework.VppTestCase
MPLS PIC edge convergence
-
setUp
()¶
-
tearDown
()¶
-
test_mpls_ebgp_pic
()¶ MPLS eBGP PIC edge convergence
- setup many eBGP VPN routes via a pair of eBGP peers
- Check EMCP forwarding to these peers
- withdraw one eBGP path - expect LB across remaining eBGP
-
test_mpls_ibgp_pic
()¶ MPLS iBGP PIC edge convergence
- setup many iBGP VPN routes via a pair of iBGP peers.
- Check EMCP forwarding to these peers
- withdraw the IGP route to one of these peers.
- check forwarding continues to the remaining peer
-
test_mpls_v6_ebgp_pic
()¶ MPLSv6 eBGP PIC edge convergence
- setup many eBGP VPNv6 routes via a pair of eBGP peers
- Check EMCP forwarding to these peers
- withdraw one eBGP path - expect LB across remaining eBGP
-
-
test_mpls.
verify_filter
(capture, sent)¶
-
test_mpls.
verify_mpls_stack
(tst, rx, mpls_labels, ttl=255, num=0)¶