SEBA-941 updated apis to poweron/shutdown all ONUs in PON/OLT
Change-Id: I6923cbcc51a4391f70ff08d266c274e1f34ca3ca
diff --git a/api/bbsim/bbsim.pb.go b/api/bbsim/bbsim.pb.go
index c9ffa1c..4da2e87 100644
--- a/api/bbsim/bbsim.pb.go
+++ b/api/bbsim/bbsim.pb.go
@@ -10,6 +10,8 @@
openolt "github.com/opencord/voltha-protos/v2/go/openolt"
tech_profile "github.com/opencord/voltha-protos/v2/go/tech_profile"
grpc "google.golang.org/grpc"
+ codes "google.golang.org/grpc/codes"
+ status "google.golang.org/grpc/status"
math "math"
)
@@ -129,7 +131,7 @@
}
func (AlarmType_Types) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{7, 0}
+ return fileDescriptor_ef7750073d18011b, []int{8, 0}
}
type PONPort struct {
@@ -533,6 +535,45 @@
return ""
}
+type PONRequest struct {
+ PonPortId uint32 `protobuf:"varint,1,opt,name=PonPortId,proto3" json:"PonPortId,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *PONRequest) Reset() { *m = PONRequest{} }
+func (m *PONRequest) String() string { return proto.CompactTextString(m) }
+func (*PONRequest) ProtoMessage() {}
+func (*PONRequest) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ef7750073d18011b, []int{7}
+}
+
+func (m *PONRequest) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_PONRequest.Unmarshal(m, b)
+}
+func (m *PONRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_PONRequest.Marshal(b, m, deterministic)
+}
+func (m *PONRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_PONRequest.Merge(m, src)
+}
+func (m *PONRequest) XXX_Size() int {
+ return xxx_messageInfo_PONRequest.Size(m)
+}
+func (m *PONRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_PONRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_PONRequest proto.InternalMessageInfo
+
+func (m *PONRequest) GetPonPortId() uint32 {
+ if m != nil {
+ return m.PonPortId
+ }
+ return 0
+}
+
type AlarmType struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
@@ -543,7 +584,7 @@
func (m *AlarmType) String() string { return proto.CompactTextString(m) }
func (*AlarmType) ProtoMessage() {}
func (*AlarmType) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{7}
+ return fileDescriptor_ef7750073d18011b, []int{8}
}
func (m *AlarmType) XXX_Unmarshal(b []byte) error {
@@ -576,7 +617,7 @@
func (m *AlarmParameter) String() string { return proto.CompactTextString(m) }
func (*AlarmParameter) ProtoMessage() {}
func (*AlarmParameter) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{8}
+ return fileDescriptor_ef7750073d18011b, []int{9}
}
func (m *AlarmParameter) XXX_Unmarshal(b []byte) error {
@@ -628,7 +669,7 @@
func (m *ONUAlarmRequest) String() string { return proto.CompactTextString(m) }
func (*ONUAlarmRequest) ProtoMessage() {}
func (*ONUAlarmRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{9}
+ return fileDescriptor_ef7750073d18011b, []int{10}
}
func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error {
@@ -691,7 +732,7 @@
func (m *OLTAlarmRequest) String() string { return proto.CompactTextString(m) }
func (*OLTAlarmRequest) ProtoMessage() {}
func (*OLTAlarmRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{10}
+ return fileDescriptor_ef7750073d18011b, []int{11}
}
func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error {
@@ -747,7 +788,7 @@
func (m *VersionNumber) String() string { return proto.CompactTextString(m) }
func (*VersionNumber) ProtoMessage() {}
func (*VersionNumber) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{11}
+ return fileDescriptor_ef7750073d18011b, []int{12}
}
func (m *VersionNumber) XXX_Unmarshal(b []byte) error {
@@ -808,7 +849,7 @@
func (m *LogLevel) String() string { return proto.CompactTextString(m) }
func (*LogLevel) ProtoMessage() {}
func (*LogLevel) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{12}
+ return fileDescriptor_ef7750073d18011b, []int{13}
}
func (m *LogLevel) XXX_Unmarshal(b []byte) error {
@@ -855,7 +896,7 @@
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{13}
+ return fileDescriptor_ef7750073d18011b, []int{14}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
@@ -902,7 +943,7 @@
func (m *IgmpRequest) String() string { return proto.CompactTextString(m) }
func (*IgmpRequest) ProtoMessage() {}
func (*IgmpRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{14}
+ return fileDescriptor_ef7750073d18011b, []int{15}
}
func (m *IgmpRequest) XXX_Unmarshal(b []byte) error {
@@ -949,7 +990,7 @@
func (m *Flows) String() string { return proto.CompactTextString(m) }
func (*Flows) ProtoMessage() {}
func (*Flows) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{15}
+ return fileDescriptor_ef7750073d18011b, []int{16}
}
func (m *Flows) XXX_Unmarshal(b []byte) error {
@@ -994,7 +1035,7 @@
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{16}
+ return fileDescriptor_ef7750073d18011b, []int{17}
}
func (m *Empty) XXX_Unmarshal(b []byte) error {
@@ -1025,6 +1066,7 @@
proto.RegisterType((*ONUTrafficSchedulers)(nil), "bbsim.ONUTrafficSchedulers")
proto.RegisterType((*ONUs)(nil), "bbsim.ONUs")
proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest")
+ proto.RegisterType((*PONRequest)(nil), "bbsim.PONRequest")
proto.RegisterType((*AlarmType)(nil), "bbsim.AlarmType")
proto.RegisterType((*AlarmParameter)(nil), "bbsim.AlarmParameter")
proto.RegisterType((*ONUAlarmRequest)(nil), "bbsim.ONUAlarmRequest")
@@ -1040,113 +1082,120 @@
func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) }
var fileDescriptor_ef7750073d18011b = []byte{
- // 1297 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcb, 0x6e, 0xdb, 0x46,
- 0x17, 0xd6, 0xc5, 0xba, 0x1d, 0x59, 0x32, 0x3d, 0x89, 0x1d, 0xc2, 0xf1, 0xff, 0x47, 0x60, 0xd3,
- 0xc2, 0x09, 0x1a, 0xa7, 0xb1, 0x5b, 0x34, 0x5d, 0xd2, 0x12, 0xad, 0xb0, 0x96, 0x49, 0x61, 0x48,
- 0x39, 0xc8, 0x8a, 0xa0, 0xa4, 0xb1, 0x45, 0x80, 0x12, 0x15, 0x72, 0x14, 0x23, 0xeb, 0xa2, 0x2f,
- 0xd2, 0x27, 0xea, 0x13, 0x74, 0xd7, 0x87, 0xe8, 0xae, 0x98, 0xe1, 0x90, 0x22, 0x2d, 0xa7, 0x30,
- 0xba, 0xe9, 0x46, 0xe0, 0xf9, 0xce, 0x77, 0xee, 0x87, 0x47, 0x84, 0x3d, 0x77, 0xe9, 0xbd, 0x1e,
- 0x8f, 0x23, 0x6f, 0x1e, 0xff, 0x1e, 0x2f, 0xc3, 0x80, 0x06, 0xa8, 0xc2, 0x85, 0x83, 0xa7, 0x9f,
- 0x02, 0x9f, 0xce, 0x5c, 0x87, 0x83, 0xd1, 0xeb, 0x60, 0x49, 0x16, 0x81, 0x4f, 0x63, 0xce, 0x41,
- 0x27, 0xaf, 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, 0x00, 0xff,
+ 0xff, 0x42, 0x70, 0xbe, 0x17, 0x42, 0x0d, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
-var _ grpc.ClientConn
+var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
-const _ = grpc.SupportPackageIsVersion4
+const _ = grpc.SupportPackageIsVersion6
// BBSimClient is the client API for BBSim service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BBSimClient interface {
Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error)
+ SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error)
GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error)
PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
- GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error)
GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error)
- SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error)
+ GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error)
ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
+ ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error)
PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
+ PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
+ PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error)
RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
SetOnuAlarmIndication(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*Response, error)
@@ -1157,10 +1206,10 @@
}
type bBSimClient struct {
- cc *grpc.ClientConn
+ cc grpc.ClientConnInterface
}
-func NewBBSimClient(cc *grpc.ClientConn) BBSimClient {
+func NewBBSimClient(cc grpc.ClientConnInterface) BBSimClient {
return &bBSimClient{cc}
}
@@ -1173,6 +1222,15 @@
return out, nil
}
+func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) {
+ out := new(LogLevel)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *bBSimClient) GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) {
out := new(Olt)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOlt", in, out, opts...)
@@ -1209,15 +1267,6 @@
return out, nil
}
-func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) {
- out := new(ONUs)
- err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", 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...)
@@ -1227,9 +1276,9 @@
return out, nil
}
-func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) {
- out := new(LogLevel)
- err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...)
+func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) {
+ out := new(ONUs)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", in, out, opts...)
if err != nil {
return nil, err
}
@@ -1245,6 +1294,24 @@
return out, nil
}
+func (c *bBSimClient) ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
+ out := new(Response)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownAllONUs", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *bBSimClient) ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) {
+ out := new(Response)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONUsOnPON", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *bBSimClient) PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONU", in, out, opts...)
@@ -1254,6 +1321,24 @@
return out, nil
}
+func (c *bBSimClient) PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
+ out := new(Response)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronAllONUs", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *bBSimClient) PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) {
+ out := new(Response)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONUsOnPON", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *bBSimClient) RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartEapol", in, out, opts...)
@@ -1320,15 +1405,19 @@
// BBSimServer is the server API for BBSim service.
type BBSimServer interface {
Version(context.Context, *Empty) (*VersionNumber, error)
+ SetLogLevel(context.Context, *LogLevel) (*LogLevel, error)
GetOlt(context.Context, *Empty) (*Olt, error)
PoweronOlt(context.Context, *Empty) (*Response, error)
ShutdownOlt(context.Context, *Empty) (*Response, error)
RebootOlt(context.Context, *Empty) (*Response, error)
- GetONUs(context.Context, *Empty) (*ONUs, error)
GetONU(context.Context, *ONURequest) (*ONU, error)
- SetLogLevel(context.Context, *LogLevel) (*LogLevel, error)
+ GetONUs(context.Context, *Empty) (*ONUs, error)
ShutdownONU(context.Context, *ONURequest) (*Response, error)
+ ShutdownAllONUs(context.Context, *Empty) (*Response, error)
+ ShutdownONUsOnPON(context.Context, *PONRequest) (*Response, error)
PoweronONU(context.Context, *ONURequest) (*Response, error)
+ PoweronAllONUs(context.Context, *Empty) (*Response, error)
+ PoweronONUsOnPON(context.Context, *PONRequest) (*Response, error)
RestartEapol(context.Context, *ONURequest) (*Response, error)
RestartDhcp(context.Context, *ONURequest) (*Response, error)
SetOnuAlarmIndication(context.Context, *ONUAlarmRequest) (*Response, error)
@@ -1338,6 +1427,74 @@
GetOnuTrafficSchedulers(context.Context, *ONURequest) (*ONUTrafficSchedulers, error)
}
+// UnimplementedBBSimServer can be embedded to have forward compatible implementations.
+type UnimplementedBBSimServer struct {
+}
+
+func (*UnimplementedBBSimServer) Version(ctx context.Context, req *Empty) (*VersionNumber, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Version not implemented")
+}
+func (*UnimplementedBBSimServer) SetLogLevel(ctx context.Context, req *LogLevel) (*LogLevel, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented")
+}
+func (*UnimplementedBBSimServer) GetOlt(ctx context.Context, req *Empty) (*Olt, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetOlt not implemented")
+}
+func (*UnimplementedBBSimServer) PoweronOlt(ctx context.Context, req *Empty) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method PoweronOlt not implemented")
+}
+func (*UnimplementedBBSimServer) ShutdownOlt(ctx context.Context, req *Empty) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ShutdownOlt not implemented")
+}
+func (*UnimplementedBBSimServer) RebootOlt(ctx context.Context, req *Empty) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method RebootOlt not implemented")
+}
+func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented")
+}
+func (*UnimplementedBBSimServer) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented")
+}
+func (*UnimplementedBBSimServer) ShutdownONU(ctx context.Context, req *ONURequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ShutdownONU not implemented")
+}
+func (*UnimplementedBBSimServer) ShutdownAllONUs(ctx context.Context, req *Empty) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ShutdownAllONUs not implemented")
+}
+func (*UnimplementedBBSimServer) ShutdownONUsOnPON(ctx context.Context, req *PONRequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ShutdownONUsOnPON not implemented")
+}
+func (*UnimplementedBBSimServer) PoweronONU(ctx context.Context, req *ONURequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method PoweronONU not implemented")
+}
+func (*UnimplementedBBSimServer) PoweronAllONUs(ctx context.Context, req *Empty) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method PoweronAllONUs not implemented")
+}
+func (*UnimplementedBBSimServer) PoweronONUsOnPON(ctx context.Context, req *PONRequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method PoweronONUsOnPON not implemented")
+}
+func (*UnimplementedBBSimServer) RestartEapol(ctx context.Context, req *ONURequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method RestartEapol not implemented")
+}
+func (*UnimplementedBBSimServer) RestartDhcp(ctx context.Context, req *ONURequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method RestartDhcp not implemented")
+}
+func (*UnimplementedBBSimServer) SetOnuAlarmIndication(ctx context.Context, req *ONUAlarmRequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SetOnuAlarmIndication not implemented")
+}
+func (*UnimplementedBBSimServer) SetOltAlarmIndication(ctx context.Context, req *OLTAlarmRequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SetOltAlarmIndication not implemented")
+}
+func (*UnimplementedBBSimServer) GetFlows(ctx context.Context, req *ONURequest) (*Flows, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetFlows not implemented")
+}
+func (*UnimplementedBBSimServer) ChangeIgmpState(ctx context.Context, req *IgmpRequest) (*Response, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ChangeIgmpState not implemented")
+}
+func (*UnimplementedBBSimServer) GetOnuTrafficSchedulers(ctx context.Context, req *ONURequest) (*ONUTrafficSchedulers, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method GetOnuTrafficSchedulers not implemented")
+}
+
func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) {
s.RegisterService(&_BBSim_serviceDesc, srv)
}
@@ -1360,6 +1517,24 @@
return interceptor(ctx, in, info, handler)
}
+func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(LogLevel)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BBSimServer).SetLogLevel(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/SetLogLevel",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _BBSim_GetOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
if err := dec(in); err != nil {
@@ -1432,24 +1607,6 @@
return interceptor(ctx, in, info, handler)
}
-func _BBSim_GetONUs_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).GetONUs(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/bbsim.BBSim/GetONUs",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BBSimServer).GetONUs(ctx, req.(*Empty))
- }
- 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 {
@@ -1468,20 +1625,20 @@
return interceptor(ctx, in, info, handler)
}
-func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LogLevel)
+func _BBSim_GetONUs_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).SetLogLevel(ctx, in)
+ return srv.(BBSimServer).GetONUs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/bbsim.BBSim/SetLogLevel",
+ FullMethod: "/bbsim.BBSim/GetONUs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel))
+ return srv.(BBSimServer).GetONUs(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
@@ -1504,6 +1661,42 @@
return interceptor(ctx, in, info, handler)
}
+func _BBSim_ShutdownAllONUs_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).ShutdownAllONUs(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/ShutdownAllONUs",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).ShutdownAllONUs(ctx, req.(*Empty))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _BBSim_ShutdownONUsOnPON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(PONRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BBSimServer).ShutdownONUsOnPON(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/ShutdownONUsOnPON",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).ShutdownONUsOnPON(ctx, req.(*PONRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _BBSim_PoweronONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ONURequest)
if err := dec(in); err != nil {
@@ -1522,6 +1715,42 @@
return interceptor(ctx, in, info, handler)
}
+func _BBSim_PoweronAllONUs_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).PoweronAllONUs(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/PoweronAllONUs",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).PoweronAllONUs(ctx, req.(*Empty))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _BBSim_PoweronONUsOnPON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(PONRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BBSimServer).PoweronONUsOnPON(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/PoweronONUsOnPON",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).PoweronONUsOnPON(ctx, req.(*PONRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _BBSim_RestartEapol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ONURequest)
if err := dec(in); err != nil {
@@ -1657,6 +1886,10 @@
Handler: _BBSim_Version_Handler,
},
{
+ MethodName: "SetLogLevel",
+ Handler: _BBSim_SetLogLevel_Handler,
+ },
+ {
MethodName: "GetOlt",
Handler: _BBSim_GetOlt_Handler,
},
@@ -1673,26 +1906,38 @@
Handler: _BBSim_RebootOlt_Handler,
},
{
- MethodName: "GetONUs",
- Handler: _BBSim_GetONUs_Handler,
- },
- {
MethodName: "GetONU",
Handler: _BBSim_GetONU_Handler,
},
{
- MethodName: "SetLogLevel",
- Handler: _BBSim_SetLogLevel_Handler,
+ MethodName: "GetONUs",
+ Handler: _BBSim_GetONUs_Handler,
},
{
MethodName: "ShutdownONU",
Handler: _BBSim_ShutdownONU_Handler,
},
{
+ MethodName: "ShutdownAllONUs",
+ Handler: _BBSim_ShutdownAllONUs_Handler,
+ },
+ {
+ MethodName: "ShutdownONUsOnPON",
+ Handler: _BBSim_ShutdownONUsOnPON_Handler,
+ },
+ {
MethodName: "PoweronONU",
Handler: _BBSim_PoweronONU_Handler,
},
{
+ MethodName: "PoweronAllONUs",
+ Handler: _BBSim_PoweronAllONUs_Handler,
+ },
+ {
+ MethodName: "PoweronONUsOnPON",
+ Handler: _BBSim_PoweronONUsOnPON_Handler,
+ },
+ {
MethodName: "RestartEapol",
Handler: _BBSim_RestartEapol_Handler,
},