diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-09 10:42:46 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-09 10:42:46 +0200 |
commit | 4d2201eed00ac4780d0196abf53dd9b7cb943a09 (patch) | |
tree | cccb5764f3cf545d6449842e7c7f948697c9eb2e /python/vyos/configdict.py | |
parent | 588cc03a61414e8f9f35285b9b961c2004e24751 (diff) | |
download | vyos-1x-4d2201eed00ac4780d0196abf53dd9b7cb943a09.tar.gz vyos-1x-4d2201eed00ac4780d0196abf53dd9b7cb943a09.zip |
vyos.configdict: T3814: use no_tag_node_value_mangle in get_interface_dict()
This change is required and currently only impacts WireGuards peer configuration,
so that the peers name is not mangled.
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r-- | python/vyos/configdict.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index e15579b95..24b76fb0b 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -347,8 +347,8 @@ def get_interface_dict(config, base, ifname=''): # setup config level which is extracted in get_removed_vlans() config.set_level(base + [ifname]) - dict = config.get_config_dict([], key_mangling=('-', '_'), - get_first_key=True) + dict = config.get_config_dict([], key_mangling=('-', '_'), get_first_key=True, + no_tag_node_value_mangle=True) # Check if interface has been removed. We must use exists() as # get_config_dict() will always return {} - even when an empty interface |