diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-08-01 16:13:34 -0300 | 
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-08-03 14:52:48 -0300 | 
| commit | 3e9759686c7ac24651f925ec19fbc92384edb4bd (patch) | |
| tree | 6cc90b805a38b7f7e89a787fb7ef7528f6e0f795 /eigrpd/eigrp_main.c | |
| parent | f25c244b7502f2fa61f143b514eef8f6b9e24355 (diff) | |
eigrpd: implement configuration reload
Reload configuration on SIGHUP using the northbound.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'eigrpd/eigrp_main.c')
| -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 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. */  | 
