summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-13 21:11:58 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-13 21:33:09 +0200
commitda94e0a736874d9a6420ec1aa754efcec684b390 (patch)
treed06d7939a2fa58b84e65b4b856f6180bccdf2452 /interface-definitions
parent595ab70a5d50ef1f9e166959affd96ea1ee8c8c8 (diff)
downloadvyos-1x-da94e0a736874d9a6420ec1aa754efcec684b390.tar.gz
vyos-1x-da94e0a736874d9a6420ec1aa754efcec684b390.zip
vrf: T3734: T3728: vni must be configured with a higher priority then bgpd
When removing bgp (vrf) instances the assigned VRF vni must be deleted from FRR prior the removal of the bgp settings (T3734). This is now done by moving the CLI command "set vrf name red vni 1000" to a dedicated Python script with a priority higher then bgp.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/vrf.xml.in15
1 files changed, 14 insertions, 1 deletions
diff --git a/interface-definitions/vrf.xml.in b/interface-definitions/vrf.xml.in
index 9d513945c..76d6df386 100644
--- a/interface-definitions/vrf.xml.in
+++ b/interface-definitions/vrf.xml.in
@@ -85,7 +85,20 @@
<constraintErrorMessage>VRF routing table must be in range from 100 to 65535</constraintErrorMessage>
</properties>
</leafNode>
- #include <include/vni.xml.i>
+ <leafNode name="vni" owner="${vyos_conf_scripts_dir}/vrf_vni.py $VAR(../@)">
+ <properties>
+ <help>Virtual Network Identifier</help>
+ <!-- priority must be after BGP -->
+ <priority>822</priority>
+ <valueHelp>
+ <format>0-16777214</format>
+ <description>VXLAN virtual network identifier</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-16777214"/>
+ </constraint>
+ </properties>
+ </leafNode>
</children>
</tagNode>
</children>