diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-10-12 18:43:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-12 18:43:55 +0200 |
| commit | 1b16870043774cf66c5d37ffb281476a42ce8b8b (patch) | |
| tree | 0a40e86e3725889a4a6fe3bd984542d40cf7a6db /python | |
| parent | a1be2ee22cd058d5e18e6ef4fb3ec6468a38aa37 (diff) | |
| parent | fca49413f5d949c1f8d6ee18828741c732bd8e5a (diff) | |
| download | vyos-1x-1b16870043774cf66c5d37ffb281476a42ce8b8b.tar.gz vyos-1x-1b16870043774cf66c5d37ffb281476a42ce8b8b.zip | |
Merge pull request #4791 from c-po/frr-fixes
frr: T7664: multiple fixes for upcoming 10.4 package upgrade
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/frrender.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/python/vyos/frrender.py b/python/vyos/frrender.py index b3af4bf0a..75824fcf9 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() @@ -253,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() @@ -716,9 +720,18 @@ class FRRender: debug('FRR: START CONFIGURATION RENDERING') # we can not reload an empty file, thus we always embed the marker output = '!\n' + # Enable FRR logging - output += 'log syslog\n' - output += 'log facility local7\n' + output += 'log facility daemon\n' + output += 'log timestamp precision 3\n' + # Extend logging depending on operating mode + if os.path.exists(frr_debug_enable): + output += 'log syslog informational\n' + output += 'log unique-id\n' + else: + output += 'log syslog notifications\n' + output += 'no log unique-id\n' + # Enable SNMP agentx support # SNMP AgentX support cannot be disabled once enabled if 'snmp' in config_dict: |
