]> git.proxmox.com Git - mirror_frr.git/blobdiff - vrrpd/vrrp_main.c
Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed
[mirror_frr.git] / vrrpd / vrrp_main.c
index 6afb418ad0890351d589111e3e3320f97dcff81e..95b3cfad8f1e8b59538707857401277d030023ea 100644 (file)
@@ -33,6 +33,7 @@
 #include "lib/sigevent.h"
 #include "lib/thread.h"
 #include "lib/vrf.h"
+#include "lib/vty.h"
 
 #include "vrrp.h"
 #include "vrrp_debug.h"
@@ -64,10 +65,14 @@ struct option longopts[] = { {0} };
 /* Master of threads. */
 struct thread_master *master;
 
+static struct frr_daemon_info vrrpd_di;
+
 /* SIGHUP handler. */
 static void sighup(void)
 {
        zlog_info("SIGHUP received");
+
+       vty_read_config(NULL, vrrpd_di.config_file, config_default);
 }
 
 /* SIGINT / SIGTERM handler. */
@@ -105,8 +110,9 @@ struct quagga_signal_t vrrp_signals[] = {
        },
 };
 
-static const struct frr_yang_module_info *vrrp_yang_modules[] = {
+static const struct frr_yang_module_info *const vrrp_yang_modules[] = {
        &frr_interface_info,
+       &frr_vrrpd_info,
 };
 
 #define VRRP_VTY_PORT 2619