summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-07 14:53:49 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-07 14:56:32 +0200
commitce361fe12c430c792361479e5b5b3228141fd36f (patch)
treef8454e9d6c67db533a9f9cc2233b293f9384b7ec /data
parent44f766a7880e9264487e62f4aacc9f4f635219ed (diff)
downloadvyos-1x-ce361fe12c430c792361479e5b5b3228141fd36f.tar.gz
vyos-1x-ce361fe12c430c792361479e5b5b3228141fd36f.zip
vrf: T3344: re-add virtual network identifier
Commit 548d9057e3e (vrf: T3344: move dynamic routing protocols under "vrf name <name> protocols") temporary removed the possibility to specify the VNI for a given VRF to to changing of the CLI configuration nodes. As VNI is set inside zebra, we can re-use the now widely deployed frr python library to configure and change the configuration without any interference to other FRR daemons.
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/vrf.frr.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/frr/vrf.frr.tmpl b/data/templates/frr/vrf.frr.tmpl
new file mode 100644
index 000000000..299c9719e
--- /dev/null
+++ b/data/templates/frr/vrf.frr.tmpl
@@ -0,0 +1,9 @@
+{% if name is defined and name is not none %}
+{% for vrf, vrf_config in name.items() %}
+vrf {{ vrf }}
+{% if vrf_config.vni is defined and vrf_config.vni is not none %}
+ vni {{ vrf_config.vni }}
+{% endif %}
+ exit-vrf
+{% endfor %}
+{% endif %}