summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-15 20:53:05 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-15 20:53:05 +0100
commitf4f447738aa1ebbe01b6d2acf75bccf5fbebad9c (patch)
tree5921c85dc07f5c813a469836de043d0e6bd06aaa /data/templates
parente196fae2f934a9c9eb5608cfbc0ff715faae896e (diff)
downloadvyos-1x-f4f447738aa1ebbe01b6d2acf75bccf5fbebad9c.tar.gz
vyos-1x-f4f447738aa1ebbe01b6d2acf75bccf5fbebad9c.zip
vrf: T3960: when adding multiple VRFs and VNIs - do not delete previous ones
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/vrf-vni.frr.tmpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/data/templates/frr/vrf-vni.frr.tmpl b/data/templates/frr/vrf-vni.frr.tmpl
index 51d4ede1b..299c9719e 100644
--- a/data/templates/frr/vrf-vni.frr.tmpl
+++ b/data/templates/frr/vrf-vni.frr.tmpl
@@ -1,7 +1,9 @@
-{% if vrf is defined and vrf is not none %}
+{% if name is defined and name is not none %}
+{% for vrf, vrf_config in name.items() %}
vrf {{ vrf }}
-{% if vni is defined and vni is not none %}
- vni {{ vni }}
-{% endif %}
+{% if vrf_config.vni is defined and vrf_config.vni is not none %}
+ vni {{ vrf_config.vni }}
+{% endif %}
exit-vrf
+{% endfor %}
{% endif %}