summaryrefslogtreecommitdiff
path: root/data/templates/frr/bgp.frr.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-09 23:34:11 +0100
committerGitHub <noreply@github.com>2021-02-09 23:34:11 +0100
commitee8f20596ba1b0482b5e9ccc7826baae294dbde5 (patch)
treef84b90df6fceddc717bbf646e4aae027bf15277f /data/templates/frr/bgp.frr.tmpl
parentf89969c1729a94901a817bd97da6f5b2a3712af0 (diff)
parent30af74a8f51f22802db8e393ac86293a54ebcd9d (diff)
downloadvyos-1x-ee8f20596ba1b0482b5e9ccc7826baae294dbde5.tar.gz
vyos-1x-ee8f20596ba1b0482b5e9ccc7826baae294dbde5.zip
Merge pull request #724 from c-po/t1315-bgp-evpn
bgp: T1315: initial implementation of L2VPN EVPN support
Diffstat (limited to 'data/templates/frr/bgp.frr.tmpl')
-rw-r--r--data/templates/frr/bgp.frr.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index 673539c1a..74874ee43 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -75,6 +75,8 @@
address-family ipv4 unicast
{% elif af == 'ipv6_unicast' %}
address-family ipv6 unicast
+{% elif af == 'l2vpn_evpn' %}
+ address-family l2vpn evpn
{% endif %}
{% if config.address_family[af].allowas_in is defined and config.address_family[af].allowas_in is not none %}
neighbor {{ neighbor }} allowas-in {{ config.address_family[af].allowas_in.number if config.address_family[af].allowas_in.number is defined }}
@@ -163,6 +165,8 @@ router bgp {{ asn }}
address-family ipv4 unicast
{% elif af == 'ipv6_unicast' %}
address-family ipv6 unicast
+{% elif af == 'l2vpn_evpn' %}
+ address-family l2vpn evpn
{% endif %}
{% if address_family[af].aggregate_address is defined and address_family[af].aggregate_address is not none %}
{% for ip in address_family[af].aggregate_address %}
@@ -191,6 +195,19 @@ router bgp {{ asn }}
{% endfor %}
{% endif %}
+{% if address_family[af].advertise_all_vni is defined %}
+ advertise-all-vni
+{% endif %}
+{% if address_family[af].advertise_default_gw is defined %}
+ advertise-default-gw
+{% endif %}
+{% if address_family[af].advertise_svi_ip is defined %}
+ advertise-svi-ip
+{% endif %}
+{% if address_family[af].vni is defined and address_family[af].vni is not none %}
+ vni {{ address_family[af].vni }}
+ exit-vni
+{% endif %}
exit-address-family
{% endfor %}
{% endif %}