server: fix bug of soft-reset-out

p, which is newly filtered by export filter stays in peer.localRib.
we mustn't change IsWithdraw flag of it.

Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
ISHIDA Wataru
2016-03-15 00:50:06 -07:00
committed by FUJITA Tomonori
parent 0a14294887
commit eb8ed382be
+1 -2
View File
@@ -2100,8 +2100,7 @@ func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) []*SenderMsg {
}
}
if found {
p.IsWithdraw = true
withdrawnList = append(withdrawnList, p)
withdrawnList = append(withdrawnList, p.Clone(true))
}
}
msgs = append(msgs, newSenderMsg(peer, table.CreateUpdateMsgFromPaths(withdrawnList)))