2.84. test_vxlan module

class test_vxlan.TestVxlan(*args)

Bases: template_bd.BridgeDomain, framework.VppTestCase

VXLAN Test Case

classmethod add_del_mcast_tunnels_load(is_add)

add or del tunnels to test vxlan stability

classmethod add_del_shared_mcast_dst_load(is_add)

add or del tunnels sharing the same mcast dst to test vxlan ref_count mechanism

classmethod add_mcast_tunnels_load()
classmethod add_shared_mcast_dst_load()
check_encapsulation(pkt, vni, local_only=False, mcast_pkt=False)

Verify the encapsulation

classmethod create_vxlan_flood_test_bd(vni, n_ucast_tunnels)
decapsulate(pkt)

Decapsulate the original payload frame by removing VXLAN header

classmethod del_mcast_tunnels_load()
classmethod del_shared_mcast_dst_load()
encap_mcast(pkt, src_ip, src_mac, vni)

Encapsulate the original payload frame by adding VXLAN header with its UDP, IP and Ethernet fields

encapsulate(pkt, vni)

Encapsulate the original payload frame by adding VXLAN header with its UDP, IP and Ethernet fields

ip_range(start, end)

range of remote ip’s

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_encap_big_packet()

Encapsulation test send big frame from pg1 Verify receipt of encapsulated frames on pg0

test_vxlan.reassemble(listoffragments)