]> git.proxmox.com Git - mirror_frr.git/commitdiff
eigrpd: implement configuration reload
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 1 Aug 2019 19:13:34 +0000 (16:13 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Sat, 3 Aug 2019 17:52:48 +0000 (14:52 -0300)
Reload configuration on SIGHUP using the northbound.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
eigrpd/eigrp_main.c

index 12dbdca82895688d7b3a0b56452a83bd3651c5f3..1781a881735279f99d1dcc5ea1ef0c4a854d4831 100644 (file)
@@ -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. */