diff options
author | wanghonghao <wanghonghao@bytedance.com> | 2019-02-15 13:30:38 +0800 |
---|---|---|
committer | wanghonghao <wanghonghao@bytedance.com> | 2019-02-15 13:30:38 +0800 |
commit | 084ee991d92f668b3977f05665b79867ce16c1bd (patch) | |
tree | fc4c49a010484395daca5d4397c45f1cc877f4e6 /pkg | |
parent | 034b889e4d08409d211fb843cf08a8d07faca4f7 (diff) |
reset eor state on graceful-restart peer down
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/server/server.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/server/server.go b/pkg/server/server.go index 8b53a7a8..ee0498e5 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -1187,6 +1187,9 @@ func (s *BgpServer) handleFSMMessage(peer *peer, e *fsmMsg) { if graceful { peer.fsm.lock.Lock() peer.fsm.pConf.GracefulRestart.State.PeerRestarting = true + for i := range peer.fsm.pConf.AfiSafis { + peer.fsm.pConf.AfiSafis[i].MpGracefulRestart.State.EndOfRibReceived = false + } peer.fsm.lock.Unlock() var p []bgp.RouteFamily p, drop = peer.forwardingPreservedFamilies() |