diff options
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 e69b2b0d..73068b55 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -471,11 +471,7 @@ func (s *Server) SoftResetNeighbor(ctx context.Context, arg *api.SoftResetNeighb } func (s *Server) ShutdownNeighbor(ctx context.Context, arg *api.ShutdownNeighborRequest) (*api.ShutdownNeighborResponse, error) { - d, err := s.neighbor(REQ_NEIGHBOR_SHUTDOWN, arg.Address, arg) - if err != nil { - return nil, err - } - return d.(*api.ShutdownNeighborResponse), err + return &api.ShutdownNeighborResponse{}, s.bgpServer.ShutdownNeighbor(arg.Address) } func (s *Server) EnableNeighbor(ctx context.Context, arg *api.EnableNeighborRequest) (*api.EnableNeighborResponse, error) { |