summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-14 11:36:31 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-14 11:34:24 +0000
commit42d6a8cd500b2a92e9dbe0e868b84f4b55b1e02b (patch)
tree74627b0ca159e8158af161d0ae30c57a5fe480f7 /data/templates
parentb55571138d2b08dd4fda6d8b34a70f9a84a1c721 (diff)
downloadvyos-1x-42d6a8cd500b2a92e9dbe0e868b84f4b55b1e02b.tar.gz
vyos-1x-42d6a8cd500b2a92e9dbe0e868b84f4b55b1e02b.zip
bgp: T591: add VPN nexthop support per address-family
set protocols bgp address-family ipv4-unicast nexthop vpn export <ipv4-address|ipv6-address> set protocols bgp address-family ipv6-unicast nexthop vpn export <ipv4-address|ipv6-address> (cherry picked from commit 7349927908206fa83a7295d643f56950309efb4f)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/bgpd.frr.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index f3ae56903..e02fdd1bb 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -402,6 +402,9 @@ router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }}
{% if afi_config.flooding.head_end_replication is vyos_defined %}
flooding head-end-replication
{% endif %}
+{% if afi_config.nexthop.vpn.export is vyos_defined %}
+ nexthop vpn export {{ afi_config.nexthop.vpn.export }}
+{% endif %}
{% if afi_config.rd.vpn.export is vyos_defined %}
rd vpn export {{ afi_config.rd.vpn.export }}
{% endif %}