summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/peer.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go
index ba2d84c1..6a728768 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -136,6 +136,11 @@ func (peer *Peer) handleBGPmessage(m *bgp.BGPMessage) {
if _, ok := peer.capMap[bgp.BGP_CAP_ROUTE_REFRESH]; ok {
pathList := peer.adjRib.GetOutPathList(peer.rf)
peer.sendMessages(table.CreateUpdateMsgFromPaths(pathList))
+ } else {
+ log.WithFields(log.Fields{
+ "Topic": "Peer",
+ "Key": peer.peerConfig.NeighborAddress,
+ }).Warn("ROUTE_REFRESH received but the capability wasn't advertised")
}
case bgp.BGP_MSG_UPDATE:
peer.peerConfig.BgpNeighborCommonState.UpdateRecvTime = time.Now()