2.14. template_bd module

class template_bd.BridgeDomain

Bases: object

Bridge domain abstraction

assert_eq_pkts(pkt1, pkt2)

Verify the Ether, IP, UDP, payload are equal in both packets

check_encapsulation(pkt, vni, local_only=False)

Verify the encapsulation

decapsulate(pkt)

Decapsulate packet

encap_mcast(pkt, src_ip, src_mac, vni)

Encapsulate mcast packet

encapsulate(pkt, vni)

Encapsulate packet

frame_reply

Ethernet frame modeling a generic reply

frame_request

Ethernet frame modeling a generic request

test_decap()

Decapsulation test Send encapsulated frames from pg0 Verify receipt of decapsulated frames on pg1

test_encap()

Encapsulation test Send frames from pg1 Verify receipt of encapsulated frames on pg0

test_mcast_flood()

Multicast flood test Send frames from pg2 Verify receipt of encapsulated frames on pg0

test_mcast_rcv()

Multicast receive test Send 20 encapsulated frames from pg0 only 10 match unicast tunnels Verify receipt of 10 decap frames on pg2

test_ucast_flood()

Unicast flood test Send frames from pg3 Verify receipt of encapsulated frames on pg0