2.143. vpp_l2 module¶
L2/BD Types
-
class
vpp_l2.
BRIDGE_FLAGS
¶ Bases:
object
-
ARP_TERM
= 16¶
-
ARP_UFWD
= 32¶
-
FLOOD
= 4¶
-
FWD
= 2¶
-
LEARN
= 1¶
-
NONE
= 0¶
-
UU_FLOOD
= 8¶
-
-
class
vpp_l2.
VppBridgeDomain
(test, bd_id, flood=1, uu_flood=1, forward=1, learn=1, arp_term=1, arp_ufwd=0)¶ Bases:
vpp_object.VppObject
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
-
class
vpp_l2.
VppBridgeDomainArpEntry
(test, bd, mac, ip)¶ Bases:
vpp_object.VppObject
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
-
class
vpp_l2.
VppBridgeDomainPort
(test, bd, itf, port_type=0)¶ Bases:
vpp_object.VppObject
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
-
class
vpp_l2.
VppL2FibEntry
(test, bd, mac, itf, static_mac=0, filter_mac=0, bvi_mac=-1)¶ Bases:
vpp_object.VppObject
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
-
class
vpp_l2.
VppL2Vtr
(test, itf, op)¶ Bases:
vpp_object.VppObject
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
-
vpp_l2.
find_bridge_domain
(test, bd_id)¶
-
vpp_l2.
find_bridge_domain_arp_entry
(test, bd_id, mac, ip)¶
-
vpp_l2.
find_bridge_domain_port
(test, bd_id, sw_if_index)¶
-
vpp_l2.
find_l2_fib_entry
(test, bd_id, mac, sw_if_index)¶