From 3a7ef7a7b677deaafa1132f24e1df1d1f0538a0b Mon Sep 17 00:00:00 2001 From: Mobashshera Rasool Date: Mon, 7 Mar 2022 23:40:02 -0800 Subject: [PATCH] yang: Fix the ipv6 multicast pattern in frr-route-types The pattern defined for ipv6-multicast-group-prefix is wrong. This is leading to mismatch for all the valid ipv6 multicast addresses. Signed-off-by: Mobashshera Rasool --- yang/frr-route-types.yang | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yang/frr-route-types.yang b/yang/frr-route-types.yang index aeb52a6520..ffc671c99a 100644 --- a/yang/frr-route-types.yang +++ b/yang/frr-route-types.yang @@ -162,9 +162,7 @@ module frr-route-types { typedef ipv6-multicast-group-prefix { type inet:ipv6-prefix { pattern - '(((FF|ff)[0-9a-fA-F]{2}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/((1[6-9])|([2-9][0-9])|(1[0-1][0-9])|(12[0-8])))'; - pattern - '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?)(/.+)'; + '(([fF]{2}[0-9a-fA-F]{2}):).*'; } description "This type represents an IPv6 multicast group prefix,