eigrpd: implement configuration reload

Reload configuration on SIGHUP using the northbound.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
Rafael Zalamena 2019-08-01 16:13:34 -03:00
parent f25c244b75
commit 3e9759686c

View File

@ -90,10 +90,16 @@ struct option longopts[] = {{0}};
/* Master of threads. */ /* Master of threads. */
struct thread_master *master; struct thread_master *master;
/* Forward declaration of daemon info structure. */
static struct frr_daemon_info eigrpd_di;
/* SIGHUP handler. */ /* SIGHUP handler. */
static void sighup(void) static void sighup(void)
{ {
zlog_info("SIGHUP received"); zlog_info("SIGHUP received");
/* Reload config file. */
vty_read_config(NULL, eigrpd_di.config_file, config_default);
} }
/* SIGINT / SIGTERM handler. */ /* SIGINT / SIGTERM handler. */