summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorwanghonghao <wanghonghao@bytedance.com>2019-03-28 16:07:03 +0800
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-04-09 23:09:36 +0900
commitba63f7e07647f5677f652d8e8d673f4215f2b425 (patch)
tree070733cc22bd27136f01a6803f558ad65a47fe18 /pkg
parente27d517183a021b2470a5bb7629e8840a18ff448 (diff)
fsm: not reject open message with restart flag unset from gr peer
Diffstat (limited to 'pkg')
-rw-r--r--pkg/server/fsm.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go
index a840896f..ae102812 100644
--- a/pkg/server/fsm.go
+++ b/pkg/server/fsm.go
@@ -1358,10 +1358,7 @@ func (h *fsmHandler) opensent(ctx context.Context) (bgp.FSMState, *fsmStateReaso
"Key": fsm.pConf.State.NeighborAddress,
"State": fsm.state.String(),
}).Warn("restart flag is not set")
- // send notification?
- h.conn.Close()
- fsm.lock.Unlock()
- return bgp.BGP_FSM_IDLE, newfsmStateReason(fsmInvalidMsg, nil, nil)
+ // just ignore
}
// RFC 4724 3