From 534b98f9254dad9845492ba42fa93a0ea32aa5fb Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 9 Dec 2019 13:26:38 -0500 Subject: vrrpd, yang: cleanup vrrp nb conversion - Use correct units and conversions in model & code - Fix incorrect CLI help string for V6 virtual addrs - Fix nb get-entry callback for virtual router - Fix a couple style nits - Simplify some CLI code - Remove unused code - Remove unused YANG definitions - Update sighup() to handle reloads - Update interface level config writer to use NB callbacks - Add simplified `no` forms for priority and advertisement-interval commands Signed-off-by: Quentin Young --- vrrpd/vrrp_main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vrrpd/vrrp_main.c') diff --git a/vrrpd/vrrp_main.c b/vrrpd/vrrp_main.c index 7bb3f0540..95b3cfad8 100644 --- a/vrrpd/vrrp_main.c +++ b/vrrpd/vrrp_main.c @@ -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. */ -- cgit v1.2.3