]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Update ip route show with nexthop_num API
authorStephen Worley <sworley@cumulusnetworks.com>
Fri, 30 Aug 2019 20:18:07 +0000 (16:18 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:43 +0000 (11:13 -0400)
Switch the nexthop_num dereferences to use the nexthop_group
API in `vty_show_ip_route()`.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_vty.c

index 2ff05e4858ae6f4bcb87db512b74992693e44220..e12d16333ff8305f8282b62f8d9afa2b4afc4a7f 100644 (file)
@@ -466,9 +466,9 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
                json_object_int_add(json_route, "internalFlags",
                                    re->flags);
                json_object_int_add(json_route, "internalNextHopNum",
-                                   re->nexthop_num);
+                                   nexthop_group_nexthop_num(re->ng));
                json_object_int_add(json_route, "internalNextHopActiveNum",
-                                   re->nexthop_active_num);
+                                   nexthop_group_active_nexthop_num(re->ng));
                if (uptime < ONE_DAY_SECOND)
                        sprintf(buf, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
                                tm->tm_sec);