summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-bonding.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-bonding.py b/src/conf_mode/interfaces-bonding.py
index ac4f213ec..81574515f 100755
--- a/src/conf_mode/interfaces-bonding.py
+++ b/src/conf_mode/interfaces-bonding.py
@@ -283,6 +283,10 @@ def verify(bond):
conf = Config()
for intf in bond['member']:
+ # check if member interface is "real"
+ if intf not in interfaces():
+ raise ConfigError('interface {} does not exist!'.format(intf))
+
# a bonding member interface is only allowed to be assigned to one bond!
all_bonds = conf.list_nodes('interfaces bonding')
# We do not need to check our own bond