summaryrefslogtreecommitdiffhomepage
path: root/api/grpc_server.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-11 15:42:18 +0000
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-14 02:15:46 +0000
commitc4ced97e76f12d5c37721c107e61147edb4254d7 (patch)
tree8178a6a4a7bfbdf98414dd0148796255e39a4cc0 /api/grpc_server.go
parent3f2dd34d37b5ca4874399d7eaff9bbb8b7975cd4 (diff)
cli: use client library
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'api/grpc_server.go')
-rw-r--r--api/grpc_server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go
index 4d3da7ec..a21a3d85 100644
--- a/api/grpc_server.go
+++ b/api/grpc_server.go
@@ -505,7 +505,7 @@ func (s *Server) api2PathList(resource Resource, ApiPathList []*Path) ([]*table.
}
}
- if nlri == nil || nexthop == "" {
+ if nlri == nil || (!path.IsWithdraw && nexthop == "") {
return nil, fmt.Errorf("not found nlri or nexthop")
}