]> git.proxmox.com Git - mirror_frr.git/commitdiff
bfdd: display debugging status of bfd
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 27 Apr 2020 15:21:45 +0000 (17:21 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 27 Apr 2020 15:22:13 +0000 (17:22 +0200)
display debugging status of bfd.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bfdd/bfdd_vty.c

index f539c6d2706e111dddc2c7e283a1f17adba01866..ddfef214d2a26299395d2cb41d18bf1cb45a0a93 100644 (file)
@@ -878,9 +878,12 @@ DEFUN_NOSH(show_debugging_bfd,
           "BFD daemon\n")
 {
        vty_out(vty, "BFD debugging status:\n");
-       vty_out(vty, "  Peer events debugging.\n");
-       vty_out(vty, "  Zebra events debugging.\n");
-       vty_out(vty, "  Network layer debugging.\n");
+       if (bglobal.debug_peer_event)
+               vty_out(vty, "  Peer events debugging is on.\n");
+       if (bglobal.debug_zebra)
+               vty_out(vty, "  Zebra events debugging is on.\n");
+       if (bglobal.debug_network)
+               vty_out(vty, "  Network layer debugging is on.\n");
 
        return CMD_SUCCESS;
 }