zlog_debug("GR: exiting graceful restart: %s", reason);
ospf->gr_info.restart_in_progress = false;
- OSPF_TIMER_OFF(ospf->gr_info.t_grace_period);
+ THREAD_OFF(ospf->gr_info.t_grace_period);
/* Record in non-volatile memory that the restart is complete. */
ospf_gr_nvm_delete(ospf);
}
/* Handling of grace period expiry. */
-static int ospf_gr_grace_period_expired(struct thread *thread)
+static void ospf_gr_grace_period_expired(struct thread *thread)
{
struct ospf *ospf = THREAD_ARG(thread);
ospf->gr_info.t_grace_period = NULL;
ospf_gr_restart_exit(ospf, "grace period has expired");
-
- return 0;
}
/*
"Graceful Restart commands\n"
"Prepare upcoming graceful restart\n"
IP_STR
- "Prepare to restart the OSPF process")
+ "Prepare to restart the OSPF process\n")
{
struct ospf *ospf;
struct listnode *node;
}
DEFPY(no_graceful_restart, no_graceful_restart_cmd,
- "no graceful-restart [period (1-1800)]",
+ "no graceful-restart [grace-period (1-1800)]",
NO_STR OSPF_GR_STR
"Maximum length of the 'grace period'\n"
"Maximum length of the 'grace period' in seconds\n")