]> git.proxmox.com Git - mirror_frr.git/commitdiff
yang: align keys and leafs
authorChirag Shah <chirag@cumulusnetworks.com>
Mon, 11 May 2020 16:25:23 +0000 (09:25 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 12 May 2020 21:52:08 +0000 (14:52 -0700)
Align leafs according to keys order.
Fix some of the nits seen in yanglint -f yang format.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
yang/frr-zebra.yang

index cc83f1e0c54c3413ba918327642cb3bc7428e4b7..4aeba1412903d7622fd9ccdc10786a8702960fed 100644 (file)
@@ -632,12 +632,6 @@ module frr-zebra {
         "RIBs supported by FRR.";
       list rib {
         key "afi-safi-name table-id";
-        leaf table-id {
-          type uint32;
-          description
-            "Routing Table id (default id - 254).";
-        }
-
         leaf afi-safi-name {
           type identityref {
             base afi-safi-type;
@@ -646,29 +640,36 @@ module frr-zebra {
             "AFI, SAFI name.";
         }
 
+        leaf table-id {
+          type uint32;
+          description
+            "Routing Table id (default id - 254).";
+        }
+
         list route {
           key "prefix";
           config false;
           leaf prefix {
-             type inet:ip-prefix;
-             description
-                "The route's prefix.";
+            type inet:ip-prefix;
+            description
+              "The route's prefix.";
           }
 
           list route-entry {
             key "protocol";
             leaf protocol {
-               type frr-route-types:frr-route-types;
-               description
-                  "The protocol owning the route.";
+              type frr-route-types:frr-route-types;
+              description
+                "The protocol owning the route.";
             }
 
             leaf instance {
               type uint16;
               must "../protocol = \"ospf\"";
               description
-              "Retrieve routes from a specific OSPF instance.";
+                "Retrieve routes from a specific OSPF instance.";
             }
+
             uses route-common;
           }
         }