summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-01 14:18:06 +0200
committerGitHub <noreply@github.com>2022-04-01 14:18:06 +0200
commit7927a8bbd51b8b07c3996507e7c3dfe5b0525e83 (patch)
tree49c6e9d944d69a1b2b491dd3e773bd8c3ffdfac2
parent601ab19fd8c81a998b3c966cc83b85ed60ac5ae0 (diff)
parent37426103b9d0c522ddf62029b931a56197f2a00a (diff)
downloadvyos-1x-7927a8bbd51b8b07c3996507e7c3dfe5b0525e83.tar.gz
vyos-1x-7927a8bbd51b8b07c3996507e7c3dfe5b0525e83.zip
Merge pull request #1262 from sever-sever/T4329
policy: T4329: Fix regex for extcommunity rt
-rw-r--r--interface-definitions/policy.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index 5e037b558..1a4781397 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -1086,7 +1086,7 @@
<description>Based on a router-id IP address</description>
</valueHelp>
<constraint>
- <regex>^((?:[0-9]{1,3}\.){3}[0-9]{1,3}|\d+):\d+$</regex>
+ <regex>^(((\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+) ?)+$</regex>
</constraint>
<constraintErrorMessage>Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number</constraintErrorMessage>
</properties>