summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-19 20:51:23 +0200
committerGitHub <noreply@github.com>2026-10-19 20:51:23 +0200
commit89a2dba793b073058951f1363b4992969ad7f0ab (patch)
treead63a3ac6b78b12596e05f079ffad65a727fc039 /python
parent25606fec7f9a8d7a13b620a63e723964be85874a (diff)
parent83c42081d3fb44982b903d032c54eec2beab89ef (diff)
downloadvyos-1x-89a2dba793b073058951f1363b4992969ad7f0ab.tar.gz
vyos-1x-89a2dba793b073058951f1363b4992969ad7f0ab.zip
Merge pull request #5578 from alexk37/bgp-t9450-resent-lines
bgp: T9450: stop re-sending unchanged BGP lines to FRR on every commit
Diffstat (limited to 'python')
-rw-r--r--python/vyos/frrender.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/vyos/frrender.py b/python/vyos/frrender.py
index 7d1401d2c..6a8124325 100644
--- a/python/vyos/frrender.py
+++ b/python/vyos/frrender.py
@@ -334,6 +334,13 @@ def get_frrender_dict(conf: Config, argv=None) -> dict:
tmp = conf.get_config_defaults(bgp_cli_path + ['parameters', 'default'],
key_mangling=('-', '_'), get_first_key=True)
bgp['xml_default_local_pref'] = tmp.get('local_pref')
+ # Same pattern for "parameters conditional-advertisement timer".
+ tmp = conf.get_config_defaults(
+ bgp_cli_path + ['parameters', 'conditional-advertisement'],
+ key_mangling=('-', '_'),
+ get_first_key=True,
+ )
+ bgp['xml_default_conditional_advertisement_timer'] = tmp.get('timer')
dict.update({'bgp' : bgp})
elif conf.exists_effective(bgp_cli_path):
dict.update({'bgp' : {'deleted' : '', 'dependent_vrfs' : {}}})
@@ -562,6 +569,12 @@ def get_frrender_dict(conf: Config, argv=None) -> dict:
vrf_config['protocols']['bgp']['xml_default_local_pref'] = dict_search(
'parameters.default.local_pref', default_values)
+ vrf_config['protocols']['bgp'][
+ 'xml_default_conditional_advertisement_timer'
+ ] = dict_search(
+ 'parameters.conditional_advertisement.timer', default_values
+ )
+
# Add this BGP VRF instance as dependency into the default VRF
if 'bgp' in dict:
dict['bgp']['dependent_vrfs'].update({vrf_name : deepcopy(vrf_config)})