From ce361fe12c430c792361479e5b5b3228141fd36f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 7 Apr 2021 14:53:49 +0200 Subject: vrf: T3344: re-add virtual network identifier Commit 548d9057e3e (vrf: T3344: move dynamic routing protocols under "vrf 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. --- data/templates/frr/vrf.frr.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 data/templates/frr/vrf.frr.tmpl (limited to 'data/templates/frr') 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 %} -- cgit v1.2.3