]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Display how long zebra is expected to wait for GR
authorDonald Sharp <sharpd@nvidia.com>
Thu, 7 Oct 2021 16:08:42 +0000 (12:08 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 7 Oct 2021 16:08:42 +0000 (12:08 -0400)
When a client sends to zebra that GR mode is being turned
on.  The client also passes down the time zebra should hold
onto the routes.  Display this time with the output
of the `show zebra client` command as well.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zserv.c

index 0c4515a695ab69c81e74e90e31adb48c13a1df83..abb9c5ca5dc2d5e5184795b0d432885b5691338b 100644 (file)
@@ -1134,7 +1134,8 @@ static void zebra_show_stale_client_detail(struct vty *vty,
                vty_out(vty, "Capabilities : ");
                switch (info->capabilities) {
                case ZEBRA_CLIENT_GR_CAPABILITIES:
-                       vty_out(vty, "Graceful Restart\n");
+                       vty_out(vty, "Graceful Restart(%u seconds)\n",
+                               info->stale_removal_time);
                        break;
                case ZEBRA_CLIENT_ROUTE_UPDATE_COMPLETE:
                case ZEBRA_CLIENT_ROUTE_UPDATE_PENDING: