From 3e9759686c7ac24651f925ec19fbc92384edb4bd Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Thu, 1 Aug 2019 16:13:34 -0300 Subject: [PATCH] eigrpd: implement configuration reload Reload configuration on SIGHUP using the northbound. Signed-off-by: Rafael Zalamena --- eigrpd/eigrp_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eigrpd/eigrp_main.c b/eigrpd/eigrp_main.c index 12dbdca828..1781a88173 100644 --- a/eigrpd/eigrp_main.c +++ b/eigrpd/eigrp_main.c @@ -90,10 +90,16 @@ struct option longopts[] = {{0}}; /* Master of threads. */ struct thread_master *master; +/* Forward declaration of daemon info structure. */ +static struct frr_daemon_info eigrpd_di; + /* SIGHUP handler. */ static void sighup(void) { zlog_info("SIGHUP received"); + + /* Reload config file. */ + vty_read_config(NULL, eigrpd_di.config_file, config_default); } /* SIGINT / SIGTERM handler. */ -- 2.39.5