diff options
-rw-r--r-- | server/server.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go index 0b8faf76..e3ff1a3b 100644 --- a/server/server.go +++ b/server/server.go @@ -576,6 +576,9 @@ func (server *BgpServer) dropPeerAllRoutes(peer *Peer) []*SenderMsg { if targetPeer.isRouteServerClient() || targetPeer.fsm.state != bgp.BGP_FSM_ESTABLISHED { continue } + if _, ok := targetPeer.rfMap[rf]; !ok { + continue + } targetPeer.adjRib.UpdateOut(pathList) msgs = append(msgs, newSenderMsg(targetPeer, msgList)) } |