Skip to content

Commit

Permalink
Only wait for GR End of RIB for the received address family
Browse files Browse the repository at this point in the history
Currently, graceful restart waits for the EoR message for all address
families "enabled" for the peer, but it should only wait for "received"
address families (the address families the peer is capable of handling).

Fixes: #2524

Signed-off-by: Yutaro Hayakawa <[email protected]>
  • Loading branch information
YutaroHayakawa authored and fujita committed Jan 29, 2024
1 parent 2558b5a commit 815683f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (peer *peer) recvedAllEOR() bool {
peer.fsm.lock.RLock()
defer peer.fsm.lock.RUnlock()
for _, a := range peer.fsm.pConf.AfiSafis {
if s := a.MpGracefulRestart.State; s.Enabled && !s.EndOfRibReceived {
if s := a.MpGracefulRestart.State; s.Enabled && s.Received && !s.EndOfRibReceived {
return false
}
}
Expand Down

0 comments on commit 815683f

Please sign in to comment.