From: Philippe Guibert Date: Tue, 22 May 2018 07:42:55 +0000 (+0200) Subject: zebra: PBR show debugging IPSET/IPTABLE hooks declared X-Git-Tag: frr-5.0~3^2~9 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=14b5f87665c7fc21cfbd9a4582bdbd2598a242ad;p=mirror%2Ffrr.git zebra: PBR show debugging IPSET/IPTABLE hooks declared This hook can be used if the plugin module wrap_script is used. This hook is called to dump the debugging status of this module, on the vty. Signed-off-by: Philippe Guibert --- diff --git a/zebra/debug.c b/zebra/debug.c index 14b36cb5fb..85be620bff 100644 --- a/zebra/debug.c +++ b/zebra/debug.c @@ -34,6 +34,8 @@ unsigned long zebra_debug_mpls; unsigned long zebra_debug_vxlan; unsigned long zebra_debug_pw; +DEFINE_HOOK(zebra_debug_show_debugging, (struct vty *vty), (vty)); + DEFUN_NOSH (show_debugging_zebra, show_debugging_zebra_cmd, "show debugging [zebra]", @@ -88,6 +90,7 @@ DEFUN_NOSH (show_debugging_zebra, if (IS_ZEBRA_DEBUG_PW) vty_out(vty, " Zebra pseudowire debugging is on\n"); + hook_call(zebra_debug_show_debugging, vty); return CMD_SUCCESS; } diff --git a/zebra/debug.h b/zebra/debug.h index 987f9d0125..1c08459e26 100644 --- a/zebra/debug.h +++ b/zebra/debug.h @@ -82,4 +82,6 @@ extern unsigned long zebra_debug_pw; extern void zebra_debug_init(void); +DECLARE_HOOK(zebra_debug_show_debugging, (struct vty *vty), (vty)); + #endif /* _ZEBRA_DEBUG_H */