diff options
author | Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> | 2018-05-15 10:42:18 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-05-24 11:25:11 +0900 |
commit | a980a0237ebc4b4338d5d54257d5078e0772240a (patch) | |
tree | fa7c9c4444c2c26b6aed776ccfe6ac18f9d7d341 /server/fsm.go | |
parent | 76ef1163238a109bda09e019348de6550a5b3e61 (diff) |
server/server: Add field to WatchEventPeerState for PeerDownEvent
To include the PeerDownReason and data in BMP messages,
this commit adds some field to WatchEventPeerState.
Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com>
Diffstat (limited to 'server/fsm.go')
-rw-r--r-- | server/fsm.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/fsm.go b/server/fsm.go index d655f768..10eba37e 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -34,6 +34,17 @@ import ( "github.com/osrg/gobgp/table" ) +type PeerDownReason int + +const ( + PEER_DOWN_REASON_UNKNOWN PeerDownReason = iota + PEER_DOWN_BY_LOCAL + PEER_DOWN_BY_LOCAL_WITHOUT_NOTIFICATION + PEER_DOWN_BY_REMOTE + PEER_DOWN_BY_REMOTE_WITHOUT_NOTIFICATION + PEER_DOWN_BY_BMP_CONFIGURATION +) + type FsmStateReason string const ( |