diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-28 10:55:27 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-01 17:07:54 +0200 |
commit | edc0d8cf496b2ebc79f5e662e31a6e53d96747be (patch) | |
tree | 933cf2cd1cc927f35a148900163932c459f39380 /bgpd/bgp_debug.c | |
parent | Merge pull request #8769 from ton31337/fix/time_to_remove (diff) | |
download | frr-edc0d8cf496b2ebc79f5e662e31a6e53d96747be.tar.xz frr-edc0d8cf496b2ebc79f5e662e31a6e53d96747be.zip |
bgpd: fix enabling bfd debug
When enabling bfd debug from the enable mode, library debugging is not
enabled.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r-- | bgpd/bgp_debug.c | 7 |
1 files 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; |