summaryrefslogtreecommitdiffhomepage
path: root/server/fsm.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-03-11 21:15:00 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-19 11:12:44 +0000
commit56b69b76797fc7dbd1ff036a20dde5246fb97ed2 (patch)
treeeb689c6baa0582e7c2672ec69c9df8ffc9ee910e /server/fsm.go
parent8a71ae649e79b5ca62c1684a81e7c15d9a7b3c16 (diff)
peer: remove redundant config structs
preparation for #597 stop messing up where neighbor configuration is stored just keep it in each peers' fsm struct Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r--server/fsm.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/fsm.go b/server/fsm.go
index 5d42cdd1..34c8b187 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -201,6 +201,8 @@ func NewFSM(gConf *config.Global, pConf *config.Neighbor, policy *table.RoutingP
if pConf.State.AdminDown {
adminState = ADMIN_STATE_DOWN
}
+ pConf.State.SessionState = config.IntToSessionStateMap[int(bgp.BGP_FSM_IDLE)]
+ pConf.Timers.State.Downtime = time.Now().Unix()
fsm := &FSM{
gConf: gConf,
pConf: pConf,