summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-19 18:53:05 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-10-19 18:10:40 +0000
commite619b23b8889543465b61eb00d5b0d3c8063ae95 (patch)
treef67443d94f810081082be677ef084ca7b8522143 /interface-definitions
parent7f17e09fde178f42503c3403e391f630223bce35 (diff)
downloadvyos-1x-e619b23b8889543465b61eb00d5b0d3c8063ae95.tar.gz
vyos-1x-e619b23b8889543465b61eb00d5b0d3c8063ae95.zip
bridge: T5670: add missing constraint on "member interface" node
One could specify a bridge member of VXLAN1 interface, but it is not possible to create a VXLAN interface with the name of VXLAN1 - prohibited by VXLAN interface name validator. Add missing interface-name validator code (cherry picked from commit 45dc149e4e3c0c294deac6fd541bb027d2280ea1)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces-bridge.xml.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/interfaces-bridge.xml.in b/interface-definitions/interfaces-bridge.xml.in
index fcfb8686c..db3762065 100644
--- a/interface-definitions/interfaces-bridge.xml.in
+++ b/interface-definitions/interfaces-bridge.xml.in
@@ -123,6 +123,9 @@
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --bridgeable</script>
</completionHelp>
+ <constraint>
+ #include <include/constraint/interface-name.xml.i>
+ </constraint>
</properties>
<children>
<leafNode name="native-vlan">