From: vivek Date: Tue, 24 Mar 2020 21:44:07 +0000 (-0700) Subject: zebra: Display next hop's weight (if any) in route brief output X-Git-Tag: base_7.4~133^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ae0eaca5ce84328c641a1a4aab7a1caf7a3cb8b4;p=mirror%2Ffrr.git zebra: Display next hop's weight (if any) in route brief output Signed-off-by: Vivek Venkatraman --- diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index ef341b18bc..ef3dc9808f 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -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 */