diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-12-09 19:26:38 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-12-09 22:05:01 +0100 |
commit | 534b98f9254dad9845492ba42fa93a0ea32aa5fb (patch) | |
tree | 1f6065e80fec84c8d017f8743547dc5a4fc01e5c /vrrpd/vrrp_main.c | |
parent | lib: add ipaddr_isset() (diff) | |
download | frr-534b98f9254dad9845492ba42fa93a0ea32aa5fb.tar.xz frr-534b98f9254dad9845492ba42fa93a0ea32aa5fb.zip |
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 <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp_main.c')
-rw-r--r-- | vrrpd/vrrp_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
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. */ |