diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2020-04-27 15:12:07 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 15:12:07 -0300 |
| commit | c516ebf90fa659f2026e28cf59bd026a5447762c (patch) | |
| tree | fcb50edaa2b05c88bccc2d2e0c33d22e865fcd76 /bfdd/bfdd_vty.c | |
| parent | abe94d6562ba70f8b8a6997a7b0fac381e0dcfdd (diff) | |
| parent | 9be4b18a2f2748e5378902ac0d49c875e22fb25b (diff) | |
Merge pull request #6301 from pguibert6WIND/bfd_debug_show
bfdd: display debugging status of bfd
Diffstat (limited to 'bfdd/bfdd_vty.c')
| -rw-r--r-- | bfdd/bfdd_vty.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c index 71d0a49f6d..f22e9277a1 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; } |
