From a2b2241e4ac045f3aa790f0051d5699b04b78dbd Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 23 Apr 2023 16:00:03 +0200 Subject: vrf: T5150: must use no_tag_node_value_mangle when working with the config dict --- src/conf_mode/vrf_vni.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') 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): -- cgit v1.2.3