summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-12-11 21:35:54 +0100
committerChristian Breunig <christian@breunig.cc>2024-12-16 22:24:50 +0100
commit4d0774e534766d70961975933635e6c54dcc1982 (patch)
tree91d055721c998d27f425e60519ba5ca9014725e7 /python
parent147751ec59527800e956b7ea689805ba80769abe (diff)
downloadvyos-1x-4d0774e534766d70961975933635e6c54dcc1982.tar.gz
vyos-1x-4d0774e534766d70961975933635e6c54dcc1982.zip
vrf: T6746: bugfix change of VNI
VNI was always retrieved via effective configuration and not active configuration.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configdict.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 9522d8fcc..fb6365060 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -1100,8 +1100,8 @@ def get_frrender_dict(conf, argv=None) -> dict:
vrf['name'][vrf_name]['protocols'].update({'static': {'deleted' : ''}})
vrf_vni_path = ['vrf', 'name', vrf_name, 'vni']
- if conf.exists_effective(vrf_vni_path):
- vrf_config.update({'vni': conf.return_effective_value(vrf_vni_path)})
+ if conf.exists(vrf_vni_path):
+ vrf_config.update({'vni': conf.return_value(vrf_vni_path)})
dict.update({'vrf' : vrf})
elif conf.exists_effective(vrf_cli_path):