summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-10-11 20:05:02 +0200
committerChristian Breunig <christian@breunig.cc>2025-10-11 20:08:19 +0200
commit01667006e6364f2933e642fa724fbaec4849f615 (patch)
treeb9a11197a006ca78ce32edf8740a3c1658054b34
parenta1be2ee22cd058d5e18e6ef4fb3ec6468a38aa37 (diff)
downloadvyos-1x-01667006e6364f2933e642fa724fbaec4849f615.tar.gz
vyos-1x-01667006e6364f2933e642fa724fbaec4849f615.zip
frrender: T7764: add deletion marked for babel
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 b3af4bf0a..fe5dab332 100644
--- a/python/vyos/frrender.py
+++ b/python/vyos/frrender.py
@@ -243,6 +243,8 @@ def get_frrender_dict(conf, argv=None) -> dict:
get_first_key=True,
with_recursive_defaults=True)
dict.update({'babel' : babel})
+ elif conf.exists_effective(babel_cli_path):
+ dict.update({'babel' : {'deleted' : ''}})
# We need to check the CLI if the BFD node is present and thus load in all the default
# values present on the CLI - that's why we have if conf.exists()