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:44:14 +0200 |
commit | ab75b9bca0fca8ed2929e77f1274a0c9c7c08d90 (patch) | |
tree | 0c1a48039559cb2f3a05e04a8709ae0cb44f5298 /python | |
parent | c593bf7f597735b4b95c3923bb6ea6fc2c2ae346 (diff) | |
download | vyos-1x-ab75b9bca0fca8ed2929e77f1274a0c9c7c08d90.tar.gz vyos-1x-ab75b9bca0fca8ed2929e77f1274a0c9c7c08d90.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.
(cherry picked from commit 4d2201eed00ac4780d0196abf53dd9b7cb943a09)
Diffstat (limited to 'python')
-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 010711478..f9c87708a 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 |