diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-26 19:45:12 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-10-26 19:45:12 +0200 |
commit | a522971938611eb2c630257449369ecf03156d47 (patch) | |
tree | ca39cedd0f618ca7a2d4b6f0cfdbdb9983175f5c /data | |
parent | ffec3f4e51c59a0918b258f0bb4a03a84b4f2204 (diff) | |
download | vyos-1x-a522971938611eb2c630257449369ecf03156d47.tar.gz vyos-1x-a522971938611eb2c630257449369ecf03156d47.zip |
bgp: T3945: relax Jinja2 for loop for aggregate-address
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/frr/bgpd.frr.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl index 2d01ed6a6..61936bb56 100644 --- a/data/templates/frr/bgpd.frr.tmpl +++ b/data/templates/frr/bgpd.frr.tmpl @@ -264,10 +264,10 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none {% endif %} {% endif %} {% if afi_config.aggregate_address is defined and afi_config.aggregate_address is not none %} -{% for ip in afi_config.aggregate_address %} - aggregate-address {{ ip }}{{ ' as-set' if afi_config.aggregate_address[ip].as_set is defined }}{{ ' summary-only' if afi_config.aggregate_address[ip].summary_only is defined }} -{% if afi_config.aggregate_address[ip].route_map is defined and afi_config.aggregate_address[ip].route_map is not none %} - aggregate-address {{ ip }} route-map {{ afi_config.aggregate_address[ip].route_map }} +{% for aggregate, aggregate_config in afi_config.aggregate_address.items() %} + aggregate-address {{ aggregate }}{{ ' as-set' if aggregate_config.as_set is defined }}{{ ' summary-only' if aggregate_config.summary_only is defined }} +{% if aggregate_config.route_map is defined and aggregate_config.route_map is not none %} + aggregate-address {{ aggregate }} route-map {{ aggregate_config.route_map }} {% endif %} {% endfor %} {% endif %} |