summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2021-01-16 13:32:50 +0800
committerjack9603301 <jack9603301@163.com>2021-01-16 13:32:50 +0800
commit2d1e8a2fdba707aaae46b9f136aa8dd171ff8f3d (patch)
tree062451e331c02dd6d1617fbbe775b5e76871c721 /interface-definitions
parentc759e4030441ddb891657a6ed03cae8a9bfb980a (diff)
downloadvyos-1x-2d1e8a2fdba707aaae46b9f136aa8dd171ff8f3d.tar.gz
vyos-1x-2d1e8a2fdba707aaae46b9f136aa8dd171ff8f3d.zip
bridge: T3137: Improved verification logic
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces-bridge.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/interfaces-bridge.xml.in b/interface-definitions/interfaces-bridge.xml.in
index e940e6685..63c543f33 100644
--- a/interface-definitions/interfaces-bridge.xml.in
+++ b/interface-definitions/interfaces-bridge.xml.in
@@ -144,7 +144,7 @@
<description>VLAN id range allowed on this interface (use '-' as delimiter)</description>
</valueHelp>
<constraint>
- <regex>^([0-9]{1,4}-[0-9]{1,4})|([0-9]{1,4})$</regex>
+ <validator name="allowed-vlan"/>
</constraint>
<constraintErrorMessage>not a valid VLAN ID value or range</constraintErrorMessage>
<multi/>