diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-10-28 11:00:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-28 11:00:06 -0500 |
commit | 4efcd7d44b2194eb36b381fd0ad639fd402c6c6d (patch) | |
tree | 8b5fe1163cdba0e001056413da1a2c8fce48f112 /interface-definitions/snmp.xml | |
parent | aac75107bc9988ecb599265da029827ff09bf713 (diff) | |
parent | 8ae02a738df9746ad648a9611ae03e62b5af9e5d (diff) | |
download | vyos-1x-4efcd7d44b2194eb36b381fd0ad639fd402c6c6d.tar.gz vyos-1x-4efcd7d44b2194eb36b381fd0ad639fd402c6c6d.zip |
Merge pull request #154 from zdc/T1772
[XML templates] T1772: Add escaping of `\` symbol in `<regex>`
Diffstat (limited to 'interface-definitions/snmp.xml')
-rw-r--r-- | interface-definitions/snmp.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/snmp.xml b/interface-definitions/snmp.xml index 14aad90a0..bdfbd4ab6 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> |