summaryrefslogtreecommitdiff
path: root/src/conf_mode/vrf_vni.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-23 16:00:03 +0200
committerChristian Breunig <christian@breunig.cc>2023-04-23 16:00:03 +0200
commita2b2241e4ac045f3aa790f0051d5699b04b78dbd (patch)
treef96134753f6d93653760d30e264f5ad130da0b9b /src/conf_mode/vrf_vni.py
parent059eaab1744071cb4c170f7602cb9725e6c9fe16 (diff)
downloadvyos-1x-a2b2241e4ac045f3aa790f0051d5699b04b78dbd.tar.gz
vyos-1x-a2b2241e4ac045f3aa790f0051d5699b04b78dbd.zip
vrf: T5150: must use no_tag_node_value_mangle when working with the config dict
Diffstat (limited to 'src/conf_mode/vrf_vni.py')
-rw-r--r--src/conf_mode/vrf_vni.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conf_mode/vrf_vni.py b/src/conf_mode/vrf_vni.py
index 0cf52a2ef..47b2200eb 100644
--- a/src/conf_mode/vrf_vni.py
+++ b/src/conf_mode/vrf_vni.py
@@ -35,12 +35,11 @@ def get_config(config=None):
vrf_name = argv[1]
base = ['vrf', 'name', vrf_name]
- tmp = conf.get_config_dict(base, key_mangling=('-', '_'), get_first_key=False)
+ tmp = conf.get_config_dict(base, key_mangling=('-', '_'),
+ no_tag_node_value_mangle=True, get_first_key=True)
if not tmp:
return None
- vrf = { 'name' : conf.get_config_dict(base, key_mangling=('-', '_'),
- get_first_key=False) }
-
+ vrf = { 'name' : tmp }
return vrf
def verify(vrf):