mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
Only wait for GR End of RIB for the received address family
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 <yutaro.hayakawa@isovalent.com>
This commit is contained in:
committed by
FUJITA Tomonori
parent
2558b5a069
commit
815683fa5e
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user