From fb0a718339af7e2e18cf2c488959ae3e5dd5fc70 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 27 Feb 2015 21:38:15 +0900 Subject: server: log warning when RouteRefresh but the capability wasn't advertised Signed-off-by: FUJITA Tomonori --- server/peer.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server') 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() -- cgit v1.2.3