diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-10-06 15:26:55 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-10-06 15:26:57 +0200 |
commit | eddc97b9d12d2f31eba9a479eb538fbd7f0c3e55 (patch) | |
tree | 512a678b5443a4931832a49413e6e34c0e649fc0 /src/conf_mode/interface-ethernet.py | |
parent | d449e5bf41b568d998f2a2d2cfcdac4c3df4eba5 (diff) | |
download | vyos-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.
Diffstat (limited to 'src/conf_mode/interface-ethernet.py')
-rwxr-xr-x | src/conf_mode/interface-ethernet.py | 2 |
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) |