diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-08 22:42:38 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-09 22:31:38 +0100 |
commit | 30af74a8f51f22802db8e393ac86293a54ebcd9d (patch) | |
tree | f84b90df6fceddc717bbf646e4aae027bf15277f /data/templates | |
parent | f89969c1729a94901a817bd97da6f5b2a3712af0 (diff) | |
download | vyos-1x-30af74a8f51f22802db8e393ac86293a54ebcd9d.tar.gz vyos-1x-30af74a8f51f22802db8e393ac86293a54ebcd9d.zip |
bgp: T1513: initial implementation of L2VPN EVPN support
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/frr/bgp.frr.tmpl | 17 |
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 %} |