diff options
Diffstat (limited to 'server/fsm.go')
-rw-r--r-- | server/fsm.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/fsm.go b/server/fsm.go index 89366d72..ad8be429 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -546,6 +546,14 @@ func (h *FSMHandler) recvMessageWithError() error { return nil } case bgp.BGP_MSG_NOTIFICATION: + body := m.Body.(*bgp.BGPNotification) + log.WithFields(log.Fields{ + "Topic": "Peer", + "Key": h.fsm.pConf.Config.NeighborAddress, + "Code": body.ErrorCode, + "Subcode": body.ErrorSubcode, + "Data": body.Data, + }).Warn("received notification") h.reason = "Notification received" return nil } |