Skip to content

Commit

Permalink
Return evpn configuration into bgp templates (#3693)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-shirshov authored Nov 1, 2019
1 parent 8dbe13c commit 6cc1f99
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dockers/docker-fpm-frr/bgpd.peer.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
{% endif %}
{% if bgp_session['nhopself'] | int != 0 %}
neighbor {{ neighbor_addr }} next-hop-self
{% endif %}
{% if bgp_session["asn"] == DEVICE_METADATA['localhost']['bgp_asn']
and DEVICE_METADATA['localhost']['type'] == "SpineChassisFrontendRouter"
and (not bgp_session.has_key("local_addr") or bgp_session["local_addr"] not in interfaces_in_vnets) %}
address-family l2vpn evpn
neighbor {{ neighbor_addr }} activate
advertise-all-vni
exit-address-family
{% endif %}
neighbor {{ neighbor_addr }} activate
exit-address-family
Expand Down

0 comments on commit 6cc1f99

Please # to comment.