]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: include zebra nexthop debug in show runn 5706/head
authorMark Stapp <mjs@voltanet.io>
Fri, 17 Jan 2020 21:07:33 +0000 (16:07 -0500)
committerMark Stapp <mjs@voltanet.io>
Tue, 21 Jan 2020 14:26:44 +0000 (09:26 -0500)
Add show output for 'debug zebra nexthop [detail]' category.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/debug.c

index 681dfb87537236643d7f6d2df0df0072b608d9d1..16b1d0057b9eebf4ef0b6663e60a009b4974634d 100644 (file)
@@ -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;
 }