summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-01 19:22:32 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-01 19:22:55 +0100
commit4bb7dedba86d9bc8fd0613bbabe159a072c16c3e (patch)
tree39abb8a5fc6ebb6e0ab18b64e87c55d2bd34f8cd /scripts
parentbd85f1adc86b5645808cfc75fd1fef354146cba1 (diff)
downloadvyos-1x-4bb7dedba86d9bc8fd0613bbabe159a072c16c3e.tar.gz
vyos-1x-4bb7dedba86d9bc8fd0613bbabe159a072c16c3e.zip
interface: add test for loopback interface
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cli/test_interfaces.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/cli/test_interfaces.py b/scripts/cli/test_interfaces.py
index 4f52f83d7..6bbacc585 100755
--- a/scripts/cli/test_interfaces.py
+++ b/scripts/cli/test_interfaces.py
@@ -76,6 +76,13 @@ class DummyInterfaceTest(BasicInterfaceTest.BaseTest):
self._interfaces = ['dum0', 'dum1', 'dum2']
+class LoopbackInterfaceTest(BasicInterfaceTest.BaseTest):
+ def setUp(self):
+ super().setUp()
+ self._base_path = ['interfaces', 'loopback']
+ self._interfaces = ['lo']
+
+
class BondInterfaceTest(BasicInterfaceTest.BaseTest):
def setUp(self):
super().setUp()