summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-21 21:20:40 +0200
committerChristian Breunig <christian@breunig.cc>2023-04-21 21:21:07 +0200
commit0a581bfc28504fbf5b19272a332ad5ffe1edb249 (patch)
treeecb0963ef12534f3a1c853f9649106690e16561d /interface-definitions
parent192c8ed2bcadc08917d7751eb521a08b33e5117f (diff)
downloadvyos-1x-0a581bfc28504fbf5b19272a332ad5ffe1edb249.tar.gz
vyos-1x-0a581bfc28504fbf5b19272a332ad5ffe1edb249.zip
vrf: T5150: l3vni must be removed prior to removing BGP VRF process
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 a7efe146a..3783785ce 100644
--- a/interface-definitions/vrf.xml.in
+++ b/interface-definitions/vrf.xml.in
@@ -121,7 +121,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>
+ <!-- must be after BGP to keep correct order when removing L3VNIs in FRR -->
+ <priority>822</priority>
+ <valueHelp>
+ <format>u32:0-16777214</format>
+ <description>VXLAN virtual network identifier</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-16777214"/>
+ </constraint>
+ </properties>
+ </leafNode>
</children>
</tagNode>
</children>