summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2022-03-08 08:40:02 +0100
committerMobashshera Rasool <mrasool@vmware.com>2022-03-08 08:40:02 +0100
commit3a7ef7a7b677deaafa1132f24e1df1d1f0538a0b (patch)
treef83b70626b75d5fb2eb0b9a21611cf5d76f64a12 /yang
parentMerge pull request #10748 from opensourcerouting/unused-20220307 (diff)
downloadfrr-3a7ef7a7b677deaafa1132f24e1df1d1f0538a0b.tar.xz
frr-3a7ef7a7b677deaafa1132f24e1df1d1f0538a0b.zip
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 <mrasool@vmware.com>
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-route-types.yang4
1 files changed, 1 insertions, 3 deletions
diff --git a/yang/frr-route-types.yang b/yang/frr-route-types.yang
index aeb52a652..ffc671c99 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,