diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-22 09:42:55 +0200 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-25 15:49:38 +0200 | 
| commit | 77151b6f016c31a921b74c8244c3489dcfb7e447 (patch) | |
| tree | 2dc904735e8f2996c0b00bd5dd2a08f93e3b1182 /zebra | |
| parent | 73a829f709dcdac1a414be43216d7dbce8d0e428 (diff) | |
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 <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra')
| -rw-r--r-- | zebra/debug.c | 3 | ||||
| -rw-r--r-- | zebra/debug.h | 2 | 
2 files changed, 5 insertions, 0 deletions
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 */  | 
