summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/grpc_server.go
diff options
context:
space:
mode:
authorjack <jack@yunify.com>2018-11-13 11:45:05 +0800
committerjack <jack@yunify.com>2018-11-13 11:45:05 +0800
commit528f75164c3ce664b93cc61fc39a89c744b7c8c2 (patch)
treea32efd22b73ee92dfc0e994b305bae02d4600efd /pkg/server/grpc_server.go
parentf0aaac4f644bcaeb25d05e0ff0997cb99c7b2696 (diff)
add anyNlri toPathApi when path.IsWithdraw
Diffstat (limited to 'pkg/server/grpc_server.go')
-rw-r--r--pkg/server/grpc_server.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go
index a0aef07a..89f3c534 100644
--- a/pkg/server/grpc_server.go
+++ b/pkg/server/grpc_server.go
@@ -140,9 +140,6 @@ func toPathAPI(binNlri []byte, binPattrs [][]byte, anyNlri *any.Any, anyPattrs [
func toPathApi(path *table.Path, v *table.Validation) *api.Path {
nlri := path.GetNlri()
anyNlri := apiutil.MarshalNLRI(nlri)
- if path.IsWithdraw {
- return toPathAPI(nil, nil, anyNlri, nil, path, v)
- }
anyPattrs := apiutil.MarshalPathAttributes(path.GetPathAttrs())
return toPathAPI(nil, nil, anyNlri, anyPattrs, path, v)
}