diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-08-01 21:13:34 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-08-03 19:52:48 +0200 |
commit | 3e9759686c7ac24651f925ec19fbc92384edb4bd (patch) | |
tree | 6cc90b805a38b7f7e89a787fb7ef7528f6e0f795 | |
parent | eigrpd: migrate old CLI to northbound (diff) | |
download | frr-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.c | 6 |
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. */ |