diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-07-14 21:53:23 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-07-14 22:05:00 +0900 |
commit | 2709b94caaf51b3e376463491af33158a54c8369 (patch) | |
tree | 6419e451c7a57707e73c4def4c8908f3c65467b0 /server/fsm.go | |
parent | 72d1fc4cedd233861df725a9eac5f18022f92125 (diff) |
server: fix bug of active connection
also added scenario test to check active connection properly works
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r-- | server/fsm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go index c25fd1f3..86390354 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -208,7 +208,7 @@ func (fsm *FSM) connectLoop() error { ticker.Stop() connect := func() { - if bgp.FSMState(fsm.peerConfig.BgpNeighborCommonState.State) == bgp.BGP_FSM_ACTIVE { + if fsm.state == bgp.BGP_FSM_ACTIVE { var host string addr := fsm.peerConfig.NeighborAddress |