2.124. vpp_sub_interface module¶
-
class
vpp_sub_interface.
L2_VTR_OP
¶ Bases:
object
-
L2_DISABLED
= 0¶
-
L2_POP_1
= 3¶
-
L2_POP_2
= 4¶
-
L2_PUSH_1
= 1¶
-
L2_PUSH_2
= 2¶
-
L2_TRANSLATE_1_1
= 5¶
-
L2_TRANSLATE_1_2
= 6¶
-
L2_TRANSLATE_2_1
= 7¶
-
L2_TRANSLATE_2_2
= 8¶
-
-
class
vpp_sub_interface.
VppDot1ADSubint
(test, parent, sub_id, outer_vlan, inner_vlan)¶ Bases:
vpp_sub_interface.VppSubInterface
-
add_dot1_layer
(packet)¶
-
create_arp_req
()¶ Create ARP request applicable for this interface
-
create_ndp_req
()¶ Create NDP - NS applicable for this interface
-
inner_vlan
¶ Inner VLAN tag
-
outer_vlan
¶ Outer VLAN tag
-
remove_dot1_layer
(packet)¶
-
-
class
vpp_sub_interface.
VppDot1QSubint
(test, parent, sub_id, vlan=None)¶ Bases:
vpp_sub_interface.VppSubInterface
-
add_dot1_layer
(packet)¶
-
create_arp_req
()¶ Create ARP request applicable for this interface
-
create_ndp_req
()¶ Create NDP - NS applicable for this interface
-
remove_dot1_layer
(packet)¶
-
vlan
¶ VLAN tag
-
-
class
vpp_sub_interface.
VppP2PSubint
(test, parent, sub_id, remote_mac)¶ Bases:
vpp_sub_interface.VppSubInterface
-
add_dot1_layer
(packet)¶
-
create_arp_req
()¶ Create ARP request applicable for this interface
-
create_ndp_req
()¶ Create NDP - NS applicable for this interface
-
remove_dot1_layer
(packet)¶
-
-
class
vpp_sub_interface.
VppSubInterface
(test, parent, sub_id)¶ Bases:
vpp_pg_interface.VppPGInterface
-
add_dot1_layer
(pkt)¶
-
add_dot1ad_layer
(packet, outer, inner)¶
-
add_dot1q_layer
(packet, vlan)¶
-
create_arp_req
()¶ Create ARP request applicable for this interface
-
create_ndp_req
()¶ Create NDP - NS applicable for this interface
-
parent
¶ Parent interface for this sub-interface
-
remove_dot1ad_layer
(packet, outer=None, inner=None)¶
-
remove_dot1q_layer
(packet, vlan=None)¶
-
remove_vpp_config
()¶
-
resolve_arp
()¶ Resolve ARP using provided packet-generator interface
- Parameters
pg_interface – interface used to resolve, if None then this interface is used
-
resolve_ndp
()¶ Resolve NDP using provided packet-generator interface
- Parameters
pg_interface – interface used to resolve, if None then this interface is used
timeout – how long to wait for response before giving up
-
set_sw_if_index
(sw_if_index)¶
-
set_vtr
(vtr, push1q=0, tag=None, inner=None, outer=None)¶
-
sub_id
¶ Sub-interface ID
-
tag1
¶
-
tag2
¶
-
vtr
¶
-