From f08442f2da5053a106e03e2fc2d06c0e04016b7e Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 11 Oct 2025 20:05:53 +0200 Subject: 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. --- python/vyos/frrender.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') 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() -- cgit v1.2.3