diff options
-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) } } |