summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-08-01 21:13:34 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-08-03 19:52:48 +0200
commit3e9759686c7ac24651f925ec19fbc92384edb4bd (patch)
tree6cc90b805a38b7f7e89a787fb7ef7528f6e0f795
parenteigrpd: migrate old CLI to northbound (diff)
downloadfrr-3e9759686c7ac24651f925ec19fbc92384edb4bd.tar.xz
frr-3e9759686c7ac24651f925ec19fbc92384edb4bd.zip
eigrpd: implement configuration reload
Reload configuration on SIGHUP using the northbound. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
-rw-r--r--eigrpd/eigrp_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/eigrpd/eigrp_main.c b/eigrpd/eigrp_main.c
index 12dbdca82..1781a8817 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. */