summaryrefslogtreecommitdiff
path: root/python/vyos/config.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-04-16 09:04:22 -0500
committerJohn Estabrook <jestabro@vyos.io>2021-04-18 09:11:49 -0500
commitff7b2b0e62510ef8de28c9c4bfa34badeabec775 (patch)
tree9ef353972047eb616b0ea1412d6f8c2fa979568f /python/vyos/config.py
parent0646a2b3be10bde0d98d0f61af737d80c4645a52 (diff)
downloadvyos-1x-ff7b2b0e62510ef8de28c9c4bfa34badeabec775.tar.gz
vyos-1x-ff7b2b0e62510ef8de28c9c4bfa34badeabec775.zip
config: T3481: add switch to prevent mangling of tag node values
(cherry picked from commit e96932cbd99f508f9f5c24b207b5650aa8817e45)
Diffstat (limited to 'python/vyos/config.py')
-rw-r--r--python/vyos/config.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py
index de79a3654..a5c1ad122 100644
--- a/python/vyos/config.py
+++ b/python/vyos/config.py
@@ -214,7 +214,8 @@ class Config(object):
return config_dict
def get_config_dict(self, path=[], effective=False, key_mangling=None,
- get_first_key=False, no_multi_convert=False):
+ get_first_key=False, no_multi_convert=False,
+ no_tag_node_value_mangle=False):
"""
Args:
path (str list): Configuration tree path, can be empty
@@ -247,7 +248,7 @@ class Config(object):
isinstance(key_mangling[1], str)):
raise ValueError("key_mangling must be a tuple of two strings")
- conf_dict = vyos.util.mangle_dict_keys(conf_dict, key_mangling[0], key_mangling[1])
+ conf_dict = vyos.util.mangle_dict_keys(conf_dict, key_mangling[0], key_mangling[1], abs_path=xmlpath, no_tag_node_value_mangle=no_tag_node_value_mangle)
return conf_dict