2.16. 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
- abstract check_encapsulation(pkt, vni, local_only=False)¶
Verify the encapsulation
- abstract decapsulate(pkt)¶
Decapsulate packet
- abstract encap_mcast(pkt, src_ip, src_mac, vni)¶
Encapsulate mcast packet
- abstract encapsulate(pkt, vni)¶
Encapsulate packet
- property frame_reply¶
Ethernet frame modeling a generic reply
- property frame_request¶
Ethernet frame modeling a generic request
- abstract ip_range(start, end)¶
range of remote ip’s
- 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