aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_sub_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_sub_interface.py')
-rw-r--r--test/vpp_sub_interface.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/vpp_sub_interface.py b/test/vpp_sub_interface.py
index 15cd6edb8e0..4961ba5ff69 100644
--- a/test/vpp_sub_interface.py
+++ b/test/vpp_sub_interface.py
@@ -2,10 +2,21 @@ from scapy.layers.l2 import Dot1Q
import abc
import six
from vpp_pg_interface import VppPGInterface
-from vpp_papi_provider import L2_VTR_OP
from vpp_interface import VppInterface
+class L2_VTR_OP:
+ L2_DISABLED = 0
+ L2_PUSH_1 = 1
+ L2_PUSH_2 = 2
+ L2_POP_1 = 3
+ L2_POP_2 = 4
+ L2_TRANSLATE_1_1 = 5
+ L2_TRANSLATE_1_2 = 6
+ L2_TRANSLATE_2_1 = 7
+ L2_TRANSLATE_2_2 = 8
+
+
@six.add_metaclass(abc.ABCMeta)
class VppSubInterface(VppPGInterface):