From 42bc2005d32ac5c0fcd1ce3d2d7327e830d0dfb8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 15 Feb 2020 20:04:15 +0100 Subject: interface: bond: check that only real interfaces can be enslaved --- scripts/cli/test_interfaces.py | 4 ++++ 1 file changed, 4 insertions(+) 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']) -- cgit v1.2.3