diff options
author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2019-05-30 05:00:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-30 05:00:57 +0200 |
commit | 64a1a22793289b93e7a27308e0a38840ec107750 (patch) | |
tree | d59fbe25dd7d816029b9401031ba22b92e05f84a /bgpd | |
parent | Merge pull request #4393 from donaldsharp/debug_all (diff) | |
parent | bgpd: Update an fsm debug message (diff) | |
download | frr-64a1a22793289b93e7a27308e0a38840ec107750.tar.xz frr-64a1a22793289b93e7a27308e0a38840ec107750.zip |
Merge pull request #4408 from donaldsharp/bgp_status_fsm
bgpd: Update an fsm debug message
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_fsm.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 12ae1f841..dd765731d 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -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 */ |