summaryrefslogtreecommitdiffhomepage
path: root/server/fsm.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/fsm.go')
-rw-r--r--server/fsm.go11
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 (