]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: PBR show debugging IPSET/IPTABLE hooks declared
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 22 May 2018 07:42:55 +0000 (09:42 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 31 May 2018 15:44:40 +0000 (17:44 +0200)
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>
zebra/debug.c
zebra/debug.h

index 14b36cb5fb384a2012a74ce0d0b4f7c48a7156c5..85be620bff0992c38bccbdd918b283fc8ce19485 100644 (file)
@@ -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;
 }
 
index 987f9d012543e4b1a7daaad31384cac9cc19b137..1c08459e268151815cc5e055fd5eac390363ff8a 100644 (file)
@@ -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 */