summaryrefslogtreecommitdiff
path: root/interface-definitions/policy.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-04-01 09:46:37 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-04-01 09:46:37 +0000
commit37426103b9d0c522ddf62029b931a56197f2a00a (patch)
tree93f16c8e1f0e289b4c3bd119b309247467dc4a10 /interface-definitions/policy.xml.in
parent77f9fc8e9358d5e1d3bbf700b31865e4dc266491 (diff)
downloadvyos-1x-37426103b9d0c522ddf62029b931a56197f2a00a.tar.gz
vyos-1x-37426103b9d0c522ddf62029b931a56197f2a00a.zip
policy: T4329: Fix regex for extcommunity rt
Fix regex to allow to set several marks for extcommunity rt set extcommunity rt '65:24 65:23 192.168.2.1:11 192.168.0.2:222'
Diffstat (limited to 'interface-definitions/policy.xml.in')
-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>