aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_pg.py1
-rw-r--r--test/vpp_pg_interface.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/test_pg.py b/test/test_pg.py
index da3b2254968..14e149b5bcf 100644
--- a/test/test_pg.py
+++ b/test/test_pg.py
@@ -38,6 +38,7 @@ class TestPgTun(VppTestCase):
for i in self.pg_interfaces:
i.unconfig_ip4()
i.admin_down()
+ i.remove_vpp_config()
super(TestPgTun, self).tearDown()
def test_pg_tun(self):
diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py
index 1e02801cda9..cd99818caa4 100644
--- a/test/vpp_pg_interface.py
+++ b/test/vpp_pg_interface.py
@@ -147,6 +147,11 @@ class VppPGInterface(VppInterface):
)
self._cap_name = "pcap%u-sw_if_index-%s" % (self.pg_index, self.sw_if_index)
+ def remove_vpp_config(self):
+ """delete Pg interface"""
+ self.disable_capture()
+ self.test.vapi.pg_delete_interface(sw_if_index=self.sw_if_index)
+
def link_pcap_file(self, path, direction, counter):
if not config.keep_pcaps:
return