summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-14 21:53:23 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-07-14 22:05:00 +0900
commit2709b94caaf51b3e376463491af33158a54c8369 (patch)
tree6419e451c7a57707e73c4def4c8908f3c65467b0 /server
parent72d1fc4cedd233861df725a9eac5f18022f92125 (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')
-rw-r--r--server/fsm.go2
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