]> git.proxmox.com Git - mirror_frr.git/commitdiff
yang: use filter types in route-map
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 25 Jul 2019 20:01:07 +0000 (17:01 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 1 Aug 2019 22:58:52 +0000 (19:58 -0300)
Import the new YANG model filter and use its types.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
yang/frr-route-map.yang

index 349f427f5bc97ba8490fe6ca7b4b0e7da98a5e8f..0ce40b474b1fde6d0ec2a6a87760c4f4126a0d29 100644 (file)
@@ -6,6 +6,9 @@ module frr-route-map {
   import ietf-inet-types {
     prefix inet;
   }
+  import frr-filter {
+    prefix filter;
+  }
 
   organization "Free Range Routing";
   contact
@@ -168,18 +171,14 @@ module frr-route-map {
             when "./condition = 'ipv4-address-list' or
                   ./condition = 'ipv4-next-hop-list'";
             leaf access-list-num {
-              type uint8 {
-                range "1..199";
-              }
+              type filter:access-list-standard;
             }
           }
           case access-list-num-extended {
             when "./condition = 'ipv4-address-list' or
                   ./condition = 'ipv4-next-hop-list'";
             leaf access-list-num-extended {
-              type uint16 {
-                range "1300..2699";
-              }
+              type filter:access-list-extended;
             }
           }
           case list-name {
@@ -190,7 +189,7 @@ module frr-route-map {
                   ./condition = 'ipv6-address-list' or
                   ./condition = 'ipv6-prefix-list'";
             leaf list-name {
-              type string;
+              type filter:access-list-name;
             }
           }
           case ipv6-address {