]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix enabling bfd debug
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 28 May 2021 08:55:27 +0000 (11:55 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 8 Jun 2021 17:50:24 +0000 (20:50 +0300)
When enabling bfd debug from the enable mode, library debugging is not
enabled.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_debug.c

index ce1b7b552b598754cdb5fdaaa9796a6672aadb6c..8f286e66df0a24ada8a915239d5427233b317c16 100644 (file)
@@ -2112,10 +2112,13 @@ DEFPY(debug_bgp_bfd, debug_bgp_bfd_cmd,
                        bfd_protocol_integration_set_debug(true);
                }
        } else {
-               if (no)
+               if (no) {
                        TERM_DEBUG_OFF(bfd, BFD_LIB);
-               else
+                       bfd_protocol_integration_set_debug(false);
+               } else {
                        TERM_DEBUG_ON(bfd, BFD_LIB);
+                       bfd_protocol_integration_set_debug(true);
+               }
        }
 
        return CMD_SUCCESS;