From: Donald Sharp Date: Thu, 7 Oct 2021 16:08:42 +0000 (-0400) Subject: zebra: Display how long zebra is expected to wait for GR X-Git-Tag: base_8.2~348^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=76ab1a97021a7a6f00de9e87643d589c844a3421;p=matthieu%2Ffrr.git zebra: Display how long zebra is expected to wait for GR 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 --- diff --git a/zebra/zserv.c b/zebra/zserv.c index 0c4515a695..abb9c5ca5d 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -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: