diff options
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go index e3a8c7ab..9bc79be8 100644 --- a/server/peer.go +++ b/server/peer.go @@ -215,6 +215,15 @@ func (peer *Peer) handleBGPmessage(m *bgp.BGPMessage) ([]*table.Path, bool, []*b table.UpdatePathAttrs4ByteAs(body) pathList = table.ProcessMessage(m, peer.peerInfo) peer.adjRib.UpdateIn(pathList) + case bgp.BGP_MSG_NOTIFICATION: + body := m.Body.(*bgp.BGPNotification) + log.WithFields(log.Fields{ + "Topic": "Peer", + "Key": peer.conf.NeighborConfig.NeighborAddress, + "Code": body.ErrorCode, + "Subcode": body.ErrorSubcode, + "Data": body.Data, + }).Warn("received notification") } return pathList, update, bgpMsgList } |