]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Display next hop's weight (if any) in route brief output
authorvivek <vivek@cumulusnetworks.com>
Tue, 24 Mar 2020 21:44:07 +0000 (14:44 -0700)
committervivek <vivek@cumulusnetworks.com>
Tue, 31 Mar 2020 03:12:32 +0000 (20:12 -0700)
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
zebra/zebra_vty.c

index ef341b18bca7de6f45ceef71c04fababdd3c64eb..ef3dc9808f1ae40378e0af757ffea53c88a6b4e0 100644 (file)
@@ -806,6 +806,9 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
 
                show_route_nexthop_helper(vty, re, nexthop);
 
+               if (nexthop->weight)
+                       vty_out(vty, ", weight %u", nexthop->weight);
+
                vty_out(vty, ", %s\n", up_str);
 
                /* Check for backup info */