summaryrefslogtreecommitdiffstats
path: root/test/vpp_sub_interface.py
diff options
context:
space:
mode:
authorPavel Kotucek <pkotucek@cisco.com>2017-06-20 14:00:26 +0200
committerJohn Lo <loj@cisco.com>2017-08-01 14:44:13 +0000
commit15ac81c16fba83033090299413a3a2dbb848a0f9 (patch)
treeca9617e0faa21847be31e47c0c65ffc0cacf47eb /test/vpp_sub_interface.py
parent5b311202b82a827c712d2cb7604c56049266adc9 (diff)
P2P Ethernet
Change-Id: Idb97e573961b3bc2acdeef77582314590795f8c3 Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'test/vpp_sub_interface.py')
-rw-r--r--test/vpp_sub_interface.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/vpp_sub_interface.py b/test/vpp_sub_interface.py
index dcd82da236e..cabee88deb6 100644
--- a/test/vpp_sub_interface.py
+++ b/test/vpp_sub_interface.py
@@ -188,3 +188,26 @@ class VppDot1ADSubint(VppSubInterface):
def remove_dot1_layer(self, packet):
return self.remove_dot1ad_layer(packet, self.outer_vlan,
self.inner_vlan)
+
+
+class VppP2PSubint(VppSubInterface):
+
+ def __init__(self, test, parent, sub_id, remote_mac):
+ r = test.vapi.create_p2pethernet_subif(parent.sw_if_index,
+ remote_mac, sub_id)
+ self._sw_if_index = r.sw_if_index
+ super(VppP2PSubint, self).__init__(test, parent, sub_id)
+
+ def add_dot1_layer(self, packet):
+ return packet
+
+ def remove_dot1_layer(self, packet):
+ return packet
+
+ def create_arp_req(self):
+ packet = VppPGInterface.create_arp_req(self)
+ return packet
+
+ def create_ndp_req(self):
+ packet = VppPGInterface.create_ndp_req(self)
+ return packet