Skip to content

Commit

Permalink
Merge pull request #4408 from donaldsharp/bgp_status_fsm
Browse files Browse the repository at this point in the history
bgpd: Update an fsm debug message
  • Loading branch information
srimohans committed May 30, 2019
2 parents 4eb4afa + 1cfe005 commit 64a1a22
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bgpd/bgp_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,9 +949,15 @@ void bgp_fsm_change_status(struct peer *peer, int status)
else if ((peer->status == Established) && (status != Established))
bgp->established_peers--;

if (BGP_DEBUG(neighbor_events, NEIGHBOR_EVENTS))
zlog_debug("%s : vrf %u, established_peers %u", __func__,
bgp->vrf_id, bgp->established_peers);
if (bgp_debug_neighbor_events(peer)) {
struct vrf *vrf = vrf_lookup_by_id(bgp->vrf_id);

zlog_debug("%s : vrf %s(%u), Status: %s established_peers %u", __func__,
vrf ? vrf->name : "Unknown", bgp->vrf_id,
lookup_msg(bgp_status_msg, status, NULL),
bgp->established_peers);
}

/* Set to router ID to the value provided by RIB if there are no peers
* in the established state and peer count did not change
*/
Expand Down

0 comments on commit 64a1a22

Please sign in to comment.