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/policy.xml.in | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'interface-definitions/policy.xml.in') diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in index 1a4781397..ddb0159d5 100644 --- a/interface-definitions/policy.xml.in +++ b/interface-definitions/policy.xml.in @@ -242,7 +242,7 @@ BGP extended community-list name - ^[-_a-zA-Z0-9]+$ + [-_a-zA-Z0-9]+ Should be an alphanumeric name @@ -291,7 +291,7 @@ BGP large-community-list name - ^[-_a-zA-Z0-9]+$ + [-_a-zA-Z0-9]+ Should be an alphanumeric name @@ -340,7 +340,7 @@ Name of IPv4 prefix-list - ^[-_a-zA-Z0-9]+$ + [-_a-zA-Z0-9]+ Name of prefix-list can only contain alpha-numeric letters, hyphen and underscores @@ -408,7 +408,7 @@ Name of IPv6 prefix-list - ^[-_a-zA-Z0-9]+$ + [-_a-zA-Z0-9]+ Name of prefix-list6 can only contain alpha-numeric letters, hyphen and underscores @@ -476,7 +476,7 @@ Route map name - ^[-_a-zA-Z0-9.]+$ + [-_a-zA-Z0-9.]+ Name of route-map can only contain alpha-numeric letters, hyphen and underscores @@ -582,7 +582,7 @@ Prefix route - ^(macip|multicast|prefix)$ + (macip|multicast|prefix) @@ -834,7 +834,7 @@ Incomplete origin - ^(egp|igp|incomplete)$ + (egp|igp|incomplete) @@ -869,7 +869,7 @@ Match valid entries - ^(invalid|notfound|valid)$ + (invalid|notfound|valid) @@ -1070,7 +1070,7 @@ - ^(cumulative|num-multipaths)$ + (cumulative|num-multipaths) @@ -1086,7 +1086,7 @@ Based on a router-id IP address - ^(((\b(?:(?:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\.){3}(?:(?:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\b)|(\d+)):(\d+) ?)+$ + (((\b(?:(?:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\.){3}(?:(?:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\b)|(\d+)):(\d+) ?)+ Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number @@ -1103,7 +1103,7 @@ Based on a router-id IP address - ^((?:[0-9]{1,3}\.){3}[0-9]{1,3}|\d+):\d+$ + ((?:[0-9]{1,3}\.){3}[0-9]{1,3}|\d+):\d+ Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number @@ -1131,7 +1131,7 @@ - ^(unchanged|peer-address)$ + (unchanged|peer-address) @@ -1251,7 +1251,7 @@ OSPF external type 2 metric - ^(type-1|type-2)$ + (type-1|type-2) @@ -1274,7 +1274,7 @@ Incomplete origin - ^(igp|egp|incomplete)$ + (igp|egp|incomplete) -- cgit v1.2.3