From 92081acd18f9944bc6b0b18b056b9c18b5189f7b Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Mon, 11 May 2020 09:25:23 -0700 Subject: [PATCH] yang: align keys and leafs Align leafs according to keys order. Fix some of the nits seen in yanglint -f yang format. Signed-off-by: Chirag Shah --- yang/frr-zebra.yang | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/yang/frr-zebra.yang b/yang/frr-zebra.yang index 63722d73cb58..03ef372dc983 100644 --- a/yang/frr-zebra.yang +++ b/yang/frr-zebra.yang @@ -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; @@ -647,29 +641,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; } }