mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 15:06:58 +00:00
eigrpd: implement configuration reload
Reload configuration on SIGHUP using the northbound. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
f25c244b75
commit
3e9759686c
@ -90,10 +90,16 @@ struct option longopts[] = {{0}};
|
|||||||
/* Master of threads. */
|
/* Master of threads. */
|
||||||
struct thread_master *master;
|
struct thread_master *master;
|
||||||
|
|
||||||
|
/* Forward declaration of daemon info structure. */
|
||||||
|
static struct frr_daemon_info eigrpd_di;
|
||||||
|
|
||||||
/* SIGHUP handler. */
|
/* SIGHUP handler. */
|
||||||
static void sighup(void)
|
static void sighup(void)
|
||||||
{
|
{
|
||||||
zlog_info("SIGHUP received");
|
zlog_info("SIGHUP received");
|
||||||
|
|
||||||
|
/* Reload config file. */
|
||||||
|
vty_read_config(NULL, eigrpd_di.config_file, config_default);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SIGINT / SIGTERM handler. */
|
/* SIGINT / SIGTERM handler. */
|
||||||
|
Loading…
Reference in New Issue
Block a user