summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-15 20:22:17 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-15 20:22:41 +0100
commite9f581efe834dc27e78acff4a331fb9242440de5 (patch)
treed50e15d6e3dd242d7bbafba781ea7faf9196bc23 /data/templates/frr
parent44596d08c374a80a9cf2bd31f3d937eaab8d872e (diff)
downloadvyos-1x-e9f581efe834dc27e78acff4a331fb9242440de5.tar.gz
vyos-1x-e9f581efe834dc27e78acff4a331fb9242440de5.zip
bgp: T1513: add per VRF vni support
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/vrf.frr.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/vrf.frr.tmpl b/data/templates/frr/vrf.frr.tmpl
index 0c8726908..8d3d8e9dd 100644
--- a/data/templates/frr/vrf.frr.tmpl
+++ b/data/templates/frr/vrf.frr.tmpl
@@ -3,6 +3,9 @@
{% if vrf is defined and vrf is not none %}
{% for vrf_name, vrf_config in vrf.items() %}
vrf {{ vrf_name }}
+{% if vrf_config.vni is defined and vrf_config.vni is not none %}
+ vni {{ vrf_config.vni }}
+{% endif %}
{% if vrf_config.static is defined and vrf_config.static is not none %}
{# IPv4 routes #}
{% if vrf_config.static.route is defined and vrf_config.static.route is not none %}