diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-08-01 20:50:07 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-08-01 20:50:07 +0200 |
commit | d18b7b20c1ffac2eeff298298fa29572bb025a54 (patch) | |
tree | 729763033598c2213ff7be209b95e8df741af234 | |
parent | 36e7cad8dd88578a48648b7bcde5fc889d70fe02 (diff) | |
download | vyos-1x-d18b7b20c1ffac2eeff298298fa29572bb025a54.tar.gz vyos-1x-d18b7b20c1ffac2eeff298298fa29572bb025a54.zip |
macsec: T4391: bugfix config path
After commit 85d6c8f7c62 ("vyos.configdict: T4391: enable get_interface_dict()
to be used with ConfigTreeQuery()") we also need to use the full path when
working with Config() as previous calls to get_interface_dict() no longer change
the level of Config().
-rwxr-xr-x | src/conf_mode/interfaces-macsec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-macsec.py b/src/conf_mode/interfaces-macsec.py index f5c98b664..65b0612ea 100755 --- a/src/conf_mode/interfaces-macsec.py +++ b/src/conf_mode/interfaces-macsec.py @@ -56,7 +56,7 @@ def get_config(config=None): # Check if interface has been removed if 'deleted' in macsec: - source_interface = conf.return_effective_value(['source-interface']) + source_interface = conf.return_effective_value(base + [ifname, 'source-interface']) macsec.update({'source_interface': source_interface}) if is_node_changed(conf, base + [ifname, 'security']): |