summaryrefslogtreecommitdiff
path: root/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-15 20:04:15 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-15 20:04:15 +0100
commit42bc2005d32ac5c0fcd1ce3d2d7327e830d0dfb8 (patch)
tree1ec7fc60f0267bf003f6f2ae638f4c9d814ae795 /scripts/cli
parent8a871793c54dc45bd85fdb1b98f51bbfad3a25a2 (diff)
downloadvyos-1x-42bc2005d32ac5c0fcd1ce3d2d7327e830d0dfb8.tar.gz
vyos-1x-42bc2005d32ac5c0fcd1ce3d2d7327e830d0dfb8.zip
interface: bond: check that only real interfaces can be enslaved
Diffstat (limited to 'scripts/cli')
-rwxr-xr-xscripts/cli/test_interfaces.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/cli/test_interfaces.py b/scripts/cli/test_interfaces.py
index 712a150c6..4e6617319 100755
--- a/scripts/cli/test_interfaces.py
+++ b/scripts/cli/test_interfaces.py
@@ -108,6 +108,10 @@ class BondInterfaceTest(BasicInterfaceTest.BaseTest):
self.session.commit()
+ # check validate() - we can only add existing interfaces
+ self.session.set(self._base_path + [intf, 'member', 'interface', 'eth99'])
+ with self.assertRaises(ConfigSessionError):
+ self.session.commit()
# check if member deletion works as expected
self.session.delete(self._base_path + [intf, 'member'])