summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/base_interfaces_test.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-16 15:28:10 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-16 15:31:38 +0100
commit6049ed9f329f5435846d63404285bee3a5633eca (patch)
tree77ceb342f5d87293f227a292797e3dd3586ea1a6 /smoketest/scripts/cli/base_interfaces_test.py
parent8dab92c65127a629df6607e7b46504a115943f72 (diff)
downloadvyos-1x-6049ed9f329f5435846d63404285bee3a5633eca.tar.gz
vyos-1x-6049ed9f329f5435846d63404285bee3a5633eca.zip
smoketest: interfaces: verify deletion of interfaces
When deleting the test interfaces, ensure after each run that there are no leftovers from a previous run, indicating that there was a problem while removing the interfaces. (cherry picked from commit 35b049aa8b90ee41f9c59bf4b2e3610d03505776)
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py
index 4a65545a0..fbedca3f3 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -93,6 +93,11 @@ class BasicInterfaceTest:
self.session.commit()
del self.session
+ # Ethernet is handled in its derived class
+ if 'ethernet' not in self._base_path:
+ for intf in self._interfaces:
+ self.assertFalse(os.path.isdir('/sys/class/net/{intf}'))
+
def test_span_mirror(self):
if not self._mirror_interfaces:
self.skipTest('not enabled')