summaryrefslogtreecommitdiff
path: root/zebra/debug.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2020-01-28 10:27:43 -0500
committerGitHub <noreply@github.com>2020-01-28 10:27:43 -0500
commit61678a82f875a2f584f9602153a2f3f16472b951 (patch)
tree16c26bd82ba04acc3a7b48403379cac08e89d953 /zebra/debug.c
parent6fe6a8b5446685812f86c51993ad08a3b41e8b4b (diff)
parentcb6070bd79bfe10d70f65da4d5fd0f41f953db7d (diff)
Merge pull request #5706 from mjstapp/fix_nh_debug_show
zebra: include zebra nexthop debug in show runn
Diffstat (limited to 'zebra/debug.c')
-rw-r--r--zebra/debug.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/zebra/debug.c b/zebra/debug.c
index 681dfb8753..16b1d0057b 100644
--- a/zebra/debug.c
+++ b/zebra/debug.c
@@ -105,9 +105,9 @@ DEFUN_NOSH (show_debugging_zebra,
if (IS_ZEBRA_DEBUG_MLAG)
vty_out(vty, " Zebra mlag debugging is on\n");
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
- vty_out(vty, "Zebra detailed nexthop debugging is on\n");
+ vty_out(vty, " Zebra detailed nexthop debugging is on\n");
else if (IS_ZEBRA_DEBUG_NHG)
- vty_out(vty, "Zebra nexthop debugging is on\n");
+ vty_out(vty, " Zebra nexthop debugging is on\n");
hook_call(zebra_debug_show_debugging, vty);
return CMD_SUCCESS;
@@ -557,6 +557,14 @@ static int config_write_debug(struct vty *vty)
write++;
}
+ if (CHECK_FLAG(zebra_debug_nexthop, ZEBRA_DEBUG_NHG_DETAILED)) {
+ vty_out(vty, "debug zebra nexthop detail\n");
+ write++;
+ } else if (CHECK_FLAG(zebra_debug_nexthop, ZEBRA_DEBUG_NHG)) {
+ vty_out(vty, "debug zebra nexthop\n");
+ write++;
+ }
+
return write;
}