[VOL-3622] Stop and restart gRPC server
Change-Id: I443e7ed75f79dd90782a1a4342c8e4d3a7294488
diff --git a/VERSION b/VERSION
index 88c5fb8..feb40e5 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.4.0
+1.4.1-dev
diff --git a/api/bbsim/bbsim.pb.go b/api/bbsim/bbsim.pb.go
index b4a5f86..ffa0154 100644
--- a/api/bbsim/bbsim.pb.go
+++ b/api/bbsim/bbsim.pb.go
@@ -1191,6 +1191,45 @@
return nil
}
+type Timeout struct {
+ Delay uint32 `protobuf:"varint,1,opt,name=delay,proto3" json:"delay,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *Timeout) Reset() { *m = Timeout{} }
+func (m *Timeout) String() string { return proto.CompactTextString(m) }
+func (*Timeout) ProtoMessage() {}
+func (*Timeout) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ef7750073d18011b, []int{19}
+}
+
+func (m *Timeout) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_Timeout.Unmarshal(m, b)
+}
+func (m *Timeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_Timeout.Marshal(b, m, deterministic)
+}
+func (m *Timeout) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Timeout.Merge(m, src)
+}
+func (m *Timeout) XXX_Size() int {
+ return xxx_messageInfo_Timeout.Size(m)
+}
+func (m *Timeout) XXX_DiscardUnknown() {
+ xxx_messageInfo_Timeout.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Timeout proto.InternalMessageInfo
+
+func (m *Timeout) GetDelay() uint32 {
+ if m != nil {
+ return m.Delay
+ }
+ return 0
+}
+
type Empty struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
@@ -1201,7 +1240,7 @@
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{19}
+ return fileDescriptor_ef7750073d18011b, []int{20}
}
func (m *Empty) XXX_Unmarshal(b []byte) error {
@@ -1244,108 +1283,112 @@
proto.RegisterType((*Response)(nil), "bbsim.Response")
proto.RegisterType((*IgmpRequest)(nil), "bbsim.IgmpRequest")
proto.RegisterType((*Flows)(nil), "bbsim.Flows")
+ proto.RegisterType((*Timeout)(nil), "bbsim.Timeout")
proto.RegisterType((*Empty)(nil), "bbsim.Empty")
}
func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) }
var fileDescriptor_ef7750073d18011b = []byte{
- // 1519 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdd, 0x6e, 0xdb, 0xc6,
- 0x12, 0xd6, 0x8f, 0xf5, 0x37, 0xb2, 0x64, 0x7a, 0x13, 0x3b, 0x82, 0xe3, 0x73, 0x22, 0xf0, 0xe4,
- 0x1c, 0x38, 0xc1, 0x89, 0xd3, 0xd8, 0xfd, 0x49, 0x2e, 0x69, 0x89, 0x56, 0x58, 0xcb, 0x4b, 0x62,
- 0x29, 0x39, 0xc8, 0x15, 0x41, 0x4b, 0x6b, 0x9b, 0x00, 0x45, 0x2a, 0x24, 0x65, 0x23, 0x0f, 0xd0,
- 0x17, 0xe9, 0xcb, 0xf4, 0xb6, 0x4f, 0xd0, 0xbb, 0x3e, 0x40, 0x1f, 0xa0, 0x40, 0xb1, 0xcb, 0x25,
- 0x45, 0x5a, 0x4a, 0xe1, 0xf6, 0xa6, 0x37, 0xc2, 0xce, 0x37, 0xff, 0xb3, 0xc3, 0x99, 0x15, 0xec,
- 0xd8, 0x73, 0xe7, 0xf5, 0xe5, 0x65, 0xe8, 0xcc, 0xe2, 0xdf, 0xc3, 0x79, 0xe0, 0x47, 0x3e, 0x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 0xbb, 0x4b, 0xef, 0xfa, 0xc1, 0x21, 0xbe, 0x81, 0xb6, 0xd0, 0x79, 0x70, 0x84, 0x6f, 0x41, 0x5a,
- 0xba, 0xf9, 0x4b, 0x01, 0x7e, 0x0d, 0x9b, 0x84, 0x86, 0x91, 0x1d, 0x44, 0xf1, 0xfb, 0xf2, 0x61,
- 0x21, 0x1e, 0x43, 0x53, 0x68, 0xf1, 0x67, 0xe7, 0xc3, 0x94, 0x4e, 0x60, 0xc7, 0xe4, 0xf7, 0xcc,
- 0x17, 0x81, 0xe6, 0x4d, 0x9d, 0x89, 0xcd, 0x3e, 0x65, 0xb4, 0xbb, 0x54, 0xcf, 0xee, 0x88, 0x3f,
- 0xb1, 0xe1, 0x46, 0x5f, 0xb4, 0x91, 0xdf, 0x33, 0xeb, 0x6c, 0xbc, 0x82, 0xfa, 0x80, 0x46, 0xf1,
- 0x7c, 0x5a, 0x13, 0x79, 0x52, 0x6c, 0x2e, 0xc0, 0x6b, 0xbb, 0xd5, 0xbb, 0xb1, 0xbd, 0x6b, 0xca,
- 0xc6, 0x68, 0xfc, 0x94, 0x45, 0x42, 0x24, 0x33, 0x58, 0xd7, 0x39, 0x3a, 0x83, 0x27, 0x71, 0x63,
- 0xaf, 0x3e, 0x6b, 0xd7, 0xf8, 0x7d, 0xba, 0x84, 0x56, 0xe4, 0xe5, 0xc2, 0x65, 0x95, 0xff, 0xeb,
- 0x3d, 0xfe, 0x23, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x86, 0x90, 0x8d, 0x54, 0x0f, 0x00, 0x00,
+ // 1563 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdb, 0x52, 0xdb, 0xc6,
+ 0x1b, 0xf7, 0x01, 0x9f, 0x3e, 0x63, 0x23, 0x36, 0x81, 0x78, 0x08, 0xff, 0x7f, 0x3c, 0x6a, 0xda,
+ 0x21, 0x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x67, 0x7e, 0xc8, 0x34, 0x6f, 0x3c,
+ 0x19, 0x39, 0x6c, 0xd3, 0xa0, 0xed, 0x85, 0x7a, 0xfa, 0xc6, 0xfd, 0x8d, 0x0d, 0x97, 0xde, 0x6b,
+ 0x23, 0x7b, 0x27, 0x57, 0xd9, 0x78, 0x05, 0xd5, 0x1e, 0xa1, 0xd1, 0x7e, 0x5d, 0x11, 0x79, 0x5c,
+ 0x6c, 0x2e, 0xc0, 0x6b, 0xbb, 0xd1, 0xb9, 0x72, 0xbc, 0x4b, 0xc2, 0xce, 0x40, 0xf4, 0x14, 0x47,
+ 0x42, 0x24, 0x75, 0x18, 0x56, 0x39, 0x3a, 0x81, 0x27, 0xd1, 0x60, 0x2f, 0x3f, 0xcb, 0x57, 0xf8,
+ 0x7d, 0xba, 0x80, 0x96, 0xe4, 0xe5, 0xdc, 0x79, 0x99, 0xff, 0xd7, 0x7e, 0xf8, 0x57, 0x00, 0x00,
+ 0x00, 0xff, 0xff, 0xc4, 0x09, 0x64, 0x71, 0x14, 0x10, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -1372,6 +1415,12 @@
ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
// Reboot OLT
RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ // Closes the Openolt gRPC server
+ StopgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ // Start the Openolt gRPC server
+ StartgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ // Start the Openolt gRPC server
+ RestartgRPCServer(ctx context.Context, in *Timeout, opts ...grpc.CallOption) (*Response, error)
// Get status of an ONU by serial number
GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error)
// Get status of all ONUs
@@ -1470,6 +1519,33 @@
return out, nil
}
+func (c *bBSimClient) StopgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
+ out := new(Response)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/StopgRPCServer", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *bBSimClient) StartgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
+ out := new(Response)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/StartgRPCServer", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *bBSimClient) RestartgRPCServer(ctx context.Context, in *Timeout, opts ...grpc.CallOption) (*Response, error) {
+ out := new(Response)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartgRPCServer", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *bBSimClient) GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) {
out := new(ONU)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONU", in, out, opts...)
@@ -1637,6 +1713,12 @@
ShutdownOlt(context.Context, *Empty) (*Response, error)
// Reboot OLT
RebootOlt(context.Context, *Empty) (*Response, error)
+ // Closes the Openolt gRPC server
+ StopgRPCServer(context.Context, *Empty) (*Response, error)
+ // Start the Openolt gRPC server
+ StartgRPCServer(context.Context, *Empty) (*Response, error)
+ // Start the Openolt gRPC server
+ RestartgRPCServer(context.Context, *Timeout) (*Response, error)
// Get status of an ONU by serial number
GetONU(context.Context, *ONURequest) (*ONU, error)
// Get status of all ONUs
@@ -1695,6 +1777,15 @@
func (*UnimplementedBBSimServer) RebootOlt(ctx context.Context, req *Empty) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method RebootOlt not implemented")
}
+func (*UnimplementedBBSimServer) StopgRPCServer(ctx context.Context, req *Empty) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method StopgRPCServer not implemented")
+}
+func (*UnimplementedBBSimServer) StartgRPCServer(ctx context.Context, req *Empty) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method StartgRPCServer not implemented")
+}
+func (*UnimplementedBBSimServer) RestartgRPCServer(ctx context.Context, req *Timeout) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method RestartgRPCServer not implemented")
+}
func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented")
}
@@ -1859,6 +1950,60 @@
return interceptor(ctx, in, info, handler)
}
+func _BBSim_StopgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(Empty)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BBSimServer).StopgRPCServer(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/StopgRPCServer",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).StopgRPCServer(ctx, req.(*Empty))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _BBSim_StartgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(Empty)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BBSimServer).StartgRPCServer(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/StartgRPCServer",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).StartgRPCServer(ctx, req.(*Empty))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _BBSim_RestartgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(Timeout)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BBSimServer).RestartgRPCServer(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/RestartgRPCServer",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).RestartgRPCServer(ctx, req.(*Timeout))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _BBSim_GetONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ONURequest)
if err := dec(in); err != nil {
@@ -2194,6 +2339,18 @@
Handler: _BBSim_RebootOlt_Handler,
},
{
+ MethodName: "StopgRPCServer",
+ Handler: _BBSim_StopgRPCServer_Handler,
+ },
+ {
+ MethodName: "StartgRPCServer",
+ Handler: _BBSim_StartgRPCServer_Handler,
+ },
+ {
+ MethodName: "RestartgRPCServer",
+ Handler: _BBSim_RestartgRPCServer_Handler,
+ },
+ {
MethodName: "GetONU",
Handler: _BBSim_GetONU_Handler,
},
diff --git a/api/bbsim/bbsim.proto b/api/bbsim/bbsim.proto
index da329f7..39e7cea 100644
--- a/api/bbsim/bbsim.proto
+++ b/api/bbsim/bbsim.proto
@@ -176,6 +176,10 @@
repeated openolt.Flow flows = 2;
}
+message Timeout {
+ uint32 delay = 1;
+}
+
message Empty {
}
@@ -199,6 +203,15 @@
// Reboot OLT
rpc RebootOlt (Empty) returns (Response) {
}
+ // Closes the Openolt gRPC server
+ rpc StopgRPCServer (Empty) returns (Response) {
+ }
+ // Start the Openolt gRPC server
+ rpc StartgRPCServer (Empty) returns (Response) {
+ }
+ // Restart the Openolt gRPC server after the given timeout
+ rpc RestartgRPCServer (Timeout) returns (Response) {
+ }
// Get status of an ONU by serial number
rpc GetONU (ONURequest) returns (ONU) {
diff --git a/internal/bbsim/api/grpc_api_server.go b/internal/bbsim/api/grpc_api_server.go
index 7ed8f8d..84d3478 100644
--- a/internal/bbsim/api/grpc_api_server.go
+++ b/internal/bbsim/api/grpc_api_server.go
@@ -20,6 +20,7 @@
"context"
"fmt"
"strings"
+ "time"
"github.com/opencord/bbsim/api/bbsim"
"github.com/opencord/bbsim/internal/bbsim/alarmsim"
@@ -128,6 +129,58 @@
return res, nil
}
+func (s BBSimServer) StopgRPCServer(ctx context.Context, req *bbsim.Empty) (*bbsim.Response, error) {
+ res := &bbsim.Response{}
+ res.StatusCode = int32(codes.OK)
+ res.Message = fmt.Sprintf("Openolt gRPC server stopped")
+ o := devices.GetOLT()
+
+ logger.Infof("Received request to stop Openolt gRPC Server")
+
+ o.StopOltServer()
+
+ return res, nil
+}
+
+func (s BBSimServer) StartgRPCServer(ctx context.Context, req *bbsim.Empty) (*bbsim.Response, error) {
+ res := &bbsim.Response{}
+ res.StatusCode = int32(codes.OK)
+ res.Message = fmt.Sprintf("Openolt gRPC server started")
+ o := devices.GetOLT()
+
+ logger.Infof("Received request to start Openolt gRPC Server")
+
+ _, err := o.StartOltServer()
+ if err != nil {
+ return nil, err
+ }
+
+ return res, nil
+}
+
+func (s BBSimServer) RestartgRPCServer(ctx context.Context, req *bbsim.Timeout) (*bbsim.Response, error) {
+ o := devices.GetOLT()
+ logger.Infof("Received request to restart Openolt gRPC Server in %v seconds", req.Delay)
+ o.StopOltServer()
+
+ res := &bbsim.Response{}
+ res.StatusCode = int32(codes.OK)
+ res.Message = fmt.Sprintf("Openolt gRPC server stopped, restarting in %v", req.Delay)
+
+ go func() {
+ time.Sleep(time.Duration(req.Delay) * time.Second)
+ _, err := o.StartOltServer()
+ if err != nil {
+ logger.WithFields(log.Fields{
+ "err": err,
+ }).Error("Cannot restart Openolt gRPC server")
+ }
+ logger.Infof("Openolt gRPC Server restarted after %v seconds", req.Delay)
+ }()
+
+ return res, nil
+}
+
func (s BBSimServer) SetLogLevel(ctx context.Context, req *bbsim.LogLevel) (*bbsim.LogLevel, error) {
common.SetLogLevel(log.StandardLogger(), req.Level, req.Caller)
diff --git a/internal/bbsim/devices/olt.go b/internal/bbsim/devices/olt.go
index beeffce..008e3be 100644
--- a/internal/bbsim/devices/olt.go
+++ b/internal/bbsim/devices/olt.go
@@ -48,6 +48,7 @@
type OltDevice struct {
sync.Mutex
+ oltServer *grpc.Server
// BBSIM Internals
ID int
@@ -79,7 +80,6 @@
}
var olt OltDevice
-var oltServer *grpc.Server
func GetOLT() *OltDevice {
return &olt
@@ -224,10 +224,9 @@
func (o *OltDevice) InitOlt() {
- if oltServer == nil {
- oltServer, _ = o.newOltServer()
+ if o.oltServer == nil {
+ o.oltServer, _ = o.StartOltServer()
} else {
- // FIXME there should never be a server running if we are initializing the OLT
oltLogger.Fatal("OLT server already running.")
}
@@ -267,12 +266,8 @@
return err
}
- // TODO handle hard poweroff (i.e. no indications sent to Voltha) vs soft poweroff
time.Sleep(1 * time.Second) // we need to give the OLT the time to respond to all the pending gRPC request before stopping the server
- if err := o.StopOltServer(); err != nil {
- oltLogger.Errorf("Error in stopping OLT server")
- return err
- }
+ o.StopOltServer()
if softReboot {
for _, pon := range o.Pons {
@@ -341,18 +336,28 @@
return grpcServer, nil
}
+// StartOltServer will create the grpc server that VOLTHA uses
+// to communicate with the device
+func (o *OltDevice) StartOltServer() (*grpc.Server, error) {
+ oltServer, err := o.newOltServer()
+ if err != nil {
+ oltLogger.WithFields(log.Fields{
+ "err": err,
+ }).Error("Cannot OLT gRPC server")
+ return nil, err
+ }
+ return oltServer, nil
+}
+
// StopOltServer stops the OpenOLT grpc server
-func (o *OltDevice) StopOltServer() error {
- // TODO handle poweroff vs graceful shutdown
- if oltServer != nil {
+func (o *OltDevice) StopOltServer() {
+ if o.oltServer != nil {
oltLogger.WithFields(log.Fields{
"oltId": o.SerialNumber,
}).Warnf("Stopping OLT gRPC server")
- oltServer.Stop()
- oltServer = nil
+ o.oltServer.Stop()
+ o.oltServer = nil
}
-
- return nil
}
// Device Methods
diff --git a/internal/bbsimctl/commands/olt.go b/internal/bbsimctl/commands/olt.go
index 5f6747e..bed3733 100644
--- a/internal/bbsimctl/commands/olt.go
+++ b/internal/bbsimctl/commands/olt.go
@@ -49,6 +49,15 @@
type OltReboot struct{}
+type StopGrpcServer struct{}
+
+type StartGrpcServer struct{}
+type RestartGrpcServer struct {
+ Args struct {
+ Delay uint32
+ } `positional-args:"yes" required:"yes"`
+}
+
type OltFlows struct{}
type OltPoweronAllOnus struct{}
@@ -66,6 +75,9 @@
Flows OltFlows `command:"flows"`
PoweronAllOnus OltPoweronAllOnus `command:"poweronAllONUs"`
ShutdownAllOnus OltShutdownAllOnus `command:"shutdownAllONUs"`
+ StopServer StopGrpcServer `command:"stopServer"`
+ StartServer StartGrpcServer `command:"startServer"`
+ RestartServer RestartGrpcServer `command:"restartServer"`
}
func RegisterOltCommands(parser *flags.Parser) {
@@ -184,6 +196,63 @@
return nil
}
+func (o *StopGrpcServer) Execute(args []string) error {
+ client, conn := connect()
+ defer conn.Close()
+
+ ctx, cancel := context.WithTimeout(context.Background(), config.GlobalConfig.Grpc.Timeout)
+ defer cancel()
+
+ res, err := client.StopgRPCServer(ctx, &pb.Empty{})
+
+ if err != nil {
+ log.Fatalf("Cannot stop Openolt server: %v", err)
+ return err
+ }
+
+ fmt.Println(fmt.Sprintf("[Status: %d] %s", res.StatusCode, res.Message))
+ return nil
+}
+
+func (o *StartGrpcServer) Execute(args []string) error {
+ client, conn := connect()
+ defer conn.Close()
+
+ ctx, cancel := context.WithTimeout(context.Background(), config.GlobalConfig.Grpc.Timeout)
+ defer cancel()
+
+ res, err := client.StartgRPCServer(ctx, &pb.Empty{})
+
+ if err != nil {
+ log.Fatalf("Cannot start Openolt server: %v", err)
+ return err
+ }
+
+ fmt.Println(fmt.Sprintf("[Status: %d] %s", res.StatusCode, res.Message))
+ return nil
+}
+
+func (o *RestartGrpcServer) Execute(args []string) error {
+ req := &pb.Timeout{
+ Delay: o.Args.Delay,
+ }
+ client, conn := connect()
+ defer conn.Close()
+
+ ctx, cancel := context.WithTimeout(context.Background(), config.GlobalConfig.Grpc.Timeout)
+ defer cancel()
+
+ res, err := client.RestartgRPCServer(ctx, req)
+
+ if err != nil {
+ log.Fatalf("Cannot restart Openolt server: %v", err)
+ return err
+ }
+
+ fmt.Println(fmt.Sprintf("[Status: %d] %s", res.StatusCode, res.Message))
+ return nil
+}
+
func (o *OltFlows) Execute(args []string) error {
client, conn := connect()
defer conn.Close()