2.73. 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)
create_stream(src_if, packet_sizes, do_dot1=False, bcast=False)
decap_erspan(pkt, session)

Decapsulate the original payload frame by removing ERSPAN header

decap_gre(pkt)

Decapsulate the original payload frame by removing GRE header

decap_vxlan(pkt)

Decapsulate the original payload frame by removing VXLAN header

remove_tags(packet, tags)
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

test_device_span()

SPAN device rx mirror

test_l2_bcast_mirror()

SPAN l2 broadcast mirror

test_l2_rx_tx_span()

SPAN l2 rx tx mirror

test_l2_tx_span()

SPAN l2 tx mirror

test_span_l2_rx()

SPAN l2 rx mirror

test_span_l2_rx_dst_1ad_vtr()

SPAN l2 rx mirror into 1ad subif+vtr

test_span_l2_rx_dst_1q_vtr()

SPAN l2 rx mirror into 1q subif+vtr

test_span_l2_rx_dst_gre_erspan()

SPAN l2 rx mirror into gre-erspan

test_span_l2_rx_dst_gre_subif_vtr()

SPAN l2 rx mirror into gre-subif+vtr

test_span_l2_rx_dst_vxlan()

SPAN l2 rx mirror into vxlan

verify_capture(cap1, cap2)
xconnect(a, b, is_add=1)