]> git.proxmox.com Git - mirror_frr.git/commitdiff
pbrd: don't collapse pbr debugs
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 3 Apr 2018 20:48:53 +0000 (16:48 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 17 Apr 2018 22:43:47 +0000 (18:43 -0400)
While compact, collapsing the various debugs into simply `debug pbr` if
all debugs are on is potentially confusing to users.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
pbrd/pbr_debug.c

index 0978262b87246b41daa13aaed553cf2ab77283e2..2693120e15337d2e706d58fd097f8b77fcbcbf65 100644 (file)
@@ -79,11 +79,6 @@ int pbr_debug_config_write_helper(struct vty *vty, bool config)
        if (config)
                mode = DEBUG_MODE_CONF;
 
-       if (pbr_debug_check_all(DEBUG_MODE_CONF) == mode) {
-               vty_out(vty, "debug pbr\n");
-               return 0;
-       }
-
        for (unsigned int i = 0; i < array_size(pbr_debugs); i++)
                if (DEBUG_MODE_CHECK(pbr_debugs[i], mode))
                        vty_out(vty, "%s\n", pbr_debugs_conflines[i]);