summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-27 21:38:15 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-27 21:38:15 +0900
commitfb0a718339af7e2e18cf2c488959ae3e5dd5fc70 (patch)
tree1b15ab372d79dc8614fa993a7061aa3db22d27c0 /server/peer.go
parentbf08b1d5bb566d37e23660d0603fd0dfd3d17999 (diff)
server: log warning when RouteRefresh but the capability wasn't advertised
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-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()