summaryrefslogtreecommitdiffstats
path: root/test/vpp_lo_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_lo_interface.py')
-rw-r--r--test/vpp_lo_interface.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/vpp_lo_interface.py b/test/vpp_lo_interface.py
new file mode 100644
index 00000000000..ed9ac725db5
--- /dev/null
+++ b/test/vpp_lo_interface.py
@@ -0,0 +1,16 @@
+
+from vpp_interface import VppInterface
+
+
+class VppLoInterface(VppInterface):
+ """
+ VPP loopback interface
+ """
+
+ def __init__(self, test, lo_index):
+ """ Create VPP loopback interface """
+ self._lo_index = lo_index
+ self._test = test
+ r = self.test.vapi.create_loopback()
+ self._sw_if_index = r.sw_if_index
+ self.post_init_setup()