summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_bfd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-05-07 03:42:18 +0200
committerGitHub <noreply@github.com>2019-05-07 03:42:18 +0200
commit4a4c6feededd988acef162d9cf5d6b48da94d799 (patch)
tree64c00937312c19281529d5a51234e6796bf13aa4 /bgpd/bgp_bfd.c
parentMerge pull request #4256 from donaldsharp/zebra_table (diff)
parentospfd: add bfd up event trace (diff)
downloadfrr-4a4c6feededd988acef162d9cf5d6b48da94d799.tar.xz
frr-4a4c6feededd988acef162d9cf5d6b48da94d799.zip
Merge pull request #4264 from pguibert6WIND/trace_bfd
More traces for BFD clients
Diffstat (limited to 'bgpd/bgp_bfd.c')
-rw-r--r--bgpd/bgp_bfd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c
index 3b6499d36..45e45977a 100644
--- a/bgpd/bgp_bfd.c
+++ b/bgpd/bgp_bfd.c
@@ -275,6 +275,11 @@ static void bgp_bfd_peer_status_update(struct peer *peer, int status)
bfd_info->status = status;
bfd_info->last_update = bgp_clock();
+ if (status != old_status) {
+ if (BGP_DEBUG(neighbor_events, NEIGHBOR_EVENTS))
+ zlog_debug("[%s]: BFD %s", peer->host,
+ bfd_get_status_str(status));
+ }
if ((status == BFD_STATUS_DOWN) && (old_status == BFD_STATUS_UP)) {
peer->last_reset = PEER_DOWN_BFD_DOWN;
BGP_EVENT_ADD(peer, BGP_Stop);