From 37426103b9d0c522ddf62029b931a56197f2a00a Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 1 Apr 2022 09:46:37 +0000 Subject: 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' --- interface-definitions/policy.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interface-definitions/policy.xml.in') 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 @@ Based on a router-id IP address - ^((?:[0-9]{1,3}\.){3}[0-9]{1,3}|\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 -- cgit v1.2.3