mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 20:02:42 +00:00
zebra: Display next hop weight via JSON key
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
This commit is contained in:
parent
f7e1c681f4
commit
09bdb655f7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user