]> git.puffer.fish Git - mirror/frr.git/commitdiff
yang: Fix the ipv6 multicast pattern in frr-route-types 10754/head
authorMobashshera Rasool <mrasool@vmware.com>
Tue, 8 Mar 2022 07:40:02 +0000 (23:40 -0800)
committerMobashshera Rasool <mrasool@vmware.com>
Tue, 8 Mar 2022 07:40:02 +0000 (23:40 -0800)
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 <mrasool@vmware.com>
yang/frr-route-types.yang

index aeb52a65205193e47a99b4a69331b5e4d63fe1a6..ffc671c99ad2dad75a681e6510db6a08c625e1cc 100644 (file)
@@ -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,