]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Modify End of Rib notification to INFO
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 22 Dec 2018 00:16:52 +0000 (19:16 -0500)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 7 Jan 2019 16:51:27 +0000 (17:51 +0100)
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>
bgpd/bgp_packet.c

index 73a07c8232290e6b8545d11e12408c4f869dd810..7b76d7e83e881d1a7fd098bb9e23448cfb3179eb 100644 (file)
@@ -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);
                }
        }