diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-27 17:15:08 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-27 17:15:08 +0900 |
commit | 2a94c33f6164521f5a28256e107ec82df800307d (patch) | |
tree | 404d1ec109fddaa8bcb2bc3070a9a21f0ec97643 /server/grpc_server.go | |
parent | 5565e89ffcd46c20af6891bec533ca12e0c08d9c (diff) |
move gRPC-related code for REQ_NEIGHBOR_RESET 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.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go index 73068b55..8c938fd3 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -448,11 +448,7 @@ func (s *Server) neighbor(reqType int, address string, d interface{}) (interface } func (s *Server) ResetNeighbor(ctx context.Context, arg *api.ResetNeighborRequest) (*api.ResetNeighborResponse, error) { - d, err := s.neighbor(REQ_NEIGHBOR_RESET, arg.Address, arg) - if err != nil { - return nil, err - } - return d.(*api.ResetNeighborResponse), err + return &api.ResetNeighborResponse{}, s.bgpServer.ResetNeighbor(arg.Address) } func (s *Server) SoftResetNeighbor(ctx context.Context, arg *api.SoftResetNeighborRequest) (*api.SoftResetNeighborResponse, error) { |