summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-26 16:19:31 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-26 16:19:31 +0200
commitd5e9512b8461f55d276182b4a75267378aa11f50 (patch)
tree0e342df5ba006a8c2cbb2cb054f274f9bdbb5416 /src/conf_mode
parent37e4d24f3679c2f24513cf5dcfbeb761d5bf701d (diff)
downloadvyos-1x-d5e9512b8461f55d276182b4a75267378aa11f50.tar.gz
vyos-1x-d5e9512b8461f55d276182b4a75267378aa11f50.zip
bridge: T1556: reword exception error when beeing member of multiple bridges
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interface-bridge.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/interface-bridge.py b/src/conf_mode/interface-bridge.py
index 65b5c4066..fc1243867 100755
--- a/src/conf_mode/interface-bridge.py
+++ b/src/conf_mode/interface-bridge.py
@@ -187,7 +187,8 @@ def verify(bridge):
for intf in bridge['member']:
tmp = conf.list_nodes('interfaces bridge {} member interface'.format(br))
if intf['name'] in tmp:
- raise ConfigError('{} can be assigned to any one bridge only'.format(intf['name']))
+ raise ConfigError('Interface "{}" belongs to bridge "{}" and can not be enslaved.'.format(intf['name'], bridge['intf']))
+
return None