summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_packet.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-12-22 01:16:52 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-01-07 17:51:27 +0100
commite82d19a3d414697b59f5e0253594960c0d8fd6d9 (patch)
tree2147df657a8f87fbac62a8ff095e44a6407215d9 /bgpd/bgp_packet.c
parentMerge pull request #3572 from manuhalo/fix_isisd_p2p (diff)
downloadfrr-e82d19a3d414697b59f5e0253594960c0d8fd6d9.tar.xz
frr-e82d19a3d414697b59f5e0253594960c0d8fd6d9.zip
bgpd: Modify End of Rib notification to INFO
The End of Rib notification in BGP is useful to know no matter the circumstances. So change this from a debug message to an info and cleanup the message a bit and add vrf we are in. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_packet.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c
index 73a07c823..7b76d7e83 100644
--- a/bgpd/bgp_packet.c
+++ b/bgpd/bgp_packet.c
@@ -1612,6 +1612,8 @@ static int bgp_update_receive(struct peer *peer, bgp_size_t size)
}
if (afi && peer->afc[afi][safi]) {
+ struct vrf *vrf = vrf_lookup_by_id(peer->bgp->vrf_id);
+
/* End-of-RIB received */
if (!CHECK_FLAG(peer->af_sflags[afi][safi],
PEER_STATUS_EOR_RECEIVED)) {
@@ -1624,11 +1626,9 @@ static int bgp_update_receive(struct peer *peer, bgp_size_t size)
if (peer->nsf[afi][safi])
bgp_clear_stale_route(peer, afi, safi);
- if (bgp_debug_neighbor_events(peer)) {
- zlog_debug("rcvd End-of-RIB for %s from %s",
- afi_safi_print(afi, safi),
- peer->host);
- }
+ zlog_info("%%NOTIFICATION: rcvd End-of-RIB for %s from %s in vrf %s",
+ afi_safi_print(afi, safi), peer->host,
+ vrf ? vrf->name : VRF_DEFAULT_NAME);
}
}