diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-26 18:24:45 +0100 |
---|---|---|
committer | Mark Stapp <mjs@cisco.com> | 2024-08-27 15:53:02 +0200 |
commit | 82e52e0f21c12aa5b7270032c32b38e1fa33aa28 (patch) | |
tree | 6a771925348869c500ab278fd54fb30b267bc7bf /vrrpd/vrrp_debug.c | |
parent | lib: rework debug init (diff) | |
download | frr-82e52e0f21c12aa5b7270032c32b38e1fa33aa28.tar.xz frr-82e52e0f21c12aa5b7270032c32b38e1fa33aa28.zip |
lib: common debug config output
Implement common code for debug config output and remove daemon-specific
code that is duplicated everywhere.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'vrrpd/vrrp_debug.c')
-rw-r--r-- | vrrpd/vrrp_debug.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/vrrpd/vrrp_debug.c b/vrrpd/vrrp_debug.c index ebaeca27d..ccb0803c0 100644 --- a/vrrpd/vrrp_debug.c +++ b/vrrpd/vrrp_debug.c @@ -13,13 +13,13 @@ #include "vrrp_debug.h" /* clang-format off */ -struct debug vrrp_dbg_arp = {0, "VRRP ARP"}; -struct debug vrrp_dbg_auto = {0, "VRRP autoconfiguration events"}; -struct debug vrrp_dbg_ndisc = {0, "VRRP Neighbor Discovery"}; -struct debug vrrp_dbg_pkt = {0, "VRRP packets"}; -struct debug vrrp_dbg_proto = {0, "VRRP protocol events"}; -struct debug vrrp_dbg_sock = {0, "VRRP sockets"}; -struct debug vrrp_dbg_zebra = {0, "VRRP Zebra events"}; +struct debug vrrp_dbg_arp = {0, "debug vrrp arp", "VRRP ARP"}; +struct debug vrrp_dbg_auto = {0, "debug vrrp autoconfigure", "VRRP autoconfiguration events"}; +struct debug vrrp_dbg_ndisc = {0, "debug vrrp ndisc", "VRRP Neighbor Discovery"}; +struct debug vrrp_dbg_pkt = {0, "debug vrrp packets", "VRRP packets"}; +struct debug vrrp_dbg_proto = {0, "debug vrrp protocol", "VRRP protocol events"}; +struct debug vrrp_dbg_sock = {0, "debug vrrp sockets", "VRRP sockets"}; +struct debug vrrp_dbg_zebra = {0, "debug vrrp zebra", "VRRP Zebra events"}; struct debug *vrrp_debugs[] = { &vrrp_dbg_arp, @@ -56,11 +56,6 @@ static int vrrp_debug_config_write_helper(struct vty *vty, bool config) return 0; } -int vrrp_config_write_debug(struct vty *vty) -{ - return vrrp_debug_config_write_helper(vty, true); -} - int vrrp_debug_status_write(struct vty *vty) { return vrrp_debug_config_write_helper(vty, false); |