summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-17 22:05:21 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-17 22:05:21 +0200
commit053f586fa7a5a69b3b6be81339c73d8550d67fc6 (patch)
tree79ff91d32208596573b5a50fc315acde05cae0ba /data/templates/frr
parentda453ff4a810463febacdba7246d19ac6075b9b7 (diff)
downloadvyos-1x-053f586fa7a5a69b3b6be81339c73d8550d67fc6.tar.gz
vyos-1x-053f586fa7a5a69b3b6be81339c73d8550d67fc6.zip
bgp: T3759: add l3vpn "import vrf" commands
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/bgpd.frr.tmpl9
1 files changed, 8 insertions, 1 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl
index a21a2fefe..2f2e94ce0 100644
--- a/data/templates/frr/bgpd.frr.tmpl
+++ b/data/templates/frr/bgpd.frr.tmpl
@@ -311,8 +311,15 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none
{% 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 %}
+{% if afi_config.import is defined and afi_config.import is not none %}
+{% if afi_config.import.vpn is defined %}
import vpn
+{% endif %}
+{% if afi_config.import.vrf is defined and afi_config.import.vrf is not none %}
+{% for vrf in afi_config.import.vrf %}
+ import vrf {{ vrf }}
+{% endfor %}
+{% endif %}
{% endif %}
{% if afi_config.local_install is defined and afi_config.local_install is not none %}
{% for interface in afi_config.local_install.interface %}