summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2022-04-07 11:13:34 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2022-04-20 16:45:17 +0200
commitc7fd8c62d90a35c552eeb784b6a85a7f60462488 (patch)
tree088b1c2733a65f24756063de91fc53b02ea2e54d
parente09284ca092514837e5d68b0893a609258a26009 (diff)
isisd: enable BFD messaging debug when isis bfd is used
In addition to turning on isis bfd debugging traces, the internal bfd messaging debug is also enabled. Reversely, when isis bfd traces are off, the internal messaging debug traces are off too. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rw-r--r--isisd/isisd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c
index 47fe62d27c..85307f448b 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -2158,6 +2158,7 @@ DEFUN (debug_isis_bfd,
PROTO_NAME " interaction with BFD\n")
{
debug_bfd |= DEBUG_BFD;
+ bfd_protocol_integration_set_debug(true);
print_debug(vty, DEBUG_BFD, 1);
return CMD_SUCCESS;
@@ -2172,6 +2173,7 @@ DEFUN (no_debug_isis_bfd,
PROTO_NAME " interaction with BFD\n")
{
debug_bfd &= ~DEBUG_BFD;
+ bfd_protocol_integration_set_debug(false);
print_debug(vty, DEBUG_BFD, 0);
return CMD_SUCCESS;