diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 590ec57087..ef341b18bc 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -765,6 +765,10 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn, json_labels); } + if (nexthop->weight) + json_object_int_add(json_nexthop, "weight", + nexthop->weight); + json_object_array_add(json_nexthops, json_nexthop); }