diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-03-14 15:08:04 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-03-15 00:50:06 -0700 |
commit | eb8ed382bee3e7fcddb08b9a4ede70513e062cb7 (patch) | |
tree | 8f99dff4349b31ec7c83afb97f8d16c2cf205c1f | |
parent | 0a14294887c8e412c7ba069d5e9f2394e3149953 (diff) |
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 <ishida.wataru@lab.ntt.co.jp>
-rw-r--r-- | server/server.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/server.go b/server/server.go index a7245198..9588ecd5 100644 --- a/server/server.go +++ b/server/server.go @@ -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))) |