summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_loopback.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-27 11:33:37 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-27 11:33:37 +0200
commitf427201f56f84792d403baa49932645621457d31 (patch)
tree8b6df4cfa2ad2d4ca0fd570c47c685d8ec7d1295 /smoketest/scripts/cli/test_interfaces_loopback.py
parenta8c0a7e25bfff9f05b90c51d6ff6463325098487 (diff)
parentec8ffd2c967d178c913be645c896434aa3212c9c (diff)
downloadvyos-1x-f427201f56f84792d403baa49932645621457d31.tar.gz
vyos-1x-f427201f56f84792d403baa49932645621457d31.zip
Merge branch 't5242-smoketest-dynamic' into current
* t5242-smoketest-dynamic: smoketest: T5242: automatically detect interface "capabilities" geneve: T2630: change lower limit MTU to 1200 bytes gitignore: T5242: add XML dict cache file bridge: T4579: fix error message for bridge and bond membership T5242: example use of cli_defined xml: T5242: add cli_defined boolean test for node existing under path
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_loopback.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_loopback.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_loopback.py b/smoketest/scripts/cli/test_interfaces_loopback.py
index 5ff9c250e..cde90189b 100755
--- a/smoketest/scripts/cli/test_interfaces_loopback.py
+++ b/smoketest/scripts/cli/test_interfaces_loopback.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2020-2021 VyOS maintainers and contributors
+# Copyright (C) 2020-2023 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -31,6 +31,9 @@ class LoopbackInterfaceTest(BasicInterfaceTest.TestCase):
# call base-classes classmethod
super(LoopbackInterfaceTest, cls).setUpClass()
+ # we need to override tearDown() as loopback interfaces are ephemeral and
+ # will always be present on the system - the base class check will fail as
+ # the loopback interface will still exist.
def tearDown(self):
self.cli_delete(self._base_path)
self.cli_commit()