diff options
| author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2021-10-04 10:07:00 -0700 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 10:07:00 -0700 | 
| commit | fd7abfa80b85190bbb790730d11f1d31e7c45669 (patch) | |
| tree | 1c9f0ff08794e29b5f7f6920bd6ab4c0c4ebd982 | |
| parent | a3e036f36a55701325435035b836382fa0061c2b (diff) | |
| parent | 1b3ac4c7cab99b96870dfbee0160926dfff9ec1c (diff) | |
Merge pull request #9722 from chiragshah6/zdev
zebra: add nhg id to show ip route json
| -rw-r--r-- | zebra/zebra_vty.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 79087c5849..4b06e84788 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -965,6 +965,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,  		json_object_int_add(json_route, "internalNextHopActiveNum",  				    nexthop_group_active_nexthop_num(  					    &(re->nhe->nhg))); +		json_object_int_add(json_route, "nexthopGroupId", re->nhe_id);  		json_object_string_add(json_route, "uptime", up_str);  | 
