From 9be4b18a2f2748e5378902ac0d49c875e22fb25b Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Mon, 27 Apr 2020 17:21:45 +0200 Subject: [PATCH] bfdd: display debugging status of bfd display debugging status of bfd. Signed-off-by: Philippe Guibert --- bfdd/bfdd_vty.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c index f539c6d270..ddfef214d2 100644 --- a/bfdd/bfdd_vty.c +++ b/bfdd/bfdd_vty.c @@ -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; } -- 2.39.5