summaryrefslogtreecommitdiffhomepage
path: root/server/grpc_server.go
diff options
context:
space:
mode:
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 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) {