summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-10 20:33:36 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-10 20:33:36 +0100
commitc14098b7b1517d77bf53318cc7964295d54db119 (patch)
treef8c5ec0ee68d8f1c44b5b31577c3553b02875aec /data
parent607339f6593514a4b4b37b95fd97e5e2d2039585 (diff)
downloadvyos-1x-c14098b7b1517d77bf53318cc7964295d54db119.tar.gz
vyos-1x-c14098b7b1517d77bf53318cc7964295d54db119.zip
bgp: evpn: T1513: add support for per VNI route-distinguished and route-target
set protocols bgp 65010 address-family l2vpn-evpn vni 100 route-target both 516:10516 set protocols bgp 65010 address-family l2vpn-evpn vni 100 rd 192.168.0.1:514 Todo: add verify() step to check if at least one evpn enabled BGP neighbor exits, else FRR will error out with: This command is only supported under EVPN VRF
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/bgp.frr.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index 3101de7ea..f7aeaeb9d 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -280,6 +280,20 @@ router bgp {{ asn }}
{% if vni_config.advertise_svi_ip is defined %}
advertise-svi-ip
{% endif %}
+{% if vni_config.rd is defined and vni_config.rd is not none %}
+ rd {{ vni_config.rd }}
+{% endif %}
+{% if vni_config.route_target is defined and vni_config.route_target is not none %}
+{% if vni_config.route_target.both is defined and vni_config.route_target.both is not none %}
+ route-target both {{ vni_config.route_target.both }}
+{% endif %}
+{% if vni_config.route_target.export is defined and vni_config.route_target.export is not none %}
+ route-target export {{ vni_config.route_target.export }}
+{% endif %}
+{% if vni_config.route_target.import is defined and vni_config.route_target.import is not none %}
+ route-target import {{ vni_config.route_target.import }}
+{% endif %}
+{% endif %}
exit-vni
{% endfor %}
{% endif %}