summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces-ethernet.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-20 21:01:59 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-20 21:07:38 +0200
commit2fe39c3f4d7408509273c9e2ac400437aba9616f (patch)
tree77a6a14dd42c538e5d6403603031ea36cf5172a2 /interface-definitions/interfaces-ethernet.xml.in
parentee2db552acc7ab118897d538673b61794298ca06 (diff)
downloadvyos-1x-2fe39c3f4d7408509273c9e2ac400437aba9616f.tar.gz
vyos-1x-2fe39c3f4d7408509273c9e2ac400437aba9616f.zip
xml: T3488: when using regex one must use ^ and $ when checking string literals
(cherry picked from commit 85d0ae7b434a3ae9f3bd50ad7fee1fcd23b26a26)
Diffstat (limited to 'interface-definitions/interfaces-ethernet.xml.in')
-rw-r--r--interface-definitions/interfaces-ethernet.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/interfaces-ethernet.xml.in b/interface-definitions/interfaces-ethernet.xml.in
index bda44d64c..54be3a43b 100644
--- a/interface-definitions/interfaces-ethernet.xml.in
+++ b/interface-definitions/interfaces-ethernet.xml.in
@@ -47,7 +47,7 @@
<description>Full duplex</description>
</valueHelp>
<constraint>
- <regex>(auto|half|full)</regex>
+ <regex>^(auto|half|full)$</regex>
</constraint>
<constraintErrorMessage>duplex must be auto, half or full</constraintErrorMessage>
</properties>
@@ -154,7 +154,7 @@
<description>100 Gbit/sec</description>
</valueHelp>
<constraint>
- <regex>(auto|10|100|1000|2500|5000|10000|25000|40000|50000|100000)</regex>
+ <regex>^(auto|10|100|1000|2500|5000|10000|25000|40000|50000|100000)$</regex>
</constraint>
<constraintErrorMessage>Speed must be auto, 10, 100, 1000, 2500, 5000, 10000, 25000, 40000, 50000 or 100000</constraintErrorMessage>
</properties>