summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-26 19:25:11 +0200
committerGitHub <noreply@github.com>2021-10-26 19:25:11 +0200
commitffec3f4e51c59a0918b258f0bb4a03a84b4f2204 (patch)
tree3121c62f5be1f1ab38dcaefa1f6e2238c13f9cce /data/templates/frr
parent09e2506cf023b9b4c8225f5beab9016ad64a71cd (diff)
parent2c89e1fc4f1aa8a84b3c610b791873bf66c2fec8 (diff)
downloadvyos-1x-ffec3f4e51c59a0918b258f0bb4a03a84b4f2204.tar.gz
vyos-1x-ffec3f4e51c59a0918b258f0bb4a03a84b4f2204.zip
Merge pull request #1045 from sever-sever/T3945
bgp: T3945: Add route-map for aggregate-address
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/bgpd.frr.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl
index a35930c93..2d01ed6a6 100644
--- a/data/templates/frr/bgpd.frr.tmpl
+++ b/data/templates/frr/bgpd.frr.tmpl
@@ -266,6 +266,9 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none
{% 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 }}
+{% endif %}
{% endfor %}
{% endif %}
{% if afi_config.maximum_paths is defined and afi_config.maximum_paths.ebgp is defined and afi_config.maximum_paths.ebgp is not none %}