2.48. test_span module¶
-
class
test_span.
Tag
(dot1, vlan)¶ Bases:
tuple
-
dot1
¶ Alias for field number 0
-
vlan
¶ Alias for field number 1
-
-
class
test_span.
TestSpan
(methodName='runTest')¶ Bases:
framework.VppTestCase
SPAN Test Case
-
bridge
(sw_if_index, is_add=1)¶
-
classmethod
create_host_lists
(count)¶ Method to create required number of MAC and IPv4 addresses. Create required number of host MAC addresses and distribute them among interfaces. Create host IPv4 address for every host MAC address too.
Parameters: count – Number of hosts to create MAC and IPv4 addresses for.
-
create_stream
(src_if, packet_sizes, do_dot1=False)¶
-
decap_gre
(pkt)¶ Decapsulate the original payload frame by removing GRE header
-
decap_vxlan
(pkt)¶ Decapsulate the original payload frame by removing VXLAN header
-
setUp
()¶
-
classmethod
setUpClass
()¶
-
tearDown
()¶
-
test_device_span
()¶ SPAN device rx mirror test
- Test scenario:
- config 3 interfaces, pg0 l2xconnected with pg1
- sending l2 eth packets between 2 interfaces (pg0, pg1) and mirrored to pg2 64B, 512B, 1518B, 9018B (ether_size) burst of packets per interface
-
test_l2_tx_span
()¶ SPAN l2 tx mirror test
-
test_span_l2_rx
()¶ SPAN l2 rx mirror test
-
test_span_l2_rx_dst_gre_subif_vtr
()¶ SPAN l2 rx mirror into gre-subif+vtr
-
test_span_l2_rx_dst_vtr
()¶ SPAN l2 rx mirror into subif+vtr
-
test_span_l2_rx_dst_vxlan
()¶ SPAN l2 rx mirror into vxlan test
-
verify_capture
(dst_if, capture_pg1, capture_pg2)¶
-
xconnect
(a, b, is_add=1)¶
-