VOL-2474 Implement Alarm Simulation in bbsim and bbsimctl;
Release 0.0.12
Change-Id: I65e51729d4fdfd1daf386b1ea1732ff40bf31db7
diff --git a/api/bbsim/bbsim.pb.go b/api/bbsim/bbsim.pb.go
index 2f2f647..3b4d99a 100644
--- a/api/bbsim/bbsim.pb.go
+++ b/api/bbsim/bbsim.pb.go
@@ -8,8 +8,6 @@
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
math "math"
)
@@ -24,6 +22,86 @@
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
+// These types correspond to the messages permitted in the oneof
+// in AlarmIndication in the openolt protos
+type AlarmType_Types int32
+
+const (
+ AlarmType_LOS AlarmType_Types = 0
+ AlarmType_DYING_GASP AlarmType_Types = 1
+ AlarmType_ONU_ALARM AlarmType_Types = 2
+ AlarmType_ONU_STARTUP_FAILURE AlarmType_Types = 3
+ AlarmType_ONU_SIGNAL_DEGRADE AlarmType_Types = 4
+ AlarmType_ONU_DRIFT_OF_WINDOW AlarmType_Types = 5
+ AlarmType_ONU_LOSS_OF_OMCI_CHANNEL AlarmType_Types = 6
+ AlarmType_ONU_SIGNALS_FAILURE AlarmType_Types = 7
+ AlarmType_ONU_TRANSMISSION_INTERFERENCE_WARNING AlarmType_Types = 8
+ AlarmType_ONU_ACTIVATION_FAILURE AlarmType_Types = 9
+ AlarmType_ONU_PROCESSING_ERROR AlarmType_Types = 10
+ AlarmType_ONU_LOSS_OF_KEY_SYNC_FAILURE AlarmType_Types = 11
+ AlarmType_ONU_ITU_PON_STATS AlarmType_Types = 12
+ // These break out ONU_ALARM, which is a single message, but
+ // includes statuses for these six alarms.
+ AlarmType_ONU_ALARM_LOS AlarmType_Types = 13
+ AlarmType_ONU_ALARM_LOB AlarmType_Types = 14
+ AlarmType_ONU_ALARM_LOPC_MISS AlarmType_Types = 15
+ AlarmType_ONU_ALARM_LOPC_MIC_ERROR AlarmType_Types = 16
+ AlarmType_ONU_ALARM_LOFI AlarmType_Types = 17
+ AlarmType_ONU_ALARM_LOAMI AlarmType_Types = 18
+)
+
+var AlarmType_Types_name = map[int32]string{
+ 0: "LOS",
+ 1: "DYING_GASP",
+ 2: "ONU_ALARM",
+ 3: "ONU_STARTUP_FAILURE",
+ 4: "ONU_SIGNAL_DEGRADE",
+ 5: "ONU_DRIFT_OF_WINDOW",
+ 6: "ONU_LOSS_OF_OMCI_CHANNEL",
+ 7: "ONU_SIGNALS_FAILURE",
+ 8: "ONU_TRANSMISSION_INTERFERENCE_WARNING",
+ 9: "ONU_ACTIVATION_FAILURE",
+ 10: "ONU_PROCESSING_ERROR",
+ 11: "ONU_LOSS_OF_KEY_SYNC_FAILURE",
+ 12: "ONU_ITU_PON_STATS",
+ 13: "ONU_ALARM_LOS",
+ 14: "ONU_ALARM_LOB",
+ 15: "ONU_ALARM_LOPC_MISS",
+ 16: "ONU_ALARM_LOPC_MIC_ERROR",
+ 17: "ONU_ALARM_LOFI",
+ 18: "ONU_ALARM_LOAMI",
+}
+
+var AlarmType_Types_value = map[string]int32{
+ "LOS": 0,
+ "DYING_GASP": 1,
+ "ONU_ALARM": 2,
+ "ONU_STARTUP_FAILURE": 3,
+ "ONU_SIGNAL_DEGRADE": 4,
+ "ONU_DRIFT_OF_WINDOW": 5,
+ "ONU_LOSS_OF_OMCI_CHANNEL": 6,
+ "ONU_SIGNALS_FAILURE": 7,
+ "ONU_TRANSMISSION_INTERFERENCE_WARNING": 8,
+ "ONU_ACTIVATION_FAILURE": 9,
+ "ONU_PROCESSING_ERROR": 10,
+ "ONU_LOSS_OF_KEY_SYNC_FAILURE": 11,
+ "ONU_ITU_PON_STATS": 12,
+ "ONU_ALARM_LOS": 13,
+ "ONU_ALARM_LOB": 14,
+ "ONU_ALARM_LOPC_MISS": 15,
+ "ONU_ALARM_LOPC_MIC_ERROR": 16,
+ "ONU_ALARM_LOFI": 17,
+ "ONU_ALARM_LOAMI": 18,
+}
+
+func (x AlarmType_Types) String() string {
+ return proto.EnumName(AlarmType_Types_name, int32(x))
+}
+
+func (AlarmType_Types) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptor_ef7750073d18011b, []int{6, 0}
+}
+
type PONPort struct {
ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"`
@@ -378,6 +456,150 @@
return ""
}
+type AlarmType struct {
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *AlarmType) Reset() { *m = AlarmType{} }
+func (m *AlarmType) String() string { return proto.CompactTextString(m) }
+func (*AlarmType) ProtoMessage() {}
+func (*AlarmType) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ef7750073d18011b, []int{6}
+}
+
+func (m *AlarmType) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_AlarmType.Unmarshal(m, b)
+}
+func (m *AlarmType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_AlarmType.Marshal(b, m, deterministic)
+}
+func (m *AlarmType) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_AlarmType.Merge(m, src)
+}
+func (m *AlarmType) XXX_Size() int {
+ return xxx_messageInfo_AlarmType.Size(m)
+}
+func (m *AlarmType) XXX_DiscardUnknown() {
+ xxx_messageInfo_AlarmType.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AlarmType proto.InternalMessageInfo
+
+type AlarmParameter struct {
+ Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
+ Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *AlarmParameter) Reset() { *m = AlarmParameter{} }
+func (m *AlarmParameter) String() string { return proto.CompactTextString(m) }
+func (*AlarmParameter) ProtoMessage() {}
+func (*AlarmParameter) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ef7750073d18011b, []int{7}
+}
+
+func (m *AlarmParameter) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_AlarmParameter.Unmarshal(m, b)
+}
+func (m *AlarmParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_AlarmParameter.Marshal(b, m, deterministic)
+}
+func (m *AlarmParameter) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_AlarmParameter.Merge(m, src)
+}
+func (m *AlarmParameter) XXX_Size() int {
+ return xxx_messageInfo_AlarmParameter.Size(m)
+}
+func (m *AlarmParameter) XXX_DiscardUnknown() {
+ xxx_messageInfo_AlarmParameter.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AlarmParameter proto.InternalMessageInfo
+
+func (m *AlarmParameter) GetKey() string {
+ if m != nil {
+ return m.Key
+ }
+ return ""
+}
+
+func (m *AlarmParameter) GetValue() string {
+ if m != nil {
+ return m.Value
+ }
+ return ""
+}
+
+// AlarmRequest includes fields common to every alarm,
+// plus an optional list of AlarmParemter list that can be used
+// to set additional fields in alarms that support them.
+type AlarmRequest struct {
+ AlarmType AlarmType_Types `protobuf:"varint,1,opt,name=AlarmType,proto3,enum=bbsim.AlarmType_Types" json:"AlarmType,omitempty"`
+ SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
+ Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"`
+ Parameters []*AlarmParameter `protobuf:"bytes,4,rep,name=Parameters,proto3" json:"Parameters,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *AlarmRequest) Reset() { *m = AlarmRequest{} }
+func (m *AlarmRequest) String() string { return proto.CompactTextString(m) }
+func (*AlarmRequest) ProtoMessage() {}
+func (*AlarmRequest) Descriptor() ([]byte, []int) {
+ return fileDescriptor_ef7750073d18011b, []int{8}
+}
+
+func (m *AlarmRequest) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_AlarmRequest.Unmarshal(m, b)
+}
+func (m *AlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_AlarmRequest.Marshal(b, m, deterministic)
+}
+func (m *AlarmRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_AlarmRequest.Merge(m, src)
+}
+func (m *AlarmRequest) XXX_Size() int {
+ return xxx_messageInfo_AlarmRequest.Size(m)
+}
+func (m *AlarmRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_AlarmRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_AlarmRequest proto.InternalMessageInfo
+
+func (m *AlarmRequest) GetAlarmType() AlarmType_Types {
+ if m != nil {
+ return m.AlarmType
+ }
+ return AlarmType_LOS
+}
+
+func (m *AlarmRequest) GetSerialNumber() string {
+ if m != nil {
+ return m.SerialNumber
+ }
+ return ""
+}
+
+func (m *AlarmRequest) GetStatus() string {
+ if m != nil {
+ return m.Status
+ }
+ return ""
+}
+
+func (m *AlarmRequest) GetParameters() []*AlarmParameter {
+ if m != nil {
+ return m.Parameters
+ }
+ return nil
+}
+
type VersionNumber struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
BuildTime string `protobuf:"bytes,2,opt,name=buildTime,proto3" json:"buildTime,omitempty"`
@@ -392,7 +614,7 @@
func (m *VersionNumber) String() string { return proto.CompactTextString(m) }
func (*VersionNumber) ProtoMessage() {}
func (*VersionNumber) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{6}
+ return fileDescriptor_ef7750073d18011b, []int{9}
}
func (m *VersionNumber) XXX_Unmarshal(b []byte) error {
@@ -453,7 +675,7 @@
func (m *LogLevel) String() string { return proto.CompactTextString(m) }
func (*LogLevel) ProtoMessage() {}
func (*LogLevel) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{7}
+ return fileDescriptor_ef7750073d18011b, []int{10}
}
func (m *LogLevel) XXX_Unmarshal(b []byte) error {
@@ -500,7 +722,7 @@
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{8}
+ return fileDescriptor_ef7750073d18011b, []int{11}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
@@ -545,7 +767,7 @@
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) {
- return fileDescriptor_ef7750073d18011b, []int{9}
+ return fileDescriptor_ef7750073d18011b, []int{12}
}
func (m *Empty) XXX_Unmarshal(b []byte) error {
@@ -567,12 +789,16 @@
var xxx_messageInfo_Empty proto.InternalMessageInfo
func init() {
+ proto.RegisterEnum("bbsim.AlarmType_Types", AlarmType_Types_name, AlarmType_Types_value)
proto.RegisterType((*PONPort)(nil), "bbsim.PONPort")
proto.RegisterType((*NNIPort)(nil), "bbsim.NNIPort")
proto.RegisterType((*Olt)(nil), "bbsim.Olt")
proto.RegisterType((*ONU)(nil), "bbsim.ONU")
proto.RegisterType((*ONUs)(nil), "bbsim.ONUs")
proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest")
+ proto.RegisterType((*AlarmType)(nil), "bbsim.AlarmType")
+ proto.RegisterType((*AlarmParameter)(nil), "bbsim.AlarmParameter")
+ proto.RegisterType((*AlarmRequest)(nil), "bbsim.AlarmRequest")
proto.RegisterType((*VersionNumber)(nil), "bbsim.VersionNumber")
proto.RegisterType((*LogLevel)(nil), "bbsim.LogLevel")
proto.RegisterType((*Response)(nil), "bbsim.Response")
@@ -582,46 +808,71 @@
func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) }
var fileDescriptor_ef7750073d18011b = []byte{
- // 617 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xd1, 0x8e, 0xd2, 0x4c,
- 0x18, 0x6d, 0x81, 0x52, 0xf8, 0xca, 0xee, 0x9f, 0x7f, 0xb2, 0x9a, 0x86, 0x6c, 0x94, 0x4c, 0x36,
- 0x06, 0x8d, 0xb2, 0x0a, 0x26, 0x7a, 0xeb, 0x2e, 0xc4, 0x25, 0xd9, 0x14, 0xd2, 0x2e, 0xde, 0x9a,
- 0x96, 0x4e, 0xa0, 0x49, 0xdb, 0xa9, 0x9d, 0x61, 0x89, 0x0f, 0xe0, 0xa3, 0xf9, 0x08, 0x3e, 0x8c,
- 0x77, 0x66, 0xda, 0x69, 0xa1, 0xcb, 0x5e, 0x10, 0x6f, 0xbc, 0x21, 0x73, 0xce, 0x9c, 0x33, 0xf3,
- 0x7d, 0x67, 0x3e, 0x52, 0x78, 0xe2, 0x26, 0xc1, 0xa5, 0xe7, 0xb1, 0x20, 0xca, 0x7f, 0x07, 0x49,
- 0x4a, 0x39, 0x45, 0x5a, 0x06, 0xf0, 0x07, 0xd0, 0xe7, 0x33, 0x6b, 0x4e, 0x53, 0x8e, 0x4e, 0xa1,
- 0x36, 0x1d, 0x9b, 0x6a, 0x4f, 0xed, 0x6b, 0x76, 0x6d, 0x3a, 0x46, 0xe7, 0xd0, 0x9e, 0x25, 0x24,
- 0x75, 0xb8, 0xcb, 0x89, 0x59, 0xeb, 0xa9, 0xfd, 0xb6, 0xbd, 0x23, 0x84, 0xd1, 0xb2, 0xa6, 0x7f,
- 0x61, 0xfc, 0xa5, 0x42, 0x7d, 0x16, 0x1e, 0xba, 0x30, 0x74, 0x1c, 0x92, 0x06, 0x6e, 0x68, 0x6d,
- 0x22, 0x8f, 0xa4, 0xd2, 0x58, 0xe1, 0xaa, 0x27, 0xd7, 0x1f, 0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, 0x5a, 0xa0, 0xff, 0xf7, 0xc6, 0x2e, 0x1f, 0xb4, 0xee, 0xde,
- 0x24, 0x62, 0x05, 0xbd, 0x03, 0xc3, 0x21, 0xbc, 0x7c, 0xcd, 0xe2, 0xd2, 0x82, 0xe8, 0x3e, 0x24,
- 0xb0, 0x82, 0x46, 0x7b, 0x3d, 0x3e, 0x7e, 0xc5, 0x23, 0xa5, 0x0f, 0x77, 0x39, 0x1e, 0xed, 0x79,
- 0x0f, 0x1d, 0x9b, 0x30, 0xee, 0xa6, 0x7c, 0xe2, 0x26, 0x34, 0x3c, 0xd2, 0x35, 0x02, 0x43, 0xba,
- 0xc6, 0xeb, 0x65, 0x72, 0x9c, 0xc9, 0x6b, 0x66, 0x5f, 0x82, 0xd1, 0x9f, 0x00, 0x00, 0x00, 0xff,
- 0xff, 0x57, 0x53, 0xc7, 0x05, 0x22, 0x06, 0x00, 0x00,
+ // 1009 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x4d, 0x4f, 0xeb, 0x56,
+ 0x13, 0x4e, 0x08, 0xce, 0xc7, 0x04, 0x82, 0x19, 0x3e, 0x5e, 0x0b, 0xa1, 0xb7, 0xc8, 0xba, 0xad,
+ 0xb8, 0x55, 0xcb, 0x6d, 0xe1, 0x56, 0xbd, 0x8b, 0x6e, 0x4c, 0x62, 0x82, 0x75, 0xc3, 0x71, 0x74,
+ 0xec, 0x80, 0x58, 0x59, 0x4e, 0x72, 0x04, 0x96, 0xec, 0x38, 0xb5, 0x9d, 0x8b, 0x58, 0x57, 0xfd,
+ 0x4d, 0xfd, 0x1b, 0xdd, 0x74, 0xdb, 0xff, 0xd1, 0x5d, 0x75, 0xec, 0x63, 0xc7, 0x81, 0x5b, 0x29,
+ 0xea, 0xa6, 0x1b, 0x74, 0xe6, 0x99, 0x79, 0xce, 0xcc, 0x3c, 0x9e, 0x33, 0x04, 0x0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xb4, 0x57, 0x7e, 0x92, 0xff, 0xcc, 0x1e, 0xd7, 0xd3,
+ 0x1f, 0x47, 0x17, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x83, 0x0f, 0x4c, 0x7d, 0x35, 0x09, 0x00,
+ 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -648,6 +899,7 @@
PoweronONU(ctx context.Context, in *ONURequest, 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)
+ SetAlarmIndication(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*Response, error)
}
type bBSimClient struct {
@@ -766,6 +1018,15 @@
return out, nil
}
+func (c *bBSimClient) SetAlarmIndication(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*Response, error) {
+ out := new(Response)
+ err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetAlarmIndication", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
// BBSimServer is the server API for BBSim service.
type BBSimServer interface {
Version(context.Context, *Empty) (*VersionNumber, error)
@@ -780,47 +1041,7 @@
PoweronONU(context.Context, *ONURequest) (*Response, error)
RestartEapol(context.Context, *ONURequest) (*Response, error)
RestartDhcp(context.Context, *ONURequest) (*Response, 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) 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) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented")
-}
-func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented")
-}
-func (*UnimplementedBBSimServer) SetLogLevel(ctx context.Context, req *LogLevel) (*LogLevel, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented")
-}
-func (*UnimplementedBBSimServer) ShutdownONU(ctx context.Context, req *ONURequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ShutdownONU not implemented")
-}
-func (*UnimplementedBBSimServer) PoweronONU(ctx context.Context, req *ONURequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PoweronONU 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")
+ SetAlarmIndication(context.Context, *AlarmRequest) (*Response, error)
}
func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) {
@@ -1043,6 +1264,24 @@
return interceptor(ctx, in, info, handler)
}
+func _BBSim_SetAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(AlarmRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(BBSimServer).SetAlarmIndication(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/bbsim.BBSim/SetAlarmIndication",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(BBSimServer).SetAlarmIndication(ctx, req.(*AlarmRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
var _BBSim_serviceDesc = grpc.ServiceDesc{
ServiceName: "bbsim.BBSim",
HandlerType: (*BBSimServer)(nil),
@@ -1095,6 +1334,10 @@
MethodName: "RestartDhcp",
Handler: _BBSim_RestartDhcp_Handler,
},
+ {
+ MethodName: "SetAlarmIndication",
+ Handler: _BBSim_SetAlarmIndication_Handler,
+ },
},
Streams: []grpc.StreamDesc{},
Metadata: "api/bbsim/bbsim.proto",