summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-04-15 01:06:10 +0200
committerGitHub <noreply@github.com>2020-04-15 01:06:10 +0200
commit1cb0c038c28eacab021b528e9faef58f84526626 (patch)
tree68f0e418ec5ab2c88315f58b2a5ecaa0ae511451 /doc
parentMerge pull request #6211 from mjstapp/fix_zebra_cov (diff)
parentdoc: update BFD debugging section (diff)
downloadfrr-1cb0c038c28eacab021b528e9faef58f84526626.tar.xz
frr-1cb0c038c28eacab021b528e9faef58f84526626.zip
Merge pull request #6214 from opensourcerouting/bfdd-debug
bfdd: code/logging/debug improvements
Diffstat (limited to 'doc')
-rw-r--r--doc/user/bfd.rst29
1 files changed, 26 insertions, 3 deletions
diff --git a/doc/user/bfd.rst b/doc/user/bfd.rst
index e6a3c4977..32397d130 100644
--- a/doc/user/bfd.rst
+++ b/doc/user/bfd.rst
@@ -476,13 +476,36 @@ You can also clear packet counters per session with the following commands, only
Session down events: 0
Zebra notifications: 4
-Logging / debugging
-===================
+Debugging
+=========
-There are no fine grained debug controls for bfdd. Just enable debug logs.
+By default only informational, warning and errors messages are going to be
+displayed. If you want to get debug messages and other diagnostics then make
+sure you have `debugging` level enabled:
::
config
log file /var/log/frr/frr.log debugging
log syslog debugging
+
+You may also fine tune the debug messages by selecting one or more of the
+debug levels:
+
+.. index:: [no] debug bfd network
+.. clicmd:: [no] debug bfd network
+
+ Toggle network events: show messages about socket failures and unexpected
+ BFD messages that may not belong to registered peers.
+
+.. index:: [no] debug bfd peer
+.. clicmd:: [no] debug bfd peer
+
+ Toggle peer event log messages: show messages about peer creation/removal
+ and state changes.
+
+.. index:: [no] debug bfd zebra
+.. clicmd:: [no] debug bfd zebra
+
+ Toggle zebra message events: show messages about interfaces, local
+ addresses, VRF and daemon peer registrations.