Skip to content

Commit 6cc1f99

Browse files
Return evpn configuration into bgp templates (#3693)
1 parent 8dbe13c commit 6cc1f99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dockers/docker-fpm-frr/bgpd.peer.conf.j2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
{% endif %}
2525
{% if bgp_session['nhopself'] | int != 0 %}
2626
neighbor {{ neighbor_addr }} next-hop-self
27+
{% endif %}
28+
{% if bgp_session["asn"] == DEVICE_METADATA['localhost']['bgp_asn']
29+
and DEVICE_METADATA['localhost']['type'] == "SpineChassisFrontendRouter"
30+
and (not bgp_session.has_key("local_addr") or bgp_session["local_addr"] not in interfaces_in_vnets) %}
31+
address-family l2vpn evpn
32+
neighbor {{ neighbor_addr }} activate
33+
advertise-all-vni
34+
exit-address-family
2735
{% endif %}
2836
neighbor {{ neighbor_addr }} activate
2937
exit-address-family

0 commit comments

Comments
 (0)