diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-04-01 09:46:37 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-04-01 09:46:37 +0000 |
commit | 37426103b9d0c522ddf62029b931a56197f2a00a (patch) | |
tree | 93f16c8e1f0e289b4c3bd119b309247467dc4a10 /interface-definitions | |
parent | 77f9fc8e9358d5e1d3bbf700b31865e4dc266491 (diff) | |
download | vyos-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')
-rw-r--r-- | interface-definitions/policy.xml.in | 2 |
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> |