summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_bgp.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-14 20:15:40 +0100
committerGitHub <noreply@github.com>2023-12-14 20:15:40 +0100
commitc2bbfc0126ab73dba612bb522d76a539e13f86a6 (patch)
tree5b26dabfa671bb370289b71dafb14e92ef02bda7 /src/conf_mode/protocols_bgp.py
parent2de7be332634c19368f77d52aae0239f6e3c1727 (diff)
parent4d5445740a1529691594263af22f2a9d07bbfe70 (diff)
downloadvyos-1x-c2bbfc0126ab73dba612bb522d76a539e13f86a6.tar.gz
vyos-1x-c2bbfc0126ab73dba612bb522d76a539e13f86a6.zip
Merge pull request #2637 from sever-sever/5823
T5823: Add recursive_defaults for BGP get_config dictionary
Diffstat (limited to 'src/conf_mode/protocols_bgp.py')
-rwxr-xr-xsrc/conf_mode/protocols_bgp.py9
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=('-', '_'),