From 0327dc48255a7f27fcaea06c4cf2481a0d432b19 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 9 Apr 2021 21:04:25 +0200 Subject: bgp: evpn: T1513: add support for ipv4/ipv6 prefix routes advertisements set vrf name red protocols bgp address-family l2vpn-evpn advertise ipv4 unicast --- data/templates/frr/bgp.frr.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'data') diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl index cbf83e3fd..3598d9ff0 100644 --- a/data/templates/frr/bgp.frr.tmpl +++ b/data/templates/frr/bgp.frr.tmpl @@ -238,6 +238,13 @@ router bgp {{ local_as }} {{ 'vrf ' + vrf if vrf is defined and vrf is not none network {{ network }}{% if afi_config.network[network].route_map is defined %} route-map {{ afi_config.network[network].route_map }}{% endif %}{% if afi_config.network[network].backdoor is defined %} backdoor{% endif %} {####### we need this blank line!! #######} +{% endfor %} +{% endif %} +{% if afi_config.advertise is defined and afi_config.advertise is not none %} +{% for adv_afi, adv_afi_config in afi_config.advertise.items() %} +{% if adv_afi_config.unicast is defined and adv_afi_config.unicast is not none %} + advertise {{ adv_afi }} unicast {{ 'route-map ' + adv_afi_config.unicast.route_map if adv_afi_config.unicast.route_map is defined }} +{% endif %} {% endfor %} {% endif %} {% if afi_config.advertise_all_vni is defined %} -- cgit v1.2.3