summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsdc <taras@sentrium.io>2019-10-28 17:41:15 +0200
committerJohn Estabrook <jestabro@sentrium.io>2019-11-19 13:10:13 -0600
commitbe5d95ecc74c5552072a2b6628d19d3eeda3a9df (patch)
tree4b217bf9fa76cc624b1ed0ea557973ba3c1a52b1
parentc6ebbc3b047ad43222e3d9f5bfb791c972bf3c5e (diff)
downloadvyos-1x-be5d95ecc74c5552072a2b6628d19d3eeda3a9df.tar.gz
vyos-1x-be5d95ecc74c5552072a2b6628d19d3eeda3a9df.zip
[XML templates] T1772: Changed old hacks to proper regex, according to the fix
(cherry picked from commit 8ae02a738df9746ad648a9611ae03e62b5af9e5d)
-rw-r--r--interface-definitions/https.xml2
-rw-r--r--interface-definitions/snmp.xml4
2 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/https.xml b/interface-definitions/https.xml
index f5d609f95..d9874a1f9 100644
--- a/interface-definitions/https.xml
+++ b/interface-definitions/https.xml
@@ -27,7 +27,7 @@
<constraint>
<validator name="ipv4-address"/>
<validator name="ipv6-address"/>
- <regex>^\\*$</regex>
+ <regex>^\*$</regex>
</constraint>
</properties>
<children>
diff --git a/interface-definitions/snmp.xml b/interface-definitions/snmp.xml
index c52669e24..9aaaf29b4 100644
--- a/interface-definitions/snmp.xml
+++ b/interface-definitions/snmp.xml
@@ -552,7 +552,7 @@
<properties>
<help>Specifies the oid</help>
<constraint>
- <regex>^[0-9]+(\\.[0-9]+)*$</regex>
+ <regex>^[0-9]+(\.[0-9]+)*$</regex>
</constraint>
<constraintErrorMessage>OID must start from a number</constraintErrorMessage>
</properties>
@@ -566,7 +566,7 @@
<properties>
<help>Defines a bit-mask that is indicating which subidentifiers of the associated subtree OID should be regarded as significant</help>
<constraint>
- <regex>^[0-9a-f]{2}([\\.:][0-9a-f]{2})*$</regex>
+ <regex>^[0-9a-f]{2}([\.:][0-9a-f]{2})*$</regex>
</constraint>
<constraintErrorMessage>MASK is a list of hex octets, separated by '.' or ':'</constraintErrorMessage>
</properties>