diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-07-26 11:37:08 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-07-26 11:37:59 +0900 |
commit | 075f5a719f5d07756915b9766806a5759f0b321e (patch) | |
tree | ce0e830c9c50c528d227815570a382c20d9a22b6 | |
parent | 0730e0f9dd6a00a89da85df29fd7db18a1e0f857 (diff) |
fix addpath send withdraw
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | client/client.go | 6 | ||||
-rw-r--r-- | table/destination.go | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go index e8108c64..2730dd1f 100644 --- a/client/client.go +++ b/client/client.go @@ -401,8 +401,10 @@ func (cli *Client) deletePath(uuid []byte, f bgp.RouteFamily, vrfID string, path return err } p := &api.Path{ - Nlri: n, - Family: uint32(path.GetRouteFamily()), + Nlri: n, + Family: uint32(path.GetRouteFamily()), + Identifier: nlri.PathIdentifier(), + LocalIdentifier: nlri.PathLocalIdentifier(), } reqs = append(reqs, &api.DeletePathRequest{ Resource: resource, diff --git a/table/destination.go b/table/destination.go index c465e9f8..9057d4f4 100644 --- a/table/destination.go +++ b/table/destination.go @@ -413,6 +413,7 @@ func (dest *Destination) explicitWithdraw() paths { // we could flag IsWithdraw down after use to avoid // a path with IsWithdraw flag exists in adj-rib-in path.IsWithdraw = true + withdraw.GetNlri().SetPathLocalIdentifier(path.GetNlri().PathLocalIdentifier()) matches = append(matches, withdraw) } } |