mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +00:00
Merge pull request #4264 from pguibert6WIND/trace_bfd
More traces for BFD clients
This commit is contained in:
commit
4a4c6feede
@ -275,6 +275,11 @@ static void bgp_bfd_peer_status_update(struct peer *peer, int status)
|
|||||||
bfd_info->status = status;
|
bfd_info->status = status;
|
||||||
bfd_info->last_update = bgp_clock();
|
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)) {
|
if ((status == BFD_STATUS_DOWN) && (old_status == BFD_STATUS_UP)) {
|
||||||
peer->last_reset = PEER_DOWN_BFD_DOWN;
|
peer->last_reset = PEER_DOWN_BFD_DOWN;
|
||||||
BGP_EVENT_ADD(peer, BGP_Stop);
|
BGP_EVENT_ADD(peer, BGP_Stop);
|
||||||
|
@ -249,6 +249,13 @@ static int ospf_bfd_interface_dest_update(ZAPI_CALLBACK_ARGS)
|
|||||||
|
|
||||||
OSPF_NSM_EVENT_SCHEDULE(nbr, NSM_InactivityTimer);
|
OSPF_NSM_EVENT_SCHEDULE(nbr, NSM_InactivityTimer);
|
||||||
}
|
}
|
||||||
|
if ((status == BFD_STATUS_UP)
|
||||||
|
&& (old_status == BFD_STATUS_DOWN)) {
|
||||||
|
if (IS_DEBUG_OSPF(nsm, NSM_EVENTS))
|
||||||
|
zlog_debug("NSM[%s:%s]: BFD Up",
|
||||||
|
IF_NAME(nbr->oi),
|
||||||
|
inet_ntoa(nbr->address.u.prefix4));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user