summaryrefslogtreecommitdiffstats
path: root/bfdd
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2020-04-27 17:21:45 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-04-27 17:22:13 +0200
commit9be4b18a2f2748e5378902ac0d49c875e22fb25b (patch)
tree8f9cbf066cd9332087817d1ef2457a196d70103d /bfdd
parentMerge pull request #6232 from ton31337/fix/validate_lcommunities (diff)
downloadfrr-9be4b18a2f2748e5378902ac0d49c875e22fb25b.tar.xz
frr-9be4b18a2f2748e5378902ac0d49c875e22fb25b.zip
bfdd: display debugging status of bfd
display debugging status of bfd. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bfdd')
-rw-r--r--bfdd/bfdd_vty.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c
index f539c6d27..ddfef214d 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;
}