Skip to content

Commit

Permalink
yang: align keys and leafs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
chiragshah6 committed May 12, 2020
1 parent 89480d4 commit 482692f
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions yang/frr-zebra.yang
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 482692f

Please sign in to comment.