Skip to content

Commit

Permalink
Revert "Do not check enabling when EOR received"
Browse files Browse the repository at this point in the history
This reverts commit fbeaa1c.

This breaks WatchEvent API:
#2777
  • Loading branch information
fujita committed Mar 5, 2024
1 parent d67f568 commit 84a264e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4639,7 +4639,7 @@ func (s *BgpServer) watch(opts ...watchOption) (w *watcher) {
p.fsm.lock.RLock()
defer p.fsm.lock.RUnlock()
for _, a := range p.fsm.pConf.AfiSafis {
if s := a.MpGracefulRestart.State; s.EndOfRibReceived {
if s := a.MpGracefulRestart.State; s.Enabled && s.EndOfRibReceived {
family := a.State.Family
peerInfo := &table.PeerInfo{
AS: p.fsm.peerInfo.AS,
Expand Down

0 comments on commit 84a264e

Please sign in to comment.