From edc0d8cf496b2ebc79f5e662e31a6e53d96747be Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Fri, 28 May 2021 11:55:27 +0300 Subject: [PATCH] bgpd: fix enabling bfd debug When enabling bfd debug from the enable mode, library debugging is not enabled. Signed-off-by: Igor Ryzhov --- bgpd/bgp_debug.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index ce1b7b552..8f286e66d 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -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; -- 2.39.2