blob: 5d4a80d769feed1d5c17f8b5aad6e430d0d706dd [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: api/bbsim/bbsim.proto
3
4package bbsim
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
Pragya Arya8bdb4532020-03-02 17:08:09 +053010 openolt "github.com/opencord/voltha-protos/v2/go/openolt"
Anand S Katti09541352020-01-29 15:54:01 +053011 tech_profile "github.com/opencord/voltha-protos/v2/go/tech_profile"
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070012 grpc "google.golang.org/grpc"
Pragya Aryabd731ec2020-02-11 16:38:17 +053013 codes "google.golang.org/grpc/codes"
14 status "google.golang.org/grpc/status"
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070015 math "math"
16)
17
18// Reference imports to suppress errors if they are not otherwise used.
19var _ = proto.Marshal
20var _ = fmt.Errorf
21var _ = math.Inf
22
23// This is a compile-time assertion to ensure that this generated file
24// is compatible with the proto package it is being compiled against.
25// A compilation error at this line likely means your copy of the
26// proto package needs to be updated.
27const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
28
Arjun E K57a7fcb2020-01-30 06:44:45 +000029type SubActionTypes int32
30
31const (
Arjun E Kdd443f02020-02-07 15:24:01 +000032 SubActionTypes_JOIN SubActionTypes = 0
33 SubActionTypes_LEAVE SubActionTypes = 1
34 SubActionTypes_JOINV3 SubActionTypes = 2
Arjun E K57a7fcb2020-01-30 06:44:45 +000035)
36
37var SubActionTypes_name = map[int32]string{
38 0: "JOIN",
39 1: "LEAVE",
Arjun E Kdd443f02020-02-07 15:24:01 +000040 2: "JOINV3",
Arjun E K57a7fcb2020-01-30 06:44:45 +000041}
42
43var SubActionTypes_value = map[string]int32{
Arjun E Kdd443f02020-02-07 15:24:01 +000044 "JOIN": 0,
45 "LEAVE": 1,
46 "JOINV3": 2,
Arjun E K57a7fcb2020-01-30 06:44:45 +000047}
48
49func (x SubActionTypes) String() string {
50 return proto.EnumName(SubActionTypes_name, int32(x))
51}
52
53func (SubActionTypes) EnumDescriptor() ([]byte, []int) {
54 return fileDescriptor_ef7750073d18011b, []int{0}
55}
56
Scott Baker41724b82020-01-21 19:54:53 -080057// These types correspond to the messages permitted in the oneof
58// in AlarmIndication in the openolt protos
59type AlarmType_Types int32
60
61const (
62 AlarmType_LOS AlarmType_Types = 0
63 AlarmType_DYING_GASP AlarmType_Types = 1
64 AlarmType_ONU_ALARM AlarmType_Types = 2
65 AlarmType_ONU_STARTUP_FAILURE AlarmType_Types = 3
66 AlarmType_ONU_SIGNAL_DEGRADE AlarmType_Types = 4
67 AlarmType_ONU_DRIFT_OF_WINDOW AlarmType_Types = 5
68 AlarmType_ONU_LOSS_OF_OMCI_CHANNEL AlarmType_Types = 6
69 AlarmType_ONU_SIGNALS_FAILURE AlarmType_Types = 7
70 AlarmType_ONU_TRANSMISSION_INTERFERENCE_WARNING AlarmType_Types = 8
71 AlarmType_ONU_ACTIVATION_FAILURE AlarmType_Types = 9
72 AlarmType_ONU_PROCESSING_ERROR AlarmType_Types = 10
73 AlarmType_ONU_LOSS_OF_KEY_SYNC_FAILURE AlarmType_Types = 11
74 AlarmType_ONU_ITU_PON_STATS AlarmType_Types = 12
75 // These break out ONU_ALARM, which is a single message, but
76 // includes statuses for these six alarms.
77 AlarmType_ONU_ALARM_LOS AlarmType_Types = 13
78 AlarmType_ONU_ALARM_LOB AlarmType_Types = 14
79 AlarmType_ONU_ALARM_LOPC_MISS AlarmType_Types = 15
80 AlarmType_ONU_ALARM_LOPC_MIC_ERROR AlarmType_Types = 16
81 AlarmType_ONU_ALARM_LOFI AlarmType_Types = 17
82 AlarmType_ONU_ALARM_LOAMI AlarmType_Types = 18
83)
84
85var AlarmType_Types_name = map[int32]string{
86 0: "LOS",
87 1: "DYING_GASP",
88 2: "ONU_ALARM",
89 3: "ONU_STARTUP_FAILURE",
90 4: "ONU_SIGNAL_DEGRADE",
91 5: "ONU_DRIFT_OF_WINDOW",
92 6: "ONU_LOSS_OF_OMCI_CHANNEL",
93 7: "ONU_SIGNALS_FAILURE",
94 8: "ONU_TRANSMISSION_INTERFERENCE_WARNING",
95 9: "ONU_ACTIVATION_FAILURE",
96 10: "ONU_PROCESSING_ERROR",
97 11: "ONU_LOSS_OF_KEY_SYNC_FAILURE",
98 12: "ONU_ITU_PON_STATS",
99 13: "ONU_ALARM_LOS",
100 14: "ONU_ALARM_LOB",
101 15: "ONU_ALARM_LOPC_MISS",
102 16: "ONU_ALARM_LOPC_MIC_ERROR",
103 17: "ONU_ALARM_LOFI",
104 18: "ONU_ALARM_LOAMI",
105}
106
107var AlarmType_Types_value = map[string]int32{
108 "LOS": 0,
109 "DYING_GASP": 1,
110 "ONU_ALARM": 2,
111 "ONU_STARTUP_FAILURE": 3,
112 "ONU_SIGNAL_DEGRADE": 4,
113 "ONU_DRIFT_OF_WINDOW": 5,
114 "ONU_LOSS_OF_OMCI_CHANNEL": 6,
115 "ONU_SIGNALS_FAILURE": 7,
116 "ONU_TRANSMISSION_INTERFERENCE_WARNING": 8,
117 "ONU_ACTIVATION_FAILURE": 9,
118 "ONU_PROCESSING_ERROR": 10,
119 "ONU_LOSS_OF_KEY_SYNC_FAILURE": 11,
120 "ONU_ITU_PON_STATS": 12,
121 "ONU_ALARM_LOS": 13,
122 "ONU_ALARM_LOB": 14,
123 "ONU_ALARM_LOPC_MISS": 15,
124 "ONU_ALARM_LOPC_MIC_ERROR": 16,
125 "ONU_ALARM_LOFI": 17,
126 "ONU_ALARM_LOAMI": 18,
127}
128
129func (x AlarmType_Types) String() string {
130 return proto.EnumName(AlarmType_Types_name, int32(x))
131}
132
133func (AlarmType_Types) EnumDescriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530134 return fileDescriptor_ef7750073d18011b, []int{8, 0}
Scott Baker41724b82020-01-21 19:54:53 -0800135}
136
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700137type PONPort struct {
138 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
139 OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"`
140 XXX_NoUnkeyedLiteral struct{} `json:"-"`
141 XXX_unrecognized []byte `json:"-"`
142 XXX_sizecache int32 `json:"-"`
143}
144
145func (m *PONPort) Reset() { *m = PONPort{} }
146func (m *PONPort) String() string { return proto.CompactTextString(m) }
147func (*PONPort) ProtoMessage() {}
148func (*PONPort) Descriptor() ([]byte, []int) {
149 return fileDescriptor_ef7750073d18011b, []int{0}
150}
151
152func (m *PONPort) XXX_Unmarshal(b []byte) error {
153 return xxx_messageInfo_PONPort.Unmarshal(m, b)
154}
155func (m *PONPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
156 return xxx_messageInfo_PONPort.Marshal(b, m, deterministic)
157}
158func (m *PONPort) XXX_Merge(src proto.Message) {
159 xxx_messageInfo_PONPort.Merge(m, src)
160}
161func (m *PONPort) XXX_Size() int {
162 return xxx_messageInfo_PONPort.Size(m)
163}
164func (m *PONPort) XXX_DiscardUnknown() {
165 xxx_messageInfo_PONPort.DiscardUnknown(m)
166}
167
168var xxx_messageInfo_PONPort proto.InternalMessageInfo
169
170func (m *PONPort) GetID() int32 {
171 if m != nil {
172 return m.ID
173 }
174 return 0
175}
176
177func (m *PONPort) GetOperState() string {
178 if m != nil {
179 return m.OperState
180 }
181 return ""
182}
183
184type NNIPort struct {
185 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
186 OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"`
187 XXX_NoUnkeyedLiteral struct{} `json:"-"`
188 XXX_unrecognized []byte `json:"-"`
189 XXX_sizecache int32 `json:"-"`
190}
191
192func (m *NNIPort) Reset() { *m = NNIPort{} }
193func (m *NNIPort) String() string { return proto.CompactTextString(m) }
194func (*NNIPort) ProtoMessage() {}
195func (*NNIPort) Descriptor() ([]byte, []int) {
196 return fileDescriptor_ef7750073d18011b, []int{1}
197}
198
199func (m *NNIPort) XXX_Unmarshal(b []byte) error {
200 return xxx_messageInfo_NNIPort.Unmarshal(m, b)
201}
202func (m *NNIPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
203 return xxx_messageInfo_NNIPort.Marshal(b, m, deterministic)
204}
205func (m *NNIPort) XXX_Merge(src proto.Message) {
206 xxx_messageInfo_NNIPort.Merge(m, src)
207}
208func (m *NNIPort) XXX_Size() int {
209 return xxx_messageInfo_NNIPort.Size(m)
210}
211func (m *NNIPort) XXX_DiscardUnknown() {
212 xxx_messageInfo_NNIPort.DiscardUnknown(m)
213}
214
215var xxx_messageInfo_NNIPort proto.InternalMessageInfo
216
217func (m *NNIPort) GetID() int32 {
218 if m != nil {
219 return m.ID
220 }
221 return 0
222}
223
224func (m *NNIPort) GetOperState() string {
225 if m != nil {
226 return m.OperState
227 }
228 return ""
229}
230
231type Olt struct {
232 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
233 SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
234 OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"`
235 InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"`
rajeshf921f882020-03-06 18:24:28 +0530236 IP string `protobuf:"bytes,7,opt,name=IP,proto3" json:"IP,omitempty"`
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700237 NNIPorts []*NNIPort `protobuf:"bytes,5,rep,name=NNIPorts,proto3" json:"NNIPorts,omitempty"`
238 PONPorts []*PONPort `protobuf:"bytes,6,rep,name=PONPorts,proto3" json:"PONPorts,omitempty"`
239 XXX_NoUnkeyedLiteral struct{} `json:"-"`
240 XXX_unrecognized []byte `json:"-"`
241 XXX_sizecache int32 `json:"-"`
242}
243
244func (m *Olt) Reset() { *m = Olt{} }
245func (m *Olt) String() string { return proto.CompactTextString(m) }
246func (*Olt) ProtoMessage() {}
247func (*Olt) Descriptor() ([]byte, []int) {
248 return fileDescriptor_ef7750073d18011b, []int{2}
249}
250
251func (m *Olt) XXX_Unmarshal(b []byte) error {
252 return xxx_messageInfo_Olt.Unmarshal(m, b)
253}
254func (m *Olt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
255 return xxx_messageInfo_Olt.Marshal(b, m, deterministic)
256}
257func (m *Olt) XXX_Merge(src proto.Message) {
258 xxx_messageInfo_Olt.Merge(m, src)
259}
260func (m *Olt) XXX_Size() int {
261 return xxx_messageInfo_Olt.Size(m)
262}
263func (m *Olt) XXX_DiscardUnknown() {
264 xxx_messageInfo_Olt.DiscardUnknown(m)
265}
266
267var xxx_messageInfo_Olt proto.InternalMessageInfo
268
269func (m *Olt) GetID() int32 {
270 if m != nil {
271 return m.ID
272 }
273 return 0
274}
275
276func (m *Olt) GetSerialNumber() string {
277 if m != nil {
278 return m.SerialNumber
279 }
280 return ""
281}
282
283func (m *Olt) GetOperState() string {
284 if m != nil {
285 return m.OperState
286 }
287 return ""
288}
289
290func (m *Olt) GetInternalState() string {
291 if m != nil {
292 return m.InternalState
293 }
294 return ""
295}
296
rajeshf921f882020-03-06 18:24:28 +0530297func (m *Olt) GetIP() string {
298 if m != nil {
299 return m.IP
300 }
301 return ""
302}
303
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700304func (m *Olt) GetNNIPorts() []*NNIPort {
305 if m != nil {
306 return m.NNIPorts
307 }
308 return nil
309}
310
311func (m *Olt) GetPONPorts() []*PONPort {
312 if m != nil {
313 return m.PONPorts
314 }
315 return nil
316}
317
318type ONU struct {
319 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
320 SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
321 OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"`
322 InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"`
323 PonPortID int32 `protobuf:"varint,5,opt,name=PonPortID,proto3" json:"PonPortID,omitempty"`
324 STag int32 `protobuf:"varint,6,opt,name=STag,proto3" json:"STag,omitempty"`
325 CTag int32 `protobuf:"varint,7,opt,name=CTag,proto3" json:"CTag,omitempty"`
326 HwAddress string `protobuf:"bytes,8,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"`
327 PortNo int32 `protobuf:"varint,9,opt,name=PortNo,proto3" json:"PortNo,omitempty"`
328 XXX_NoUnkeyedLiteral struct{} `json:"-"`
329 XXX_unrecognized []byte `json:"-"`
330 XXX_sizecache int32 `json:"-"`
331}
332
333func (m *ONU) Reset() { *m = ONU{} }
334func (m *ONU) String() string { return proto.CompactTextString(m) }
335func (*ONU) ProtoMessage() {}
336func (*ONU) Descriptor() ([]byte, []int) {
337 return fileDescriptor_ef7750073d18011b, []int{3}
338}
339
340func (m *ONU) XXX_Unmarshal(b []byte) error {
341 return xxx_messageInfo_ONU.Unmarshal(m, b)
342}
343func (m *ONU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
344 return xxx_messageInfo_ONU.Marshal(b, m, deterministic)
345}
346func (m *ONU) XXX_Merge(src proto.Message) {
347 xxx_messageInfo_ONU.Merge(m, src)
348}
349func (m *ONU) XXX_Size() int {
350 return xxx_messageInfo_ONU.Size(m)
351}
352func (m *ONU) XXX_DiscardUnknown() {
353 xxx_messageInfo_ONU.DiscardUnknown(m)
354}
355
356var xxx_messageInfo_ONU proto.InternalMessageInfo
357
358func (m *ONU) GetID() int32 {
359 if m != nil {
360 return m.ID
361 }
362 return 0
363}
364
365func (m *ONU) GetSerialNumber() string {
366 if m != nil {
367 return m.SerialNumber
368 }
369 return ""
370}
371
372func (m *ONU) GetOperState() string {
373 if m != nil {
374 return m.OperState
375 }
376 return ""
377}
378
379func (m *ONU) GetInternalState() string {
380 if m != nil {
381 return m.InternalState
382 }
383 return ""
384}
385
386func (m *ONU) GetPonPortID() int32 {
387 if m != nil {
388 return m.PonPortID
389 }
390 return 0
391}
392
393func (m *ONU) GetSTag() int32 {
394 if m != nil {
395 return m.STag
396 }
397 return 0
398}
399
400func (m *ONU) GetCTag() int32 {
401 if m != nil {
402 return m.CTag
403 }
404 return 0
405}
406
407func (m *ONU) GetHwAddress() string {
408 if m != nil {
409 return m.HwAddress
410 }
411 return ""
412}
413
414func (m *ONU) GetPortNo() int32 {
415 if m != nil {
416 return m.PortNo
417 }
418 return 0
419}
420
Anand S Katti09541352020-01-29 15:54:01 +0530421type ONUTrafficSchedulers struct {
422 TraffSchedulers *tech_profile.TrafficSchedulers `protobuf:"bytes,1,opt,name=traffSchedulers,proto3" json:"traffSchedulers,omitempty"`
423 XXX_NoUnkeyedLiteral struct{} `json:"-"`
424 XXX_unrecognized []byte `json:"-"`
425 XXX_sizecache int32 `json:"-"`
426}
427
428func (m *ONUTrafficSchedulers) Reset() { *m = ONUTrafficSchedulers{} }
429func (m *ONUTrafficSchedulers) String() string { return proto.CompactTextString(m) }
430func (*ONUTrafficSchedulers) ProtoMessage() {}
431func (*ONUTrafficSchedulers) Descriptor() ([]byte, []int) {
432 return fileDescriptor_ef7750073d18011b, []int{4}
433}
434
435func (m *ONUTrafficSchedulers) XXX_Unmarshal(b []byte) error {
436 return xxx_messageInfo_ONUTrafficSchedulers.Unmarshal(m, b)
437}
438func (m *ONUTrafficSchedulers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
439 return xxx_messageInfo_ONUTrafficSchedulers.Marshal(b, m, deterministic)
440}
441func (m *ONUTrafficSchedulers) XXX_Merge(src proto.Message) {
442 xxx_messageInfo_ONUTrafficSchedulers.Merge(m, src)
443}
444func (m *ONUTrafficSchedulers) XXX_Size() int {
445 return xxx_messageInfo_ONUTrafficSchedulers.Size(m)
446}
447func (m *ONUTrafficSchedulers) XXX_DiscardUnknown() {
448 xxx_messageInfo_ONUTrafficSchedulers.DiscardUnknown(m)
449}
450
451var xxx_messageInfo_ONUTrafficSchedulers proto.InternalMessageInfo
452
453func (m *ONUTrafficSchedulers) GetTraffSchedulers() *tech_profile.TrafficSchedulers {
454 if m != nil {
455 return m.TraffSchedulers
456 }
457 return nil
458}
459
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700460type ONUs struct {
461 Items []*ONU `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
462 XXX_NoUnkeyedLiteral struct{} `json:"-"`
463 XXX_unrecognized []byte `json:"-"`
464 XXX_sizecache int32 `json:"-"`
465}
466
467func (m *ONUs) Reset() { *m = ONUs{} }
468func (m *ONUs) String() string { return proto.CompactTextString(m) }
469func (*ONUs) ProtoMessage() {}
470func (*ONUs) Descriptor() ([]byte, []int) {
Anand S Katti09541352020-01-29 15:54:01 +0530471 return fileDescriptor_ef7750073d18011b, []int{5}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700472}
473
474func (m *ONUs) XXX_Unmarshal(b []byte) error {
475 return xxx_messageInfo_ONUs.Unmarshal(m, b)
476}
477func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
478 return xxx_messageInfo_ONUs.Marshal(b, m, deterministic)
479}
480func (m *ONUs) XXX_Merge(src proto.Message) {
481 xxx_messageInfo_ONUs.Merge(m, src)
482}
483func (m *ONUs) XXX_Size() int {
484 return xxx_messageInfo_ONUs.Size(m)
485}
486func (m *ONUs) XXX_DiscardUnknown() {
487 xxx_messageInfo_ONUs.DiscardUnknown(m)
488}
489
490var xxx_messageInfo_ONUs proto.InternalMessageInfo
491
492func (m *ONUs) GetItems() []*ONU {
493 if m != nil {
494 return m.Items
495 }
496 return nil
497}
498
499type ONURequest struct {
500 SerialNumber string `protobuf:"bytes,1,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
501 XXX_NoUnkeyedLiteral struct{} `json:"-"`
502 XXX_unrecognized []byte `json:"-"`
503 XXX_sizecache int32 `json:"-"`
504}
505
506func (m *ONURequest) Reset() { *m = ONURequest{} }
507func (m *ONURequest) String() string { return proto.CompactTextString(m) }
508func (*ONURequest) ProtoMessage() {}
509func (*ONURequest) Descriptor() ([]byte, []int) {
Anand S Katti09541352020-01-29 15:54:01 +0530510 return fileDescriptor_ef7750073d18011b, []int{6}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700511}
512
513func (m *ONURequest) XXX_Unmarshal(b []byte) error {
514 return xxx_messageInfo_ONURequest.Unmarshal(m, b)
515}
516func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
517 return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic)
518}
519func (m *ONURequest) XXX_Merge(src proto.Message) {
520 xxx_messageInfo_ONURequest.Merge(m, src)
521}
522func (m *ONURequest) XXX_Size() int {
523 return xxx_messageInfo_ONURequest.Size(m)
524}
525func (m *ONURequest) XXX_DiscardUnknown() {
526 xxx_messageInfo_ONURequest.DiscardUnknown(m)
527}
528
529var xxx_messageInfo_ONURequest proto.InternalMessageInfo
530
531func (m *ONURequest) GetSerialNumber() string {
532 if m != nil {
533 return m.SerialNumber
534 }
535 return ""
536}
537
Pragya Aryabd731ec2020-02-11 16:38:17 +0530538type PONRequest struct {
539 PonPortId uint32 `protobuf:"varint,1,opt,name=PonPortId,proto3" json:"PonPortId,omitempty"`
540 XXX_NoUnkeyedLiteral struct{} `json:"-"`
541 XXX_unrecognized []byte `json:"-"`
542 XXX_sizecache int32 `json:"-"`
543}
544
545func (m *PONRequest) Reset() { *m = PONRequest{} }
546func (m *PONRequest) String() string { return proto.CompactTextString(m) }
547func (*PONRequest) ProtoMessage() {}
548func (*PONRequest) Descriptor() ([]byte, []int) {
549 return fileDescriptor_ef7750073d18011b, []int{7}
550}
551
552func (m *PONRequest) XXX_Unmarshal(b []byte) error {
553 return xxx_messageInfo_PONRequest.Unmarshal(m, b)
554}
555func (m *PONRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
556 return xxx_messageInfo_PONRequest.Marshal(b, m, deterministic)
557}
558func (m *PONRequest) XXX_Merge(src proto.Message) {
559 xxx_messageInfo_PONRequest.Merge(m, src)
560}
561func (m *PONRequest) XXX_Size() int {
562 return xxx_messageInfo_PONRequest.Size(m)
563}
564func (m *PONRequest) XXX_DiscardUnknown() {
565 xxx_messageInfo_PONRequest.DiscardUnknown(m)
566}
567
568var xxx_messageInfo_PONRequest proto.InternalMessageInfo
569
570func (m *PONRequest) GetPonPortId() uint32 {
571 if m != nil {
572 return m.PonPortId
573 }
574 return 0
575}
576
Scott Baker41724b82020-01-21 19:54:53 -0800577type AlarmType struct {
578 XXX_NoUnkeyedLiteral struct{} `json:"-"`
579 XXX_unrecognized []byte `json:"-"`
580 XXX_sizecache int32 `json:"-"`
581}
582
583func (m *AlarmType) Reset() { *m = AlarmType{} }
584func (m *AlarmType) String() string { return proto.CompactTextString(m) }
585func (*AlarmType) ProtoMessage() {}
586func (*AlarmType) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530587 return fileDescriptor_ef7750073d18011b, []int{8}
Scott Baker41724b82020-01-21 19:54:53 -0800588}
589
590func (m *AlarmType) XXX_Unmarshal(b []byte) error {
591 return xxx_messageInfo_AlarmType.Unmarshal(m, b)
592}
593func (m *AlarmType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
594 return xxx_messageInfo_AlarmType.Marshal(b, m, deterministic)
595}
596func (m *AlarmType) XXX_Merge(src proto.Message) {
597 xxx_messageInfo_AlarmType.Merge(m, src)
598}
599func (m *AlarmType) XXX_Size() int {
600 return xxx_messageInfo_AlarmType.Size(m)
601}
602func (m *AlarmType) XXX_DiscardUnknown() {
603 xxx_messageInfo_AlarmType.DiscardUnknown(m)
604}
605
606var xxx_messageInfo_AlarmType proto.InternalMessageInfo
607
608type AlarmParameter struct {
609 Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
610 Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
611 XXX_NoUnkeyedLiteral struct{} `json:"-"`
612 XXX_unrecognized []byte `json:"-"`
613 XXX_sizecache int32 `json:"-"`
614}
615
616func (m *AlarmParameter) Reset() { *m = AlarmParameter{} }
617func (m *AlarmParameter) String() string { return proto.CompactTextString(m) }
618func (*AlarmParameter) ProtoMessage() {}
619func (*AlarmParameter) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530620 return fileDescriptor_ef7750073d18011b, []int{9}
Scott Baker41724b82020-01-21 19:54:53 -0800621}
622
623func (m *AlarmParameter) XXX_Unmarshal(b []byte) error {
624 return xxx_messageInfo_AlarmParameter.Unmarshal(m, b)
625}
626func (m *AlarmParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
627 return xxx_messageInfo_AlarmParameter.Marshal(b, m, deterministic)
628}
629func (m *AlarmParameter) XXX_Merge(src proto.Message) {
630 xxx_messageInfo_AlarmParameter.Merge(m, src)
631}
632func (m *AlarmParameter) XXX_Size() int {
633 return xxx_messageInfo_AlarmParameter.Size(m)
634}
635func (m *AlarmParameter) XXX_DiscardUnknown() {
636 xxx_messageInfo_AlarmParameter.DiscardUnknown(m)
637}
638
639var xxx_messageInfo_AlarmParameter proto.InternalMessageInfo
640
641func (m *AlarmParameter) GetKey() string {
642 if m != nil {
643 return m.Key
644 }
645 return ""
646}
647
648func (m *AlarmParameter) GetValue() string {
649 if m != nil {
650 return m.Value
651 }
652 return ""
653}
654
Anand S Katti86552f92020-03-03 21:56:32 +0530655// ONUAlarmRequest includes fields common to every Onu alarm,
Anand S Katti09541352020-01-29 15:54:01 +0530656// plus an optional list of AlarmParameter list that can be used
Scott Baker41724b82020-01-21 19:54:53 -0800657// to set additional fields in alarms that support them.
Anand S Katti86552f92020-03-03 21:56:32 +0530658type ONUAlarmRequest struct {
Pragya Arya694ece02020-02-07 13:03:47 +0530659 AlarmType string `protobuf:"bytes,1,opt,name=AlarmType,proto3" json:"AlarmType,omitempty"`
Scott Baker41724b82020-01-21 19:54:53 -0800660 SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
661 Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"`
662 Parameters []*AlarmParameter `protobuf:"bytes,4,rep,name=Parameters,proto3" json:"Parameters,omitempty"`
663 XXX_NoUnkeyedLiteral struct{} `json:"-"`
664 XXX_unrecognized []byte `json:"-"`
665 XXX_sizecache int32 `json:"-"`
666}
667
Anand S Katti86552f92020-03-03 21:56:32 +0530668func (m *ONUAlarmRequest) Reset() { *m = ONUAlarmRequest{} }
669func (m *ONUAlarmRequest) String() string { return proto.CompactTextString(m) }
670func (*ONUAlarmRequest) ProtoMessage() {}
671func (*ONUAlarmRequest) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530672 return fileDescriptor_ef7750073d18011b, []int{10}
Scott Baker41724b82020-01-21 19:54:53 -0800673}
674
Anand S Katti86552f92020-03-03 21:56:32 +0530675func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error {
676 return xxx_messageInfo_ONUAlarmRequest.Unmarshal(m, b)
Scott Baker41724b82020-01-21 19:54:53 -0800677}
Anand S Katti86552f92020-03-03 21:56:32 +0530678func (m *ONUAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
679 return xxx_messageInfo_ONUAlarmRequest.Marshal(b, m, deterministic)
Scott Baker41724b82020-01-21 19:54:53 -0800680}
Anand S Katti86552f92020-03-03 21:56:32 +0530681func (m *ONUAlarmRequest) XXX_Merge(src proto.Message) {
682 xxx_messageInfo_ONUAlarmRequest.Merge(m, src)
Scott Baker41724b82020-01-21 19:54:53 -0800683}
Anand S Katti86552f92020-03-03 21:56:32 +0530684func (m *ONUAlarmRequest) XXX_Size() int {
685 return xxx_messageInfo_ONUAlarmRequest.Size(m)
Scott Baker41724b82020-01-21 19:54:53 -0800686}
Anand S Katti86552f92020-03-03 21:56:32 +0530687func (m *ONUAlarmRequest) XXX_DiscardUnknown() {
688 xxx_messageInfo_ONUAlarmRequest.DiscardUnknown(m)
Scott Baker41724b82020-01-21 19:54:53 -0800689}
690
Anand S Katti86552f92020-03-03 21:56:32 +0530691var xxx_messageInfo_ONUAlarmRequest proto.InternalMessageInfo
Scott Baker41724b82020-01-21 19:54:53 -0800692
Anand S Katti86552f92020-03-03 21:56:32 +0530693func (m *ONUAlarmRequest) GetAlarmType() string {
Scott Baker41724b82020-01-21 19:54:53 -0800694 if m != nil {
695 return m.AlarmType
696 }
Pragya Arya694ece02020-02-07 13:03:47 +0530697 return ""
Scott Baker41724b82020-01-21 19:54:53 -0800698}
699
Anand S Katti86552f92020-03-03 21:56:32 +0530700func (m *ONUAlarmRequest) GetSerialNumber() string {
Scott Baker41724b82020-01-21 19:54:53 -0800701 if m != nil {
702 return m.SerialNumber
703 }
704 return ""
705}
706
Anand S Katti86552f92020-03-03 21:56:32 +0530707func (m *ONUAlarmRequest) GetStatus() string {
Scott Baker41724b82020-01-21 19:54:53 -0800708 if m != nil {
709 return m.Status
710 }
711 return ""
712}
713
Anand S Katti86552f92020-03-03 21:56:32 +0530714func (m *ONUAlarmRequest) GetParameters() []*AlarmParameter {
Scott Baker41724b82020-01-21 19:54:53 -0800715 if m != nil {
716 return m.Parameters
717 }
718 return nil
719}
720
Anand S Katti86552f92020-03-03 21:56:32 +0530721// OLT alarm request
722type OLTAlarmRequest struct {
723 InterfaceID uint32 `protobuf:"varint,1,opt,name=InterfaceID,proto3" json:"InterfaceID,omitempty"`
724 InterfaceType string `protobuf:"bytes,2,opt,name=InterfaceType,proto3" json:"InterfaceType,omitempty"`
725 Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"`
726 XXX_NoUnkeyedLiteral struct{} `json:"-"`
727 XXX_unrecognized []byte `json:"-"`
728 XXX_sizecache int32 `json:"-"`
729}
730
731func (m *OLTAlarmRequest) Reset() { *m = OLTAlarmRequest{} }
732func (m *OLTAlarmRequest) String() string { return proto.CompactTextString(m) }
733func (*OLTAlarmRequest) ProtoMessage() {}
734func (*OLTAlarmRequest) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530735 return fileDescriptor_ef7750073d18011b, []int{11}
Anand S Katti86552f92020-03-03 21:56:32 +0530736}
737
738func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error {
739 return xxx_messageInfo_OLTAlarmRequest.Unmarshal(m, b)
740}
741func (m *OLTAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
742 return xxx_messageInfo_OLTAlarmRequest.Marshal(b, m, deterministic)
743}
744func (m *OLTAlarmRequest) XXX_Merge(src proto.Message) {
745 xxx_messageInfo_OLTAlarmRequest.Merge(m, src)
746}
747func (m *OLTAlarmRequest) XXX_Size() int {
748 return xxx_messageInfo_OLTAlarmRequest.Size(m)
749}
750func (m *OLTAlarmRequest) XXX_DiscardUnknown() {
751 xxx_messageInfo_OLTAlarmRequest.DiscardUnknown(m)
752}
753
754var xxx_messageInfo_OLTAlarmRequest proto.InternalMessageInfo
755
756func (m *OLTAlarmRequest) GetInterfaceID() uint32 {
757 if m != nil {
758 return m.InterfaceID
759 }
760 return 0
761}
762
763func (m *OLTAlarmRequest) GetInterfaceType() string {
764 if m != nil {
765 return m.InterfaceType
766 }
767 return ""
768}
769
770func (m *OLTAlarmRequest) GetStatus() string {
771 if m != nil {
772 return m.Status
773 }
774 return ""
775}
776
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700777type VersionNumber struct {
778 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
779 BuildTime string `protobuf:"bytes,2,opt,name=buildTime,proto3" json:"buildTime,omitempty"`
780 CommitHash string `protobuf:"bytes,3,opt,name=commitHash,proto3" json:"commitHash,omitempty"`
781 GitStatus string `protobuf:"bytes,4,opt,name=gitStatus,proto3" json:"gitStatus,omitempty"`
782 XXX_NoUnkeyedLiteral struct{} `json:"-"`
783 XXX_unrecognized []byte `json:"-"`
784 XXX_sizecache int32 `json:"-"`
785}
786
787func (m *VersionNumber) Reset() { *m = VersionNumber{} }
788func (m *VersionNumber) String() string { return proto.CompactTextString(m) }
789func (*VersionNumber) ProtoMessage() {}
790func (*VersionNumber) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530791 return fileDescriptor_ef7750073d18011b, []int{12}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700792}
793
794func (m *VersionNumber) XXX_Unmarshal(b []byte) error {
795 return xxx_messageInfo_VersionNumber.Unmarshal(m, b)
796}
797func (m *VersionNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
798 return xxx_messageInfo_VersionNumber.Marshal(b, m, deterministic)
799}
800func (m *VersionNumber) XXX_Merge(src proto.Message) {
801 xxx_messageInfo_VersionNumber.Merge(m, src)
802}
803func (m *VersionNumber) XXX_Size() int {
804 return xxx_messageInfo_VersionNumber.Size(m)
805}
806func (m *VersionNumber) XXX_DiscardUnknown() {
807 xxx_messageInfo_VersionNumber.DiscardUnknown(m)
808}
809
810var xxx_messageInfo_VersionNumber proto.InternalMessageInfo
811
812func (m *VersionNumber) GetVersion() string {
813 if m != nil {
814 return m.Version
815 }
816 return ""
817}
818
819func (m *VersionNumber) GetBuildTime() string {
820 if m != nil {
821 return m.BuildTime
822 }
823 return ""
824}
825
826func (m *VersionNumber) GetCommitHash() string {
827 if m != nil {
828 return m.CommitHash
829 }
830 return ""
831}
832
833func (m *VersionNumber) GetGitStatus() string {
834 if m != nil {
835 return m.GitStatus
836 }
837 return ""
838}
839
840type LogLevel struct {
841 Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
842 Caller bool `protobuf:"varint,2,opt,name=caller,proto3" json:"caller,omitempty"`
843 XXX_NoUnkeyedLiteral struct{} `json:"-"`
844 XXX_unrecognized []byte `json:"-"`
845 XXX_sizecache int32 `json:"-"`
846}
847
848func (m *LogLevel) Reset() { *m = LogLevel{} }
849func (m *LogLevel) String() string { return proto.CompactTextString(m) }
850func (*LogLevel) ProtoMessage() {}
851func (*LogLevel) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530852 return fileDescriptor_ef7750073d18011b, []int{13}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700853}
854
855func (m *LogLevel) XXX_Unmarshal(b []byte) error {
856 return xxx_messageInfo_LogLevel.Unmarshal(m, b)
857}
858func (m *LogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
859 return xxx_messageInfo_LogLevel.Marshal(b, m, deterministic)
860}
861func (m *LogLevel) XXX_Merge(src proto.Message) {
862 xxx_messageInfo_LogLevel.Merge(m, src)
863}
864func (m *LogLevel) XXX_Size() int {
865 return xxx_messageInfo_LogLevel.Size(m)
866}
867func (m *LogLevel) XXX_DiscardUnknown() {
868 xxx_messageInfo_LogLevel.DiscardUnknown(m)
869}
870
871var xxx_messageInfo_LogLevel proto.InternalMessageInfo
872
873func (m *LogLevel) GetLevel() string {
874 if m != nil {
875 return m.Level
876 }
877 return ""
878}
879
880func (m *LogLevel) GetCaller() bool {
881 if m != nil {
882 return m.Caller
883 }
884 return false
885}
886
887type Response struct {
888 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
889 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
890 XXX_NoUnkeyedLiteral struct{} `json:"-"`
891 XXX_unrecognized []byte `json:"-"`
892 XXX_sizecache int32 `json:"-"`
893}
894
895func (m *Response) Reset() { *m = Response{} }
896func (m *Response) String() string { return proto.CompactTextString(m) }
897func (*Response) ProtoMessage() {}
898func (*Response) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530899 return fileDescriptor_ef7750073d18011b, []int{14}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700900}
901
902func (m *Response) XXX_Unmarshal(b []byte) error {
903 return xxx_messageInfo_Response.Unmarshal(m, b)
904}
905func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
906 return xxx_messageInfo_Response.Marshal(b, m, deterministic)
907}
908func (m *Response) XXX_Merge(src proto.Message) {
909 xxx_messageInfo_Response.Merge(m, src)
910}
911func (m *Response) XXX_Size() int {
912 return xxx_messageInfo_Response.Size(m)
913}
914func (m *Response) XXX_DiscardUnknown() {
915 xxx_messageInfo_Response.DiscardUnknown(m)
916}
917
918var xxx_messageInfo_Response proto.InternalMessageInfo
919
920func (m *Response) GetStatusCode() int32 {
921 if m != nil {
922 return m.StatusCode
923 }
924 return 0
925}
926
927func (m *Response) GetMessage() string {
928 if m != nil {
929 return m.Message
930 }
931 return ""
932}
933
Arjun E K57a7fcb2020-01-30 06:44:45 +0000934type IgmpRequest struct {
935 OnuReq *ONURequest `protobuf:"bytes,1,opt,name=OnuReq,proto3" json:"OnuReq,omitempty"`
936 SubActionVal SubActionTypes `protobuf:"varint,2,opt,name=SubActionVal,proto3,enum=bbsim.SubActionTypes" json:"SubActionVal,omitempty"`
937 XXX_NoUnkeyedLiteral struct{} `json:"-"`
938 XXX_unrecognized []byte `json:"-"`
939 XXX_sizecache int32 `json:"-"`
940}
941
942func (m *IgmpRequest) Reset() { *m = IgmpRequest{} }
943func (m *IgmpRequest) String() string { return proto.CompactTextString(m) }
944func (*IgmpRequest) ProtoMessage() {}
945func (*IgmpRequest) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530946 return fileDescriptor_ef7750073d18011b, []int{15}
Arjun E K57a7fcb2020-01-30 06:44:45 +0000947}
948
949func (m *IgmpRequest) XXX_Unmarshal(b []byte) error {
950 return xxx_messageInfo_IgmpRequest.Unmarshal(m, b)
951}
952func (m *IgmpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
953 return xxx_messageInfo_IgmpRequest.Marshal(b, m, deterministic)
954}
955func (m *IgmpRequest) XXX_Merge(src proto.Message) {
956 xxx_messageInfo_IgmpRequest.Merge(m, src)
957}
958func (m *IgmpRequest) XXX_Size() int {
959 return xxx_messageInfo_IgmpRequest.Size(m)
960}
961func (m *IgmpRequest) XXX_DiscardUnknown() {
962 xxx_messageInfo_IgmpRequest.DiscardUnknown(m)
963}
964
965var xxx_messageInfo_IgmpRequest proto.InternalMessageInfo
966
967func (m *IgmpRequest) GetOnuReq() *ONURequest {
968 if m != nil {
969 return m.OnuReq
970 }
971 return nil
972}
973
974func (m *IgmpRequest) GetSubActionVal() SubActionTypes {
975 if m != nil {
976 return m.SubActionVal
977 }
978 return SubActionTypes_JOIN
979}
980
Pragya Arya8bdb4532020-03-02 17:08:09 +0530981type Flows struct {
982 FlowCount uint32 `protobuf:"varint,1,opt,name=flow_count,json=flowCount,proto3" json:"flow_count,omitempty"`
983 Flows []*openolt.Flow `protobuf:"bytes,2,rep,name=flows,proto3" json:"flows,omitempty"`
984 XXX_NoUnkeyedLiteral struct{} `json:"-"`
985 XXX_unrecognized []byte `json:"-"`
986 XXX_sizecache int32 `json:"-"`
987}
988
989func (m *Flows) Reset() { *m = Flows{} }
990func (m *Flows) String() string { return proto.CompactTextString(m) }
991func (*Flows) ProtoMessage() {}
992func (*Flows) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +0530993 return fileDescriptor_ef7750073d18011b, []int{16}
Pragya Arya8bdb4532020-03-02 17:08:09 +0530994}
995
996func (m *Flows) XXX_Unmarshal(b []byte) error {
997 return xxx_messageInfo_Flows.Unmarshal(m, b)
998}
999func (m *Flows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1000 return xxx_messageInfo_Flows.Marshal(b, m, deterministic)
1001}
1002func (m *Flows) XXX_Merge(src proto.Message) {
1003 xxx_messageInfo_Flows.Merge(m, src)
1004}
1005func (m *Flows) XXX_Size() int {
1006 return xxx_messageInfo_Flows.Size(m)
1007}
1008func (m *Flows) XXX_DiscardUnknown() {
1009 xxx_messageInfo_Flows.DiscardUnknown(m)
1010}
1011
1012var xxx_messageInfo_Flows proto.InternalMessageInfo
1013
1014func (m *Flows) GetFlowCount() uint32 {
1015 if m != nil {
1016 return m.FlowCount
1017 }
1018 return 0
1019}
1020
1021func (m *Flows) GetFlows() []*openolt.Flow {
1022 if m != nil {
1023 return m.Flows
1024 }
1025 return nil
1026}
1027
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001028type Empty struct {
1029 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1030 XXX_unrecognized []byte `json:"-"`
1031 XXX_sizecache int32 `json:"-"`
1032}
1033
1034func (m *Empty) Reset() { *m = Empty{} }
1035func (m *Empty) String() string { return proto.CompactTextString(m) }
1036func (*Empty) ProtoMessage() {}
1037func (*Empty) Descriptor() ([]byte, []int) {
Pragya Aryabd731ec2020-02-11 16:38:17 +05301038 return fileDescriptor_ef7750073d18011b, []int{17}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001039}
1040
1041func (m *Empty) XXX_Unmarshal(b []byte) error {
1042 return xxx_messageInfo_Empty.Unmarshal(m, b)
1043}
1044func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1045 return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
1046}
1047func (m *Empty) XXX_Merge(src proto.Message) {
1048 xxx_messageInfo_Empty.Merge(m, src)
1049}
1050func (m *Empty) XXX_Size() int {
1051 return xxx_messageInfo_Empty.Size(m)
1052}
1053func (m *Empty) XXX_DiscardUnknown() {
1054 xxx_messageInfo_Empty.DiscardUnknown(m)
1055}
1056
1057var xxx_messageInfo_Empty proto.InternalMessageInfo
1058
1059func init() {
Arjun E K57a7fcb2020-01-30 06:44:45 +00001060 proto.RegisterEnum("bbsim.SubActionTypes", SubActionTypes_name, SubActionTypes_value)
Scott Baker41724b82020-01-21 19:54:53 -08001061 proto.RegisterEnum("bbsim.AlarmType_Types", AlarmType_Types_name, AlarmType_Types_value)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001062 proto.RegisterType((*PONPort)(nil), "bbsim.PONPort")
1063 proto.RegisterType((*NNIPort)(nil), "bbsim.NNIPort")
1064 proto.RegisterType((*Olt)(nil), "bbsim.Olt")
1065 proto.RegisterType((*ONU)(nil), "bbsim.ONU")
Anand S Katti09541352020-01-29 15:54:01 +05301066 proto.RegisterType((*ONUTrafficSchedulers)(nil), "bbsim.ONUTrafficSchedulers")
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001067 proto.RegisterType((*ONUs)(nil), "bbsim.ONUs")
1068 proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest")
Pragya Aryabd731ec2020-02-11 16:38:17 +05301069 proto.RegisterType((*PONRequest)(nil), "bbsim.PONRequest")
Scott Baker41724b82020-01-21 19:54:53 -08001070 proto.RegisterType((*AlarmType)(nil), "bbsim.AlarmType")
1071 proto.RegisterType((*AlarmParameter)(nil), "bbsim.AlarmParameter")
Anand S Katti86552f92020-03-03 21:56:32 +05301072 proto.RegisterType((*ONUAlarmRequest)(nil), "bbsim.ONUAlarmRequest")
1073 proto.RegisterType((*OLTAlarmRequest)(nil), "bbsim.OLTAlarmRequest")
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001074 proto.RegisterType((*VersionNumber)(nil), "bbsim.VersionNumber")
1075 proto.RegisterType((*LogLevel)(nil), "bbsim.LogLevel")
1076 proto.RegisterType((*Response)(nil), "bbsim.Response")
Arjun E K57a7fcb2020-01-30 06:44:45 +00001077 proto.RegisterType((*IgmpRequest)(nil), "bbsim.IgmpRequest")
Pragya Arya8bdb4532020-03-02 17:08:09 +05301078 proto.RegisterType((*Flows)(nil), "bbsim.Flows")
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001079 proto.RegisterType((*Empty)(nil), "bbsim.Empty")
1080}
1081
Matteo Scandolof65e6872020-04-15 15:18:43 -07001082func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) }
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001083
1084var fileDescriptor_ef7750073d18011b = []byte{
Pragya Aryabd731ec2020-02-11 16:38:17 +05301085 // 1353 bytes of a gzipped FileDescriptorProto
1086 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdd, 0x72, 0x9b, 0xd6,
1087 0x16, 0xd6, 0x8f, 0xf5, 0xb7, 0x64, 0xc9, 0x78, 0x27, 0x76, 0x18, 0xc7, 0xe7, 0xc4, 0xc3, 0xc9,
1088 0x39, 0xe3, 0x64, 0x4e, 0x9c, 0xc6, 0x6e, 0xa7, 0xc9, 0x25, 0x96, 0xb0, 0x42, 0x2d, 0x03, 0xb3,
1089 0x41, 0xce, 0xe4, 0x8a, 0xc1, 0xd2, 0xb6, 0xc5, 0x0c, 0x02, 0x05, 0x50, 0x3c, 0x79, 0x80, 0xbe,
1090 0x48, 0x9f, 0xa8, 0x4f, 0xd0, 0x5e, 0xf5, 0x21, 0x7a, 0xd7, 0xd9, 0x9b, 0x0d, 0x02, 0x4b, 0xe9,
1091 0xa8, 0xbd, 0xe9, 0x8d, 0x66, 0xaf, 0x6f, 0x7d, 0xeb, 0x7f, 0xb3, 0x40, 0xb0, 0xe7, 0xcc, 0xdd,
1092 0xd7, 0x37, 0x37, 0x91, 0x3b, 0x4b, 0x7e, 0x4f, 0xe6, 0x61, 0x10, 0x07, 0xa8, 0xc6, 0x84, 0x83,
1093 0xa7, 0x9f, 0x03, 0x2f, 0x9e, 0x3a, 0x36, 0x03, 0xa3, 0xd7, 0xc1, 0x9c, 0xf8, 0x81, 0x17, 0x27,
1094 0x9c, 0x83, 0xa3, 0xa2, 0x32, 0x26, 0xe3, 0x29, 0x3d, 0xdf, 0xba, 0x1e, 0x49, 0x18, 0xd2, 0xf7,
1095 0xd0, 0x30, 0x74, 0xcd, 0x08, 0xc2, 0x18, 0x75, 0xa1, 0xa2, 0xf6, 0xc5, 0xf2, 0x51, 0xf9, 0xb8,
1096 0x86, 0x2b, 0x6a, 0x1f, 0x1d, 0x42, 0x4b, 0x9f, 0x93, 0xd0, 0x8c, 0x9d, 0x98, 0x88, 0x95, 0xa3,
1097 0xf2, 0x71, 0x0b, 0x2f, 0x01, 0x6a, 0xa8, 0x69, 0xea, 0xdf, 0x30, 0xfc, 0xad, 0x0c, 0x55, 0xdd,
1098 0x5b, 0xb5, 0x92, 0x60, 0xdb, 0x24, 0xa1, 0xeb, 0x78, 0xda, 0x62, 0x76, 0x43, 0x42, 0x6e, 0x58,
1099 0xc0, 0x8a, 0x9e, 0xab, 0x0f, 0x3c, 0xa3, 0xe7, 0xd0, 0x51, 0xfd, 0x98, 0x84, 0xbe, 0xe3, 0x25,
1100 0x8c, 0x2d, 0xc6, 0x28, 0x82, 0x2c, 0xae, 0x21, 0x36, 0x98, 0xaa, 0xa2, 0x1a, 0xe8, 0x25, 0x34,
1101 0x79, 0x21, 0x91, 0x58, 0x3b, 0xaa, 0x1e, 0xb7, 0x4f, 0xbb, 0x27, 0x49, 0x9f, 0x39, 0x8c, 0x33,
1102 0x3d, 0xe5, 0xf2, 0x6e, 0x45, 0x62, 0xbd, 0xc0, 0xe5, 0x30, 0xce, 0xf4, 0xd2, 0xef, 0xb4, 0x4e,
1103 0x6d, 0xf4, 0x8f, 0xd5, 0x79, 0x08, 0x2d, 0x23, 0xf0, 0x69, 0x2e, 0x6a, 0x5f, 0xac, 0xb1, 0xf0,
1104 0x4b, 0x00, 0x21, 0xd8, 0x32, 0x2d, 0xe7, 0x4e, 0xac, 0x33, 0x05, 0x3b, 0x53, 0xac, 0x47, 0xb1,
1105 0x46, 0x82, 0xd1, 0x33, 0xf5, 0xf2, 0xfe, 0x5e, 0x9e, 0x4c, 0x42, 0x12, 0x45, 0x62, 0x33, 0xc9,
1106 0x24, 0x03, 0xd0, 0x3e, 0xd4, 0xa9, 0x3f, 0x2d, 0x10, 0x5b, 0xcc, 0x86, 0x4b, 0x92, 0x03, 0x8f,
1107 0x75, 0x6d, 0x64, 0x85, 0xce, 0xed, 0xad, 0x3b, 0x36, 0xc7, 0x53, 0x32, 0x59, 0x78, 0x24, 0x8c,
1108 0x90, 0x0a, 0x3b, 0x31, 0x05, 0x97, 0x10, 0x6b, 0x4c, 0xfb, 0xf4, 0xd9, 0x49, 0xe1, 0x6e, 0xae,
1109 0x58, 0xe2, 0x87, 0x76, 0xd2, 0x31, 0x6c, 0xe9, 0xda, 0x28, 0x42, 0x47, 0x50, 0x73, 0x63, 0x32,
1110 0xa3, 0x8e, 0xe8, 0x3c, 0x80, 0xcf, 0x43, 0xd7, 0x46, 0x38, 0x51, 0x48, 0xdf, 0x00, 0x50, 0x89,
1111 0x7c, 0x5a, 0x90, 0x28, 0x5e, 0x69, 0x7f, 0x79, 0xb5, 0xfd, 0xd2, 0x4b, 0x00, 0x43, 0xd7, 0x52,
1112 0x8b, 0x5c, 0x23, 0x27, 0x8c, 0xde, 0x59, 0x36, 0x72, 0x22, 0xfd, 0x52, 0x85, 0x96, 0xec, 0x39,
1113 0xe1, 0xcc, 0xfa, 0x32, 0x27, 0xd2, 0xcf, 0x55, 0xa8, 0xd1, 0x43, 0x84, 0x1a, 0x50, 0x1d, 0xea,
1114 0xa6, 0x50, 0x42, 0x5d, 0x80, 0xfe, 0x47, 0x55, 0x1b, 0xd8, 0x03, 0xd9, 0x34, 0x84, 0x32, 0xea,
1115 0x40, 0x4b, 0xd7, 0x46, 0xb6, 0x3c, 0x94, 0xf1, 0x95, 0x50, 0x41, 0x4f, 0xe0, 0x11, 0x15, 0x4d,
1116 0x4b, 0xc6, 0xd6, 0xc8, 0xb0, 0x2f, 0x64, 0x75, 0x38, 0xc2, 0x8a, 0x50, 0x45, 0xfb, 0x80, 0x98,
1117 0x42, 0x1d, 0x68, 0xf2, 0xd0, 0xee, 0x2b, 0x03, 0x2c, 0xf7, 0x15, 0x61, 0x2b, 0x35, 0xe8, 0x63,
1118 0xf5, 0xc2, 0xb2, 0xf5, 0x0b, 0xfb, 0x83, 0xaa, 0xf5, 0xf5, 0x0f, 0x42, 0x0d, 0x1d, 0x82, 0x48,
1119 0x15, 0x43, 0xdd, 0x34, 0x29, 0xae, 0x5f, 0xf5, 0x54, 0xbb, 0xf7, 0x5e, 0xd6, 0x34, 0x65, 0x28,
1120 0xd4, 0xb3, 0x38, 0xcc, 0x9d, 0x99, 0xc5, 0x69, 0xa0, 0x17, 0xf0, 0x5f, 0xaa, 0xb0, 0xb0, 0xac,
1121 0x99, 0x57, 0xaa, 0x69, 0xaa, 0xba, 0x66, 0xab, 0x9a, 0xa5, 0xe0, 0x0b, 0x05, 0x2b, 0x5a, 0x4f,
1122 0xb1, 0x3f, 0xc8, 0x58, 0x53, 0xb5, 0x81, 0xd0, 0x44, 0x07, 0xb0, 0xcf, 0x52, 0xef, 0x59, 0xea,
1123 0xb5, 0x6c, 0x51, 0x62, 0xea, 0xa6, 0x85, 0x44, 0x36, 0x72, 0xdb, 0xc0, 0x7a, 0x4f, 0x31, 0x4d,
1124 0x5a, 0xaf, 0x82, 0xb1, 0x8e, 0x05, 0x40, 0x47, 0x70, 0x98, 0xcf, 0xeb, 0x52, 0xf9, 0x68, 0x9b,
1125 0x1f, 0xb5, 0x5e, 0x66, 0xdb, 0x46, 0x7b, 0xb0, 0x4b, 0x19, 0xaa, 0x35, 0xb2, 0x0d, 0x5d, 0xa3,
1126 0xbd, 0xb0, 0x4c, 0x61, 0x1b, 0xed, 0x42, 0x27, 0xeb, 0x14, 0x35, 0x17, 0x3a, 0x0f, 0xa1, 0x73,
1127 0xa1, 0x9b, 0x16, 0x96, 0x42, 0x46, 0xcf, 0xa6, 0x55, 0x08, 0x3b, 0x69, 0x3f, 0x0a, 0x8a, 0x1e,
1128 0xcf, 0x4a, 0x40, 0x08, 0xba, 0x79, 0xed, 0x85, 0x2a, 0xec, 0xa2, 0x47, 0xb0, 0x93, 0xc7, 0xe4,
1129 0x2b, 0x55, 0x40, 0xd2, 0x5b, 0xe8, 0xb2, 0xf9, 0x1a, 0x4e, 0xe8, 0xcc, 0x48, 0x4c, 0x42, 0x24,
1130 0x40, 0xf5, 0x92, 0x7c, 0xe1, 0x37, 0x87, 0x1e, 0xd1, 0x63, 0xa8, 0x5d, 0x3b, 0xde, 0x22, 0xdd,
1131 0x76, 0x89, 0x20, 0xfd, 0x54, 0x66, 0xfe, 0x98, 0x75, 0xee, 0x32, 0x65, 0xb7, 0x85, 0x7b, 0x58,
1132 0x02, 0x1b, 0xed, 0x86, 0x7d, 0xa8, 0xd3, 0x07, 0x7c, 0x11, 0xf1, 0xc5, 0xc0, 0x25, 0xf4, 0x1d,
1133 0x40, 0x96, 0x62, 0x24, 0x6e, 0xb1, 0xa7, 0x61, 0x8f, 0x3f, 0x0d, 0xc5, 0x02, 0x70, 0x8e, 0x28,
1134 0x7d, 0x82, 0x1d, 0x7d, 0x68, 0x15, 0x72, 0x3c, 0x82, 0x36, 0x5b, 0x25, 0xb7, 0xce, 0x98, 0xf0,
1135 0xd5, 0xd5, 0xc1, 0x79, 0x28, 0xdb, 0x40, 0x54, 0x64, 0x95, 0x54, 0x72, 0x1b, 0x28, 0x05, 0xbf,
1136 0x96, 0xa9, 0xf4, 0x63, 0x19, 0x3a, 0xd7, 0x24, 0x8c, 0xdc, 0xc0, 0xe7, 0x35, 0x89, 0xd0, 0xf8,
1137 0x9c, 0x00, 0xbc, 0x27, 0xa9, 0x48, 0xfb, 0x75, 0xb3, 0x70, 0xbd, 0x89, 0xe5, 0xce, 0xb2, 0x77,
1138 0x49, 0x06, 0xa0, 0x7f, 0x03, 0x8c, 0x83, 0xd9, 0xcc, 0x8d, 0xdf, 0x3b, 0xd1, 0x94, 0x47, 0xc9,
1139 0x21, 0xd4, 0xfa, 0xce, 0x8d, 0x79, 0x12, 0xc9, 0x96, 0x5c, 0x02, 0xd2, 0x5b, 0x68, 0x0e, 0x83,
1140 0xbb, 0x21, 0xf9, 0x4c, 0x3c, 0x3a, 0x41, 0x8f, 0x1e, 0x78, 0xfc, 0x44, 0xa0, 0x15, 0x8c, 0x1d,
1141 0xcf, 0xe3, 0x93, 0x68, 0x62, 0x2e, 0x49, 0x0a, 0x34, 0x31, 0x89, 0xe6, 0x81, 0x1f, 0x11, 0xf4,
1142 0x0c, 0xda, 0x11, 0xf3, 0x67, 0x8f, 0x83, 0x09, 0xe1, 0x8b, 0x1e, 0x12, 0xa8, 0x17, 0x4c, 0x08,
1143 0x2d, 0x6e, 0x46, 0xa2, 0xc8, 0xb9, 0x4b, 0x0b, 0x48, 0x45, 0x29, 0x82, 0xb6, 0x7a, 0x37, 0x9b,
1144 0xa7, 0x7d, 0x7f, 0x01, 0x75, 0xdd, 0x5f, 0x60, 0xf2, 0x89, 0x2f, 0xc5, 0xdd, 0xdc, 0x2e, 0x4b,
1145 0x28, 0x98, 0x13, 0xd0, 0x3b, 0xd8, 0x36, 0x17, 0x37, 0xf2, 0x38, 0x76, 0x03, 0xff, 0xda, 0xf1,
1146 0x98, 0xe3, 0x6e, 0x36, 0xee, 0x4c, 0xc5, 0x56, 0x11, 0x2e, 0x50, 0xa5, 0x4b, 0xa8, 0x5d, 0x78,
1147 0xc1, 0x7d, 0x84, 0xfe, 0x05, 0x70, 0xeb, 0x05, 0xf7, 0xf6, 0x38, 0x58, 0xf8, 0x71, 0xba, 0xd8,
1148 0x28, 0xd2, 0xa3, 0x00, 0xfa, 0x0f, 0xd4, 0xa8, 0x10, 0x89, 0x15, 0x76, 0x95, 0x3a, 0x27, 0xe9,
1149 0xa7, 0x05, 0xb5, 0xc6, 0x89, 0x4e, 0x6a, 0x40, 0x4d, 0x99, 0xcd, 0xe3, 0x2f, 0x2f, 0xdf, 0x40,
1150 0xb7, 0x18, 0x15, 0x35, 0x61, 0xeb, 0x07, 0x5d, 0xd5, 0x84, 0x12, 0x6a, 0x41, 0x6d, 0xa8, 0xc8,
1151 0xd7, 0x8a, 0x50, 0x46, 0x00, 0x75, 0x0a, 0x5e, 0x9f, 0x09, 0x95, 0xd3, 0x5f, 0x9b, 0x50, 0x3b,
1152 0x3f, 0x37, 0xdd, 0x19, 0x7a, 0x0d, 0x0d, 0x7e, 0x1f, 0xd0, 0x36, 0x2f, 0x81, 0x79, 0x3d, 0x78,
1153 0xcc, 0xa5, 0xc2, 0x6d, 0x91, 0x4a, 0xe8, 0x0d, 0xb4, 0x4d, 0x12, 0x67, 0xc3, 0xdb, 0xe1, 0xb4,
1154 0x14, 0x38, 0x78, 0x08, 0x48, 0x25, 0xf4, 0x1c, 0xea, 0x03, 0x12, 0xd3, 0x0f, 0x8f, 0x62, 0x88,
1155 0xec, 0x85, 0xe1, 0xc5, 0x52, 0x09, 0xbd, 0x02, 0x30, 0x82, 0x7b, 0x12, 0x06, 0xfe, 0x2a, 0x33,
1156 0x75, 0x9a, 0x4e, 0x5e, 0x2a, 0xa1, 0x13, 0x68, 0x9b, 0xd3, 0x45, 0x3c, 0x09, 0xee, 0x37, 0xe3,
1157 0xff, 0x1f, 0x5a, 0x98, 0xdc, 0x04, 0x41, 0xbc, 0x11, 0xfb, 0x45, 0x92, 0xb2, 0x36, 0x42, 0xab,
1158 0x37, 0xe1, 0x20, 0xf7, 0xa2, 0x93, 0x4a, 0xe8, 0x7f, 0xd0, 0x48, 0xa8, 0xd1, 0x03, 0xb7, 0xed,
1159 0x25, 0x2d, 0x92, 0x4a, 0xe8, 0x2c, 0x97, 0xf0, 0x7a, 0xbf, 0x6b, 0xf2, 0x38, 0x85, 0x9d, 0xd4,
1160 0x48, 0xf6, 0xbc, 0x35, 0x41, 0xd6, 0xd8, 0xbc, 0x83, 0xdd, 0x5c, 0xa0, 0x48, 0xf7, 0x0d, 0x5d,
1161 0xcb, 0xc2, 0x2d, 0x5f, 0xae, 0xeb, 0xc3, 0x65, 0x33, 0xd8, 0x38, 0xc5, 0x37, 0xd0, 0xe5, 0x36,
1162 0x1b, 0x67, 0xf8, 0x16, 0x84, 0x65, 0x98, 0xbf, 0x94, 0xe0, 0xb7, 0xb0, 0x8d, 0x49, 0x14, 0x3b,
1163 0x61, 0xac, 0x38, 0xf3, 0xc0, 0xdb, 0x30, 0xc5, 0x33, 0x68, 0x73, 0xab, 0xfe, 0x74, 0x3c, 0xdf,
1164 0xd0, 0xe8, 0x1c, 0xf6, 0x4c, 0x12, 0xeb, 0xfe, 0x82, 0x2d, 0x68, 0xd5, 0x9f, 0xb8, 0x63, 0x87,
1165 0x3e, 0x62, 0x68, 0x7f, 0x69, 0x9e, 0xdf, 0xdd, 0x7f, 0xe2, 0xc3, 0x8b, 0xbf, 0xea, 0xa3, 0xb8,
1166 0xff, 0xd7, 0xf9, 0x78, 0x05, 0xcd, 0x01, 0x89, 0x93, 0xbd, 0xb1, 0x26, 0xf3, 0xb4, 0xd9, 0x8c,
1167 0xc0, 0x7a, 0xbb, 0xd3, 0x9b, 0x3a, 0xfe, 0x1d, 0xa1, 0xeb, 0x2d, 0xf9, 0x1c, 0x45, 0x9c, 0x92,
1168 0x5b, 0x78, 0xeb, 0x02, 0x5d, 0xc2, 0x93, 0x01, 0x2b, 0x78, 0xf5, 0xe3, 0x71, 0x4d, 0xdc, 0xa7,
1169 0x4b, 0x68, 0x85, 0x2f, 0x95, 0x6e, 0xea, 0xec, 0x3f, 0xce, 0xd9, 0x1f, 0x01, 0x00, 0x00, 0xff,
1170 0xff, 0x42, 0x70, 0xbe, 0x17, 0x42, 0x0d, 0x00, 0x00,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001171}
1172
1173// Reference imports to suppress errors if they are not otherwise used.
1174var _ context.Context
Kent Hagerman60d62302020-03-10 17:02:36 -04001175var _ grpc.ClientConn
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001176
1177// This is a compile-time assertion to ensure that this generated file
1178// is compatible with the grpc package it is being compiled against.
Kent Hagerman60d62302020-03-10 17:02:36 -04001179const _ = grpc.SupportPackageIsVersion4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001180
1181// BBSimClient is the client API for BBSim service.
1182//
1183// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1184type BBSimClient interface {
Matteo Scandolof65e6872020-04-15 15:18:43 -07001185 // Get BBSim version
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001186 Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001187 // Set BBSim log level
Pragya Aryabd731ec2020-02-11 16:38:17 +05301188 SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001189 // Get current status of OLT
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001190 GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001191 // Poweron OLT
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001192 PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001193 // Shutdown OLT
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001194 ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001195 // Reboot OLT
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001196 RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001197 // Get status of an ONU by serial number
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001198 GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001199 // Get status of all ONUs
Pragya Aryabd731ec2020-02-11 16:38:17 +05301200 GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001201 // Shutdown an ONU by serial number
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001202 ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001203 // Shutdown all ONUs in OLT
Pragya Aryabd731ec2020-02-11 16:38:17 +05301204 ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001205 // Shutdown all ONUs under a PON by pon-port-ID
Pragya Aryabd731ec2020-02-11 16:38:17 +05301206 ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001207 // Poweron an ONU by serial number
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001208 PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001209 // Poweron all ONUs in OLT
Pragya Aryabd731ec2020-02-11 16:38:17 +05301210 PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001211 // Poweron all ONUs under a PON by pon-port-ID
Pragya Aryabd731ec2020-02-11 16:38:17 +05301212 PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001213 // Restart EAPOL for ONU
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001214 RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001215 // Resatrt DHCP for ONU
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001216 RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001217 // Send ONU alarm indication
Anand S Katti86552f92020-03-03 21:56:32 +05301218 SetOnuAlarmIndication(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001219 // Send OLT alarm indication for Interface type NNI or PON
Anand S Katti86552f92020-03-03 21:56:32 +05301220 SetOltAlarmIndication(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001221 // Get all flows or ONU specific flows
Pragya Arya8bdb4532020-03-02 17:08:09 +05301222 GetFlows(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Flows, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001223 // Chnage IGMP state
Arjun E K57a7fcb2020-01-30 06:44:45 +00001224 ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001225 // Get Traffic scheduler information for ONU
Anand S Katti09541352020-01-29 15:54:01 +05301226 GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001227}
1228
1229type bBSimClient struct {
Kent Hagerman60d62302020-03-10 17:02:36 -04001230 cc *grpc.ClientConn
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001231}
1232
Kent Hagerman60d62302020-03-10 17:02:36 -04001233func NewBBSimClient(cc *grpc.ClientConn) BBSimClient {
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001234 return &bBSimClient{cc}
1235}
1236
1237func (c *bBSimClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) {
1238 out := new(VersionNumber)
1239 err := c.cc.Invoke(ctx, "/bbsim.BBSim/Version", in, out, opts...)
1240 if err != nil {
1241 return nil, err
1242 }
1243 return out, nil
1244}
1245
Pragya Aryabd731ec2020-02-11 16:38:17 +05301246func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) {
1247 out := new(LogLevel)
1248 err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...)
1249 if err != nil {
1250 return nil, err
1251 }
1252 return out, nil
1253}
1254
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001255func (c *bBSimClient) GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) {
1256 out := new(Olt)
1257 err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOlt", in, out, opts...)
1258 if err != nil {
1259 return nil, err
1260 }
1261 return out, nil
1262}
1263
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001264func (c *bBSimClient) PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
1265 out := new(Response)
1266 err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronOlt", in, out, opts...)
1267 if err != nil {
1268 return nil, err
1269 }
1270 return out, nil
1271}
1272
1273func (c *bBSimClient) ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
1274 out := new(Response)
1275 err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownOlt", in, out, opts...)
1276 if err != nil {
1277 return nil, err
1278 }
1279 return out, nil
1280}
1281
1282func (c *bBSimClient) RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
1283 out := new(Response)
1284 err := c.cc.Invoke(ctx, "/bbsim.BBSim/RebootOlt", in, out, opts...)
1285 if err != nil {
1286 return nil, err
1287 }
1288 return out, nil
1289}
1290
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001291func (c *bBSimClient) GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) {
1292 out := new(ONU)
1293 err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONU", in, out, opts...)
1294 if err != nil {
1295 return nil, err
1296 }
1297 return out, nil
1298}
1299
Pragya Aryabd731ec2020-02-11 16:38:17 +05301300func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) {
1301 out := new(ONUs)
1302 err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", in, out, opts...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001303 if err != nil {
1304 return nil, err
1305 }
1306 return out, nil
1307}
1308
1309func (c *bBSimClient) ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
1310 out := new(Response)
1311 err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONU", in, out, opts...)
1312 if err != nil {
1313 return nil, err
1314 }
1315 return out, nil
1316}
1317
Pragya Aryabd731ec2020-02-11 16:38:17 +05301318func (c *bBSimClient) ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
1319 out := new(Response)
1320 err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownAllONUs", in, out, opts...)
1321 if err != nil {
1322 return nil, err
1323 }
1324 return out, nil
1325}
1326
1327func (c *bBSimClient) ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) {
1328 out := new(Response)
1329 err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONUsOnPON", in, out, opts...)
1330 if err != nil {
1331 return nil, err
1332 }
1333 return out, nil
1334}
1335
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001336func (c *bBSimClient) PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
1337 out := new(Response)
1338 err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONU", in, out, opts...)
1339 if err != nil {
1340 return nil, err
1341 }
1342 return out, nil
1343}
1344
Pragya Aryabd731ec2020-02-11 16:38:17 +05301345func (c *bBSimClient) PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
1346 out := new(Response)
1347 err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronAllONUs", in, out, opts...)
1348 if err != nil {
1349 return nil, err
1350 }
1351 return out, nil
1352}
1353
1354func (c *bBSimClient) PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) {
1355 out := new(Response)
1356 err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONUsOnPON", in, out, opts...)
1357 if err != nil {
1358 return nil, err
1359 }
1360 return out, nil
1361}
1362
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001363func (c *bBSimClient) RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
1364 out := new(Response)
1365 err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartEapol", in, out, opts...)
1366 if err != nil {
1367 return nil, err
1368 }
1369 return out, nil
1370}
1371
1372func (c *bBSimClient) RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
1373 out := new(Response)
1374 err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartDhcp", in, out, opts...)
1375 if err != nil {
1376 return nil, err
1377 }
1378 return out, nil
1379}
1380
Anand S Katti86552f92020-03-03 21:56:32 +05301381func (c *bBSimClient) SetOnuAlarmIndication(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*Response, error) {
Scott Baker41724b82020-01-21 19:54:53 -08001382 out := new(Response)
Anand S Katti86552f92020-03-03 21:56:32 +05301383 err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetOnuAlarmIndication", in, out, opts...)
1384 if err != nil {
1385 return nil, err
1386 }
1387 return out, nil
1388}
1389
1390func (c *bBSimClient) SetOltAlarmIndication(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*Response, error) {
1391 out := new(Response)
1392 err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetOltAlarmIndication", in, out, opts...)
Scott Baker41724b82020-01-21 19:54:53 -08001393 if err != nil {
1394 return nil, err
1395 }
1396 return out, nil
1397}
1398
Pragya Arya8bdb4532020-03-02 17:08:09 +05301399func (c *bBSimClient) GetFlows(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Flows, error) {
1400 out := new(Flows)
1401 err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetFlows", in, out, opts...)
1402 if err != nil {
1403 return nil, err
1404 }
1405 return out, nil
1406}
1407
Arjun E K57a7fcb2020-01-30 06:44:45 +00001408func (c *bBSimClient) ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error) {
1409 out := new(Response)
1410 err := c.cc.Invoke(ctx, "/bbsim.BBSim/ChangeIgmpState", in, out, opts...)
1411 if err != nil {
1412 return nil, err
1413 }
1414 return out, nil
1415}
1416
Anand S Katti09541352020-01-29 15:54:01 +05301417func (c *bBSimClient) GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error) {
1418 out := new(ONUTrafficSchedulers)
1419 err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOnuTrafficSchedulers", in, out, opts...)
1420 if err != nil {
1421 return nil, err
1422 }
1423 return out, nil
1424}
1425
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001426// BBSimServer is the server API for BBSim service.
1427type BBSimServer interface {
Matteo Scandolof65e6872020-04-15 15:18:43 -07001428 // Get BBSim version
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001429 Version(context.Context, *Empty) (*VersionNumber, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001430 // Set BBSim log level
Pragya Aryabd731ec2020-02-11 16:38:17 +05301431 SetLogLevel(context.Context, *LogLevel) (*LogLevel, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001432 // Get current status of OLT
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001433 GetOlt(context.Context, *Empty) (*Olt, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001434 // Poweron OLT
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001435 PoweronOlt(context.Context, *Empty) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001436 // Shutdown OLT
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001437 ShutdownOlt(context.Context, *Empty) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001438 // Reboot OLT
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001439 RebootOlt(context.Context, *Empty) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001440 // Get status of an ONU by serial number
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001441 GetONU(context.Context, *ONURequest) (*ONU, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001442 // Get status of all ONUs
Pragya Aryabd731ec2020-02-11 16:38:17 +05301443 GetONUs(context.Context, *Empty) (*ONUs, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001444 // Shutdown an ONU by serial number
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001445 ShutdownONU(context.Context, *ONURequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001446 // Shutdown all ONUs in OLT
Pragya Aryabd731ec2020-02-11 16:38:17 +05301447 ShutdownAllONUs(context.Context, *Empty) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001448 // Shutdown all ONUs under a PON by pon-port-ID
Pragya Aryabd731ec2020-02-11 16:38:17 +05301449 ShutdownONUsOnPON(context.Context, *PONRequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001450 // Poweron an ONU by serial number
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001451 PoweronONU(context.Context, *ONURequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001452 // Poweron all ONUs in OLT
Pragya Aryabd731ec2020-02-11 16:38:17 +05301453 PoweronAllONUs(context.Context, *Empty) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001454 // Poweron all ONUs under a PON by pon-port-ID
Pragya Aryabd731ec2020-02-11 16:38:17 +05301455 PoweronONUsOnPON(context.Context, *PONRequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001456 // Restart EAPOL for ONU
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001457 RestartEapol(context.Context, *ONURequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001458 // Resatrt DHCP for ONU
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001459 RestartDhcp(context.Context, *ONURequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001460 // Send ONU alarm indication
Anand S Katti86552f92020-03-03 21:56:32 +05301461 SetOnuAlarmIndication(context.Context, *ONUAlarmRequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001462 // Send OLT alarm indication for Interface type NNI or PON
Anand S Katti86552f92020-03-03 21:56:32 +05301463 SetOltAlarmIndication(context.Context, *OLTAlarmRequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001464 // Get all flows or ONU specific flows
Pragya Arya8bdb4532020-03-02 17:08:09 +05301465 GetFlows(context.Context, *ONURequest) (*Flows, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001466 // Chnage IGMP state
Arjun E K57a7fcb2020-01-30 06:44:45 +00001467 ChangeIgmpState(context.Context, *IgmpRequest) (*Response, error)
Matteo Scandolof65e6872020-04-15 15:18:43 -07001468 // Get Traffic scheduler information for ONU
Anand S Katti09541352020-01-29 15:54:01 +05301469 GetOnuTrafficSchedulers(context.Context, *ONURequest) (*ONUTrafficSchedulers, error)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001470}
1471
Pragya Aryabd731ec2020-02-11 16:38:17 +05301472// UnimplementedBBSimServer can be embedded to have forward compatible implementations.
1473type UnimplementedBBSimServer struct {
1474}
1475
1476func (*UnimplementedBBSimServer) Version(ctx context.Context, req *Empty) (*VersionNumber, error) {
1477 return nil, status.Errorf(codes.Unimplemented, "method Version not implemented")
1478}
1479func (*UnimplementedBBSimServer) SetLogLevel(ctx context.Context, req *LogLevel) (*LogLevel, error) {
1480 return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented")
1481}
1482func (*UnimplementedBBSimServer) GetOlt(ctx context.Context, req *Empty) (*Olt, error) {
1483 return nil, status.Errorf(codes.Unimplemented, "method GetOlt not implemented")
1484}
1485func (*UnimplementedBBSimServer) PoweronOlt(ctx context.Context, req *Empty) (*Response, error) {
1486 return nil, status.Errorf(codes.Unimplemented, "method PoweronOlt not implemented")
1487}
1488func (*UnimplementedBBSimServer) ShutdownOlt(ctx context.Context, req *Empty) (*Response, error) {
1489 return nil, status.Errorf(codes.Unimplemented, "method ShutdownOlt not implemented")
1490}
1491func (*UnimplementedBBSimServer) RebootOlt(ctx context.Context, req *Empty) (*Response, error) {
1492 return nil, status.Errorf(codes.Unimplemented, "method RebootOlt not implemented")
1493}
1494func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) {
1495 return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented")
1496}
1497func (*UnimplementedBBSimServer) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) {
1498 return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented")
1499}
1500func (*UnimplementedBBSimServer) ShutdownONU(ctx context.Context, req *ONURequest) (*Response, error) {
1501 return nil, status.Errorf(codes.Unimplemented, "method ShutdownONU not implemented")
1502}
1503func (*UnimplementedBBSimServer) ShutdownAllONUs(ctx context.Context, req *Empty) (*Response, error) {
1504 return nil, status.Errorf(codes.Unimplemented, "method ShutdownAllONUs not implemented")
1505}
1506func (*UnimplementedBBSimServer) ShutdownONUsOnPON(ctx context.Context, req *PONRequest) (*Response, error) {
1507 return nil, status.Errorf(codes.Unimplemented, "method ShutdownONUsOnPON not implemented")
1508}
1509func (*UnimplementedBBSimServer) PoweronONU(ctx context.Context, req *ONURequest) (*Response, error) {
1510 return nil, status.Errorf(codes.Unimplemented, "method PoweronONU not implemented")
1511}
1512func (*UnimplementedBBSimServer) PoweronAllONUs(ctx context.Context, req *Empty) (*Response, error) {
1513 return nil, status.Errorf(codes.Unimplemented, "method PoweronAllONUs not implemented")
1514}
1515func (*UnimplementedBBSimServer) PoweronONUsOnPON(ctx context.Context, req *PONRequest) (*Response, error) {
1516 return nil, status.Errorf(codes.Unimplemented, "method PoweronONUsOnPON not implemented")
1517}
1518func (*UnimplementedBBSimServer) RestartEapol(ctx context.Context, req *ONURequest) (*Response, error) {
1519 return nil, status.Errorf(codes.Unimplemented, "method RestartEapol not implemented")
1520}
1521func (*UnimplementedBBSimServer) RestartDhcp(ctx context.Context, req *ONURequest) (*Response, error) {
1522 return nil, status.Errorf(codes.Unimplemented, "method RestartDhcp not implemented")
1523}
1524func (*UnimplementedBBSimServer) SetOnuAlarmIndication(ctx context.Context, req *ONUAlarmRequest) (*Response, error) {
1525 return nil, status.Errorf(codes.Unimplemented, "method SetOnuAlarmIndication not implemented")
1526}
1527func (*UnimplementedBBSimServer) SetOltAlarmIndication(ctx context.Context, req *OLTAlarmRequest) (*Response, error) {
1528 return nil, status.Errorf(codes.Unimplemented, "method SetOltAlarmIndication not implemented")
1529}
1530func (*UnimplementedBBSimServer) GetFlows(ctx context.Context, req *ONURequest) (*Flows, error) {
1531 return nil, status.Errorf(codes.Unimplemented, "method GetFlows not implemented")
1532}
1533func (*UnimplementedBBSimServer) ChangeIgmpState(ctx context.Context, req *IgmpRequest) (*Response, error) {
1534 return nil, status.Errorf(codes.Unimplemented, "method ChangeIgmpState not implemented")
1535}
1536func (*UnimplementedBBSimServer) GetOnuTrafficSchedulers(ctx context.Context, req *ONURequest) (*ONUTrafficSchedulers, error) {
1537 return nil, status.Errorf(codes.Unimplemented, "method GetOnuTrafficSchedulers not implemented")
1538}
1539
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001540func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) {
1541 s.RegisterService(&_BBSim_serviceDesc, srv)
1542}
1543
1544func _BBSim_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1545 in := new(Empty)
1546 if err := dec(in); err != nil {
1547 return nil, err
1548 }
1549 if interceptor == nil {
1550 return srv.(BBSimServer).Version(ctx, in)
1551 }
1552 info := &grpc.UnaryServerInfo{
1553 Server: srv,
1554 FullMethod: "/bbsim.BBSim/Version",
1555 }
1556 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1557 return srv.(BBSimServer).Version(ctx, req.(*Empty))
1558 }
1559 return interceptor(ctx, in, info, handler)
1560}
1561
Pragya Aryabd731ec2020-02-11 16:38:17 +05301562func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1563 in := new(LogLevel)
1564 if err := dec(in); err != nil {
1565 return nil, err
1566 }
1567 if interceptor == nil {
1568 return srv.(BBSimServer).SetLogLevel(ctx, in)
1569 }
1570 info := &grpc.UnaryServerInfo{
1571 Server: srv,
1572 FullMethod: "/bbsim.BBSim/SetLogLevel",
1573 }
1574 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1575 return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel))
1576 }
1577 return interceptor(ctx, in, info, handler)
1578}
1579
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001580func _BBSim_GetOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1581 in := new(Empty)
1582 if err := dec(in); err != nil {
1583 return nil, err
1584 }
1585 if interceptor == nil {
1586 return srv.(BBSimServer).GetOlt(ctx, in)
1587 }
1588 info := &grpc.UnaryServerInfo{
1589 Server: srv,
1590 FullMethod: "/bbsim.BBSim/GetOlt",
1591 }
1592 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1593 return srv.(BBSimServer).GetOlt(ctx, req.(*Empty))
1594 }
1595 return interceptor(ctx, in, info, handler)
1596}
1597
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001598func _BBSim_PoweronOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1599 in := new(Empty)
1600 if err := dec(in); err != nil {
1601 return nil, err
1602 }
1603 if interceptor == nil {
1604 return srv.(BBSimServer).PoweronOlt(ctx, in)
1605 }
1606 info := &grpc.UnaryServerInfo{
1607 Server: srv,
1608 FullMethod: "/bbsim.BBSim/PoweronOlt",
1609 }
1610 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1611 return srv.(BBSimServer).PoweronOlt(ctx, req.(*Empty))
1612 }
1613 return interceptor(ctx, in, info, handler)
1614}
1615
1616func _BBSim_ShutdownOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1617 in := new(Empty)
1618 if err := dec(in); err != nil {
1619 return nil, err
1620 }
1621 if interceptor == nil {
1622 return srv.(BBSimServer).ShutdownOlt(ctx, in)
1623 }
1624 info := &grpc.UnaryServerInfo{
1625 Server: srv,
1626 FullMethod: "/bbsim.BBSim/ShutdownOlt",
1627 }
1628 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1629 return srv.(BBSimServer).ShutdownOlt(ctx, req.(*Empty))
1630 }
1631 return interceptor(ctx, in, info, handler)
1632}
1633
1634func _BBSim_RebootOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1635 in := new(Empty)
1636 if err := dec(in); err != nil {
1637 return nil, err
1638 }
1639 if interceptor == nil {
1640 return srv.(BBSimServer).RebootOlt(ctx, in)
1641 }
1642 info := &grpc.UnaryServerInfo{
1643 Server: srv,
1644 FullMethod: "/bbsim.BBSim/RebootOlt",
1645 }
1646 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1647 return srv.(BBSimServer).RebootOlt(ctx, req.(*Empty))
1648 }
1649 return interceptor(ctx, in, info, handler)
1650}
1651
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001652func _BBSim_GetONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1653 in := new(ONURequest)
1654 if err := dec(in); err != nil {
1655 return nil, err
1656 }
1657 if interceptor == nil {
1658 return srv.(BBSimServer).GetONU(ctx, in)
1659 }
1660 info := &grpc.UnaryServerInfo{
1661 Server: srv,
1662 FullMethod: "/bbsim.BBSim/GetONU",
1663 }
1664 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1665 return srv.(BBSimServer).GetONU(ctx, req.(*ONURequest))
1666 }
1667 return interceptor(ctx, in, info, handler)
1668}
1669
Pragya Aryabd731ec2020-02-11 16:38:17 +05301670func _BBSim_GetONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1671 in := new(Empty)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001672 if err := dec(in); err != nil {
1673 return nil, err
1674 }
1675 if interceptor == nil {
Pragya Aryabd731ec2020-02-11 16:38:17 +05301676 return srv.(BBSimServer).GetONUs(ctx, in)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001677 }
1678 info := &grpc.UnaryServerInfo{
1679 Server: srv,
Pragya Aryabd731ec2020-02-11 16:38:17 +05301680 FullMethod: "/bbsim.BBSim/GetONUs",
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001681 }
1682 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
Pragya Aryabd731ec2020-02-11 16:38:17 +05301683 return srv.(BBSimServer).GetONUs(ctx, req.(*Empty))
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001684 }
1685 return interceptor(ctx, in, info, handler)
1686}
1687
1688func _BBSim_ShutdownONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1689 in := new(ONURequest)
1690 if err := dec(in); err != nil {
1691 return nil, err
1692 }
1693 if interceptor == nil {
1694 return srv.(BBSimServer).ShutdownONU(ctx, in)
1695 }
1696 info := &grpc.UnaryServerInfo{
1697 Server: srv,
1698 FullMethod: "/bbsim.BBSim/ShutdownONU",
1699 }
1700 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1701 return srv.(BBSimServer).ShutdownONU(ctx, req.(*ONURequest))
1702 }
1703 return interceptor(ctx, in, info, handler)
1704}
1705
Pragya Aryabd731ec2020-02-11 16:38:17 +05301706func _BBSim_ShutdownAllONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1707 in := new(Empty)
1708 if err := dec(in); err != nil {
1709 return nil, err
1710 }
1711 if interceptor == nil {
1712 return srv.(BBSimServer).ShutdownAllONUs(ctx, in)
1713 }
1714 info := &grpc.UnaryServerInfo{
1715 Server: srv,
1716 FullMethod: "/bbsim.BBSim/ShutdownAllONUs",
1717 }
1718 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1719 return srv.(BBSimServer).ShutdownAllONUs(ctx, req.(*Empty))
1720 }
1721 return interceptor(ctx, in, info, handler)
1722}
1723
1724func _BBSim_ShutdownONUsOnPON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1725 in := new(PONRequest)
1726 if err := dec(in); err != nil {
1727 return nil, err
1728 }
1729 if interceptor == nil {
1730 return srv.(BBSimServer).ShutdownONUsOnPON(ctx, in)
1731 }
1732 info := &grpc.UnaryServerInfo{
1733 Server: srv,
1734 FullMethod: "/bbsim.BBSim/ShutdownONUsOnPON",
1735 }
1736 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1737 return srv.(BBSimServer).ShutdownONUsOnPON(ctx, req.(*PONRequest))
1738 }
1739 return interceptor(ctx, in, info, handler)
1740}
1741
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001742func _BBSim_PoweronONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1743 in := new(ONURequest)
1744 if err := dec(in); err != nil {
1745 return nil, err
1746 }
1747 if interceptor == nil {
1748 return srv.(BBSimServer).PoweronONU(ctx, in)
1749 }
1750 info := &grpc.UnaryServerInfo{
1751 Server: srv,
1752 FullMethod: "/bbsim.BBSim/PoweronONU",
1753 }
1754 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1755 return srv.(BBSimServer).PoweronONU(ctx, req.(*ONURequest))
1756 }
1757 return interceptor(ctx, in, info, handler)
1758}
1759
Pragya Aryabd731ec2020-02-11 16:38:17 +05301760func _BBSim_PoweronAllONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1761 in := new(Empty)
1762 if err := dec(in); err != nil {
1763 return nil, err
1764 }
1765 if interceptor == nil {
1766 return srv.(BBSimServer).PoweronAllONUs(ctx, in)
1767 }
1768 info := &grpc.UnaryServerInfo{
1769 Server: srv,
1770 FullMethod: "/bbsim.BBSim/PoweronAllONUs",
1771 }
1772 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1773 return srv.(BBSimServer).PoweronAllONUs(ctx, req.(*Empty))
1774 }
1775 return interceptor(ctx, in, info, handler)
1776}
1777
1778func _BBSim_PoweronONUsOnPON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1779 in := new(PONRequest)
1780 if err := dec(in); err != nil {
1781 return nil, err
1782 }
1783 if interceptor == nil {
1784 return srv.(BBSimServer).PoweronONUsOnPON(ctx, in)
1785 }
1786 info := &grpc.UnaryServerInfo{
1787 Server: srv,
1788 FullMethod: "/bbsim.BBSim/PoweronONUsOnPON",
1789 }
1790 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1791 return srv.(BBSimServer).PoweronONUsOnPON(ctx, req.(*PONRequest))
1792 }
1793 return interceptor(ctx, in, info, handler)
1794}
1795
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001796func _BBSim_RestartEapol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1797 in := new(ONURequest)
1798 if err := dec(in); err != nil {
1799 return nil, err
1800 }
1801 if interceptor == nil {
1802 return srv.(BBSimServer).RestartEapol(ctx, in)
1803 }
1804 info := &grpc.UnaryServerInfo{
1805 Server: srv,
1806 FullMethod: "/bbsim.BBSim/RestartEapol",
1807 }
1808 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1809 return srv.(BBSimServer).RestartEapol(ctx, req.(*ONURequest))
1810 }
1811 return interceptor(ctx, in, info, handler)
1812}
1813
1814func _BBSim_RestartDhcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1815 in := new(ONURequest)
1816 if err := dec(in); err != nil {
1817 return nil, err
1818 }
1819 if interceptor == nil {
1820 return srv.(BBSimServer).RestartDhcp(ctx, in)
1821 }
1822 info := &grpc.UnaryServerInfo{
1823 Server: srv,
1824 FullMethod: "/bbsim.BBSim/RestartDhcp",
1825 }
1826 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1827 return srv.(BBSimServer).RestartDhcp(ctx, req.(*ONURequest))
1828 }
1829 return interceptor(ctx, in, info, handler)
1830}
1831
Anand S Katti86552f92020-03-03 21:56:32 +05301832func _BBSim_SetOnuAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1833 in := new(ONUAlarmRequest)
Scott Baker41724b82020-01-21 19:54:53 -08001834 if err := dec(in); err != nil {
1835 return nil, err
1836 }
1837 if interceptor == nil {
Anand S Katti86552f92020-03-03 21:56:32 +05301838 return srv.(BBSimServer).SetOnuAlarmIndication(ctx, in)
Scott Baker41724b82020-01-21 19:54:53 -08001839 }
1840 info := &grpc.UnaryServerInfo{
1841 Server: srv,
Anand S Katti86552f92020-03-03 21:56:32 +05301842 FullMethod: "/bbsim.BBSim/SetOnuAlarmIndication",
Scott Baker41724b82020-01-21 19:54:53 -08001843 }
1844 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
Anand S Katti86552f92020-03-03 21:56:32 +05301845 return srv.(BBSimServer).SetOnuAlarmIndication(ctx, req.(*ONUAlarmRequest))
1846 }
1847 return interceptor(ctx, in, info, handler)
1848}
1849
1850func _BBSim_SetOltAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1851 in := new(OLTAlarmRequest)
1852 if err := dec(in); err != nil {
1853 return nil, err
1854 }
1855 if interceptor == nil {
1856 return srv.(BBSimServer).SetOltAlarmIndication(ctx, in)
1857 }
1858 info := &grpc.UnaryServerInfo{
1859 Server: srv,
1860 FullMethod: "/bbsim.BBSim/SetOltAlarmIndication",
1861 }
1862 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1863 return srv.(BBSimServer).SetOltAlarmIndication(ctx, req.(*OLTAlarmRequest))
Scott Baker41724b82020-01-21 19:54:53 -08001864 }
1865 return interceptor(ctx, in, info, handler)
1866}
1867
Pragya Arya8bdb4532020-03-02 17:08:09 +05301868func _BBSim_GetFlows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1869 in := new(ONURequest)
1870 if err := dec(in); err != nil {
1871 return nil, err
1872 }
1873 if interceptor == nil {
1874 return srv.(BBSimServer).GetFlows(ctx, in)
1875 }
1876 info := &grpc.UnaryServerInfo{
1877 Server: srv,
1878 FullMethod: "/bbsim.BBSim/GetFlows",
1879 }
1880 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1881 return srv.(BBSimServer).GetFlows(ctx, req.(*ONURequest))
1882 }
1883 return interceptor(ctx, in, info, handler)
1884}
1885
Arjun E K57a7fcb2020-01-30 06:44:45 +00001886func _BBSim_ChangeIgmpState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1887 in := new(IgmpRequest)
1888 if err := dec(in); err != nil {
1889 return nil, err
1890 }
1891 if interceptor == nil {
1892 return srv.(BBSimServer).ChangeIgmpState(ctx, in)
1893 }
1894 info := &grpc.UnaryServerInfo{
1895 Server: srv,
1896 FullMethod: "/bbsim.BBSim/ChangeIgmpState",
1897 }
1898 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1899 return srv.(BBSimServer).ChangeIgmpState(ctx, req.(*IgmpRequest))
1900 }
1901 return interceptor(ctx, in, info, handler)
1902}
1903
Anand S Katti09541352020-01-29 15:54:01 +05301904func _BBSim_GetOnuTrafficSchedulers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1905 in := new(ONURequest)
1906 if err := dec(in); err != nil {
1907 return nil, err
1908 }
1909 if interceptor == nil {
1910 return srv.(BBSimServer).GetOnuTrafficSchedulers(ctx, in)
1911 }
1912 info := &grpc.UnaryServerInfo{
1913 Server: srv,
1914 FullMethod: "/bbsim.BBSim/GetOnuTrafficSchedulers",
1915 }
1916 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1917 return srv.(BBSimServer).GetOnuTrafficSchedulers(ctx, req.(*ONURequest))
1918 }
1919 return interceptor(ctx, in, info, handler)
1920}
1921
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001922var _BBSim_serviceDesc = grpc.ServiceDesc{
1923 ServiceName: "bbsim.BBSim",
1924 HandlerType: (*BBSimServer)(nil),
1925 Methods: []grpc.MethodDesc{
1926 {
1927 MethodName: "Version",
1928 Handler: _BBSim_Version_Handler,
1929 },
1930 {
Pragya Aryabd731ec2020-02-11 16:38:17 +05301931 MethodName: "SetLogLevel",
1932 Handler: _BBSim_SetLogLevel_Handler,
1933 },
1934 {
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001935 MethodName: "GetOlt",
1936 Handler: _BBSim_GetOlt_Handler,
1937 },
1938 {
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001939 MethodName: "PoweronOlt",
1940 Handler: _BBSim_PoweronOlt_Handler,
1941 },
1942 {
1943 MethodName: "ShutdownOlt",
1944 Handler: _BBSim_ShutdownOlt_Handler,
1945 },
1946 {
1947 MethodName: "RebootOlt",
1948 Handler: _BBSim_RebootOlt_Handler,
1949 },
1950 {
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001951 MethodName: "GetONU",
1952 Handler: _BBSim_GetONU_Handler,
1953 },
1954 {
Pragya Aryabd731ec2020-02-11 16:38:17 +05301955 MethodName: "GetONUs",
1956 Handler: _BBSim_GetONUs_Handler,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001957 },
1958 {
1959 MethodName: "ShutdownONU",
1960 Handler: _BBSim_ShutdownONU_Handler,
1961 },
1962 {
Pragya Aryabd731ec2020-02-11 16:38:17 +05301963 MethodName: "ShutdownAllONUs",
1964 Handler: _BBSim_ShutdownAllONUs_Handler,
1965 },
1966 {
1967 MethodName: "ShutdownONUsOnPON",
1968 Handler: _BBSim_ShutdownONUsOnPON_Handler,
1969 },
1970 {
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001971 MethodName: "PoweronONU",
1972 Handler: _BBSim_PoweronONU_Handler,
1973 },
1974 {
Pragya Aryabd731ec2020-02-11 16:38:17 +05301975 MethodName: "PoweronAllONUs",
1976 Handler: _BBSim_PoweronAllONUs_Handler,
1977 },
1978 {
1979 MethodName: "PoweronONUsOnPON",
1980 Handler: _BBSim_PoweronONUsOnPON_Handler,
1981 },
1982 {
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001983 MethodName: "RestartEapol",
1984 Handler: _BBSim_RestartEapol_Handler,
1985 },
1986 {
1987 MethodName: "RestartDhcp",
1988 Handler: _BBSim_RestartDhcp_Handler,
1989 },
Scott Baker41724b82020-01-21 19:54:53 -08001990 {
Anand S Katti86552f92020-03-03 21:56:32 +05301991 MethodName: "SetOnuAlarmIndication",
1992 Handler: _BBSim_SetOnuAlarmIndication_Handler,
1993 },
1994 {
1995 MethodName: "SetOltAlarmIndication",
1996 Handler: _BBSim_SetOltAlarmIndication_Handler,
Scott Baker41724b82020-01-21 19:54:53 -08001997 },
Arjun E K57a7fcb2020-01-30 06:44:45 +00001998 {
Pragya Arya8bdb4532020-03-02 17:08:09 +05301999 MethodName: "GetFlows",
2000 Handler: _BBSim_GetFlows_Handler,
2001 },
2002 {
Arjun E K57a7fcb2020-01-30 06:44:45 +00002003 MethodName: "ChangeIgmpState",
2004 Handler: _BBSim_ChangeIgmpState_Handler,
2005 },
Anand S Katti09541352020-01-29 15:54:01 +05302006 {
2007 MethodName: "GetOnuTrafficSchedulers",
2008 Handler: _BBSim_GetOnuTrafficSchedulers_Handler,
2009 },
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07002010 },
2011 Streams: []grpc.StreamDesc{},
2012 Metadata: "api/bbsim/bbsim.proto",
2013}