summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-23 13:30:55 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-01-25 04:57:11 -0800
commitf2ceaa0cf95432c9854b3c7902fec55c73b6ae53 (patch)
tree81b0a873503a32561a31124a1d8c38ad22968c1b /server/peer.go
parentcca91da0dfe70c2c32d5152b3a2cf76bfdb0f048 (diff)
server: log received notification
fsm doesn't pass notification messages to peer since 5c835fcc4fa03e74dd03bf7661b65771bf539adc log received notifications in fsmhandler. Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/server/peer.go b/server/peer.go
index b8bc9bcb..77e07252 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -172,15 +172,6 @@ func (peer *Peer) handleBGPmessage(e *FsmMsg) ([]*table.Path, []*bgp.BGPMessage)
}
return paths, nil
}
- case bgp.BGP_MSG_NOTIFICATION:
- body := m.Body.(*bgp.BGPNotification)
- log.WithFields(log.Fields{
- "Topic": "Peer",
- "Key": peer.conf.Config.NeighborAddress,
- "Code": body.ErrorCode,
- "Subcode": body.ErrorSubcode,
- "Data": body.Data,
- }).Warn("received notification")
}
return nil, nil
}