mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 16:52:25 +00:00
zebra: Added a few more information in route_entry while dumping
re->nexthop_num and re->nexthop_active_num are calculated while rib processing. Also It helps in encoding the ZAPI message. It's good to dump these parameters also, when the system is in abnormal state. Signed-off-by: vishaldhingra<vdhingra@vmware.com>
This commit is contained in:
parent
401ba2adf9
commit
d4c7ac0105
@ -455,6 +455,10 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
|
|||||||
re->status);
|
re->status);
|
||||||
json_object_int_add(json_route, "internalFlags",
|
json_object_int_add(json_route, "internalFlags",
|
||||||
re->flags);
|
re->flags);
|
||||||
|
json_object_int_add(json_route, "internalNextHopNum",
|
||||||
|
re->nexthop_num);
|
||||||
|
json_object_int_add(json_route, "internalNextHopActiveNum",
|
||||||
|
re->nexthop_active_num);
|
||||||
if (uptime < ONE_DAY_SECOND)
|
if (uptime < ONE_DAY_SECOND)
|
||||||
sprintf(buf, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
|
sprintf(buf, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
|
||||||
tm->tm_sec);
|
tm->tm_sec);
|
||||||
|
Loading…
Reference in New Issue
Block a user