2.163. vpp_ip module¶
IP Types
- class vpp_ip.DpoProto¶
Bases:
object- DPO_PROTO_BIER = 4¶
- DPO_PROTO_ETHERNET = 3¶
- DPO_PROTO_IP4 = 0¶
- DPO_PROTO_IP6 = 1¶
- DPO_PROTO_MPLS = 2¶
- DPO_PROTO_NSH = 5¶
- class vpp_ip.VppIpAddressUnion(addr)¶
Bases:
object- property address¶
- property bytes¶
- encode()¶
- property length¶
- property version¶
- class vpp_ip.VppIpMPrefix(saddr, gaddr, glen)¶
Bases:
object- encode()¶
- property length¶
- property version¶
- class vpp_ip.VppIpPathMtu(test, nh, pmtu, table_id=0)¶
Bases:
vpp_object.VppObject- add_vpp_config()¶
Add the configuration for this object to vpp.
- modify(pmtu)¶
- 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_ip.VppIpPuntPolicer(test, policer_index, is_ip6=False)¶
Bases:
vpp_object.VppObject- add_vpp_config()¶
Add the configuration for this object to vpp.
- 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_ip.VppIpPuntRedirect(test, rx_index, tx_index, nh_addr)¶
Bases:
vpp_object.VppObject- add_vpp_config()¶
Add the configuration for this object to vpp.
- encode()¶
- get_vpp_config()¶
- 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_ip.get_dpo_proto(addr)¶