summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2019-08-29 08:39:52 +0300
committerGitHub <noreply@github.com>2019-08-29 08:39:52 +0300
commitbfef4be6a80a74cb2589855e4956bd06de4b8f5b (patch)
tree67533effbc4115f45a60636d26f7426ba96a26ba
parent4298dfd12e15e727ee565a7873b85fca0ec4f6c8 (diff)
parentd4c7ac01058ce0a3251477aeb9c110fdb883907d (diff)
Merge pull request #4871 from vishaldhingra/ipv4_linklocal
zebra: Added a few more information in route_entry while dumping
-rw-r--r--zebra/zebra_vty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 5c0dc27380..e6487b8334 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -455,6 +455,10 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
re->status);
json_object_int_add(json_route, "internalFlags",
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)
sprintf(buf, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
tm->tm_sec);