2.78. vpp_sub_interface module

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_ndp_req()
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_ndp_req()
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_ndp_req()
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_ndp_req()
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_ndp()
set_vtr(vtr, push1q=0, tag=None, inner=None, outer=None)
sub_id

Sub-interface ID

tag1
tag2
vtr