summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces-bridge.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-19 18:53:05 +0200
committerChristian Breunig <christian@breunig.cc>2023-10-19 18:56:35 +0200
commit45dc149e4e3c0c294deac6fd541bb027d2280ea1 (patch)
tree7b00641b6d5034945e9f3b0bf0534940d58cd5a4 /interface-definitions/interfaces-bridge.xml.in
parent6116840936d3d47aa55cc127c52eedeacfa4198b (diff)
downloadvyos-1x-45dc149e4e3c0c294deac6fd541bb027d2280ea1.tar.gz
vyos-1x-45dc149e4e3c0c294deac6fd541bb027d2280ea1.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
Diffstat (limited to 'interface-definitions/interfaces-bridge.xml.in')
-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">