summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-10-06 15:26:55 +0200
committerChristian Poessinger <christian@poessinger.com>2019-10-06 15:26:57 +0200
commiteddc97b9d12d2f31eba9a479eb538fbd7f0c3e55 (patch)
tree512a678b5443a4931832a49413e6e34c0e649fc0
parentd449e5bf41b568d998f2a2d2cfcdac4c3df4eba5 (diff)
downloadvyos-1x-eddc97b9d12d2f31eba9a479eb538fbd7f0c3e55.tar.gz
vyos-1x-eddc97b9d12d2f31eba9a479eb538fbd7f0c3e55.zip
ethernet: T1637: bugfix on wrong dict key in verify()
This resulted in a commit error when Bonding interfaces have been involved.
-rwxr-xr-xsrc/conf_mode/interface-ethernet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interface-ethernet.py b/src/conf_mode/interface-ethernet.py
index 99450b19e..317da5772 100755
--- a/src/conf_mode/interface-ethernet.py
+++ b/src/conf_mode/interface-ethernet.py
@@ -254,7 +254,7 @@ def verify(eth):
for bond in conf.list_nodes('interfaces bonding'):
if conf.exists('interfaces bonding ' + bond + ' member interface'):
bond_member = conf.return_values('interfaces bonding ' + bond + ' member interface')
- if eth['name'] in bond_member:
+ if eth['intf'] in bond_member:
if eth['address']:
raise ConfigError('Can not assign address to interface {} which is a member of {}').format(eth['intf'], bond)