diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-19 15:59:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 15:59:55 +0100 |
commit | b9cdf8a710c8b42d99aed3710afaeeb95291660a (patch) | |
tree | 9a0284bb5a1b6d7b4b37a11f4a8329f5d6c0b1b7 | |
parent | 33225eebde7ebcde84517f14077f5e61578f7231 (diff) | |
parent | 810008107185c9892475466a7b4fae2fbaa87311 (diff) | |
download | vyos-1x-b9cdf8a710c8b42d99aed3710afaeeb95291660a.tar.gz vyos-1x-b9cdf8a710c8b42d99aed3710afaeeb95291660a.zip |
Merge pull request #2656 from vyos/mergify/bp/sagitta/pr-2637
T5823: Add recursive_defaults for BGP get_config dictionary (backport #2637)
-rwxr-xr-x | src/conf_mode/protocols_bgp.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/conf_mode/protocols_bgp.py b/src/conf_mode/protocols_bgp.py index 5a503a9b7..bf807fa5f 100755 --- a/src/conf_mode/protocols_bgp.py +++ b/src/conf_mode/protocols_bgp.py @@ -50,8 +50,13 @@ def get_config(config=None): # eqivalent of the C foo ? 'a' : 'b' statement base = vrf and ['vrf', 'name', vrf, 'protocols', 'bgp'] or base_path - bgp = conf.get_config_dict(base, key_mangling=('-', '_'), - get_first_key=True, no_tag_node_value_mangle=True) + bgp = conf.get_config_dict( + base, + key_mangling=('-', '_'), + get_first_key=True, + no_tag_node_value_mangle=True, + with_recursive_defaults=True, + ) bgp['dependent_vrfs'] = conf.get_config_dict(['vrf', 'name'], key_mangling=('-', '_'), |