From 80ecb1b7aaab47edeb355c3b74a763e940d88179 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 29 Apr 2022 19:51:50 +0200 Subject: xml: T4047: use full string match in the regex validator --- interface-definitions/snmp.xml.in | 46 +++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'interface-definitions/snmp.xml.in') diff --git a/interface-definitions/snmp.xml.in b/interface-definitions/snmp.xml.in index b9e0f4cc5..b4f72589e 100644 --- a/interface-definitions/snmp.xml.in +++ b/interface-definitions/snmp.xml.in @@ -13,7 +13,7 @@ Community name - ^[a-zA-Z0-9\-_]{1,100}$ + [a-zA-Z0-9\-_]{1,100} Community string is limited to alphanumerical characters only with a total lenght of 100 @@ -33,7 +33,7 @@ Read-Write - ^(ro|rw)$ + (ro|rw) Authorization type must be either 'rw' or 'ro' @@ -72,7 +72,7 @@ Contact information - ^.{1,255}$ + .{1,255} Contact information is limited to 255 characters or less @@ -81,7 +81,7 @@ Description information - ^.{1,255}$ + .{1,255} Description is limited to 255 characters or less @@ -116,7 +116,7 @@ Location information - ^.{1,255}$ + .{1,255} Location is limited to 255 characters or less @@ -132,7 +132,7 @@ Enable routing table OIDs (ipCidrRouteTable inetCidrRouteTable) - ^(route-table)$ + (route-table) OID must be 'route-table' @@ -202,7 +202,7 @@ Specifies the EngineID that uniquely identify an agent (e.g. 000000000000000000000002) - ^([0-9a-f][0-9a-f]){1,18}$ + ([0-9a-f][0-9a-f]){1,18} ID must contain an even number (from 2 to 36) of hex digits @@ -233,7 +233,7 @@ Messages are authenticated and encrypted (authPriv) - ^(noauth|auth|priv)$ + (noauth|auth|priv) auth @@ -274,7 +274,7 @@ Defines the encrypted key for authentication - ^[0-9a-f]*$ + [0-9a-f]* Encrypted key must only contain hex digits @@ -283,7 +283,7 @@ Defines the clear text key for authentication - ^.{8,}$ + .{8,} Key must contain 8 or more characters @@ -304,7 +304,7 @@ Defines the encrypted key for privacy protocol - ^[0-9a-f]*$ + [0-9a-f]* Encrypted key must only contain hex digits @@ -313,7 +313,7 @@ Defines the clear text key for privacy protocol - ^.{8,}$ + .{8,} Key must contain 8 or more characters @@ -337,7 +337,7 @@ Use TRAP - ^(inform|trap)$ + (inform|trap) inform @@ -356,7 +356,7 @@ Specifies the user with name username - [^\(\)\|\-]+$ + [^\(\)\|\-]+ Illegal characters in name @@ -370,7 +370,7 @@ Defines the encrypted key for authentication - ^[0-9a-f]*$ + [0-9a-f]* Encrypted key must only contain hex digits @@ -379,7 +379,7 @@ Defines the clear text key for authentication - ^.{8,}$ + .{8,} Key must contain 8 or more characters @@ -405,7 +405,7 @@ Defines the encrypted key for privacy protocol - ^[0-9a-f]*$ + [0-9a-f]* Encrypted key must only contain hex digits @@ -414,7 +414,7 @@ Defines the clear text key for privacy protocol - ^.{8,}$ + .{8,} Key must contain 8 or more characters @@ -428,7 +428,7 @@ Specifies the view with name viewname - [^\(\)\|\-]+$ + [^\(\)\|\-]+ Illegal characters in name @@ -437,7 +437,7 @@ Specifies the oid - ^[0-9]+(\.[0-9]+)*$ + [0-9]+(\.[0-9]+)* OID must start from a number @@ -451,7 +451,7 @@ Defines a bit-mask that is indicating which subidentifiers of the associated subtree OID should be regarded as significant - ^[0-9a-f]{2}([\.:][0-9a-f]{2})*$ + [0-9a-f]{2}([\.:][0-9a-f]{2})* MASK is a list of hex octets, separated by '.' or ':' @@ -471,7 +471,7 @@ Extension name - ^[a-z0-9\.\-\_]+ + [a-z0-9\.\-\_]+ Script extension contains invalid characters @@ -483,7 +483,7 @@ - ^[a-z0-9\.\-\_\/]+ + [a-z0-9\.\-\_\/]+ Script extension contains invalid characters -- cgit v1.2.3