]> git.proxmox.com Git - mirror_frr.git/commitdiff
yang: route-distinguisher typedef support asdot notation
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 24 Nov 2022 14:44:53 +0000 (15:44 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 10 Feb 2023 09:27:23 +0000 (10:27 +0100)
Some route-distinguisher notation is not supported today.
route-map rmap permit 1
 match evpn rd 1.1:1
 match evpn rd 0.65000:1
!

Add support for this.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
yang/frr-bgp-route-map.yang

index b3013b4f3f29f2fe6f0b8ac273fc7edc164f3f9a..8e288194eceddafc06aec513867525bcf986f537 100644 (file)
@@ -409,7 +409,19 @@ module frr-bgp-route-map {
       +     '[1-3][0-9]{9}|[1-9][0-9]{0,8}|0):'
       +     '(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
       +     '6[0-4][0-9]{3}|'
-      +     '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0)';
+      +     '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0))|'
+      +  '((6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
+      +     '6[0-4][0-9]{3}|'
+      +     '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0).'
+      +  '(6553[0-5]|655[0-2][0-9]|65[0-4][0-9]{2}|'
+      +     '6[0-4][0-9]{3}|'
+      +     '[1-5][0-9]{4}|[1-9][0-9]{0,3}|0):'
+      +     '(429496729[0-5]|42949672[0-8][0-9]|'
+      +     '4294967[01][0-9]{2}|'
+      +     '429496[0-6][0-9]{3}|42949[0-5][0-9]{4}|'
+      +     '4294[0-8][0-9]{5}|'
+      +     '429[0-3][0-9]{6}|42[0-8][0-9]{7}|4[01][0-9]{8}|'
+      +     '[1-3][0-9]{9}|[1-9][0-9]{0,8}|0))';
     }
 
     description