summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-17 19:09:47 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-17 19:14:17 +0200
commit1faa8728239cc5309cdaa82453b886710ad83699 (patch)
tree9d082305607044068a3ebe39696ad207329a706c /data/templates
parent387732762169a11e9502d89b08c728f0c40c4953 (diff)
downloadvyos-1x-1faa8728239cc5309cdaa82453b886710ad83699.tar.gz
vyos-1x-1faa8728239cc5309cdaa82453b886710ad83699.zip
bgp: T3759: add l3vpn import/export vpn command for IPv4/IPv6 AFI
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/bgpd.frr.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl
index aa297876b..a21a2fefe 100644
--- a/data/templates/frr/bgpd.frr.tmpl
+++ b/data/templates/frr/bgpd.frr.tmpl
@@ -308,6 +308,12 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none
{% endfor %}
{% endif %}
{% endif %}
+{% if afi_config.export is defined and afi_config.export.vpn is defined %}
+ export vpn
+{% endif %}
+{% if afi_config.import is defined and afi_config.import.vpn is defined %}
+ import vpn
+{% endif %}
{% if afi_config.local_install is defined and afi_config.local_install is not none %}
{% for interface in afi_config.local_install.interface %}
local-install {{ interface }}