summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-27 19:40:44 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-07-27 19:40:44 +0900
commit28ff2fa2ec6ae6e6e0e2d2bfb35820ac086e49b1 (patch)
treec3fb8621e86275e8134fb7ca9bef39135fe9b9ba /server/grpc_server.go
parent7ed162a4786b775376dcf884fdeb1a4d59301870 (diff)
move gRPC-related code for REQ_VALIDATE_RIB to grpc_server.go
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r--server/grpc_server.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go
index cbe5bf55..fef1a21a 100644
--- a/server/grpc_server.go
+++ b/server/grpc_server.go
@@ -639,11 +639,7 @@ func (s *Server) DeleteBmp(ctx context.Context, arg *api.DeleteBmpRequest) (*api
}
func (s *Server) ValidateRib(ctx context.Context, arg *api.ValidateRibRequest) (*api.ValidateRibResponse, error) {
- d, err := s.get(REQ_VALIDATE_RIB, arg)
- if err != nil {
- return nil, err
- }
- return d.(*api.ValidateRibResponse), err
+ return &api.ValidateRibResponse{}, s.bgpServer.ValidateRib(arg.Prefix)
}
func (s *Server) AddRpki(ctx context.Context, arg *api.AddRpkiRequest) (*api.AddRpkiResponse, error) {