diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-16 15:28:10 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-16 15:29:28 +0100 |
commit | 35b049aa8b90ee41f9c59bf4b2e3610d03505776 (patch) | |
tree | 466589a998c16336d7dc313307775ba28df64b48 /smoketest/scripts/cli/base_interfaces_test.py | |
parent | 8953a14b01a4183ea890f1c3d569aae54e363614 (diff) | |
download | vyos-1x-35b049aa8b90ee41f9c59bf4b2e3610d03505776.tar.gz vyos-1x-35b049aa8b90ee41f9c59bf4b2e3610d03505776.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.
Diffstat (limited to 'smoketest/scripts/cli/base_interfaces_test.py')
-rw-r--r-- | smoketest/scripts/cli/base_interfaces_test.py | 5 |
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') |