summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-10-11 20:05:53 +0200
committerChristian Breunig <christian@breunig.cc>2025-10-11 20:08:27 +0200
commitf08442f2da5053a106e03e2fc2d06c0e04016b7e (patch)
tree7ea560269d386b6478a82ead81e0ee067362ac17
parent01667006e6364f2933e642fa724fbaec4849f615 (diff)
downloadvyos-1x-f08442f2da5053a106e03e2fc2d06c0e04016b7e.tar.gz
vyos-1x-f08442f2da5053a106e03e2fc2d06c0e04016b7e.zip
frrender: T7764: add deletion marker for bfd
When deleting the daemon configuration, use the deleted dict element to properly inform FRR config render of absence of the configuration items. Nothing needs to be rendered.
-rw-r--r--python/vyos/frrender.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/frrender.py b/python/vyos/frrender.py
index fe5dab332..b8b6435f1 100644
--- a/python/vyos/frrender.py
+++ b/python/vyos/frrender.py
@@ -255,6 +255,8 @@ def get_frrender_dict(conf, argv=None) -> dict:
no_tag_node_value_mangle=True,
with_recursive_defaults=True)
dict.update({'bfd' : bfd})
+ elif conf.exists_effective(bfd_cli_path):
+ dict.update({'bfd' : {'deleted' : ''}})
# We need to check the CLI if the BGP node is present and thus load in all the default
# values present on the CLI - that's why we have if conf.exists()