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-25 06:34:34 +0200
commita2614284eff75ca78a4d2d7b745c4956382ce65b (patch)
treeb630e4cdc5798892c93d9d7ce3df09491818ee21 /interface-definitions/interfaces-bridge.xml.in
parentef30b4b0ee52094edfdf9e230bf0fab1b092ed4e (diff)
downloadvyos-1x-a2614284eff75ca78a4d2d7b745c4956382ce65b.tar.gz
vyos-1x-a2614284eff75ca78a4d2d7b745c4956382ce65b.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) (cherry picked from commit e619b23b8889543465b61eb00d5b0d3c8063ae95)
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 62afca9bc..a5174a70f 100644
--- a/interface-definitions/interfaces-bridge.xml.in
+++ b/interface-definitions/interfaces-bridge.xml.in
@@ -117,6 +117,9 @@
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces.py --bridgeable</script>
</completionHelp>
+ <constraint>
+ #include <include/constraint/interface-name.xml.i>
+ </constraint>
</properties>
<children>
<leafNode name="native-vlan">