Merge pull request #9722 from chiragshah6/zdev

zebra: add nhg id to show ip route json
This commit is contained in:
Sri Mohana Singamsetty 2021-10-04 10:07:00 -07:00 committed by GitHub
commit fd7abfa80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -965,6 +965,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
json_object_int_add(json_route, "internalNextHopActiveNum", json_object_int_add(json_route, "internalNextHopActiveNum",
nexthop_group_active_nexthop_num( nexthop_group_active_nexthop_num(
&(re->nhe->nhg))); &(re->nhe->nhg)));
json_object_int_add(json_route, "nexthopGroupId", re->nhe_id);
json_object_string_add(json_route, "uptime", up_str); json_object_string_add(json_route, "uptime", up_str);