blob: ad35c64058ece99bbd2bf773a9e07c82e5de1d1b [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: api/legacy/bbsim.proto
3
4package legacy
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
11 openolt "github.com/opencord/voltha-protos/v2/go/openolt"
12 tech_profile "github.com/opencord/voltha-protos/v2/go/tech_profile"
13 _ "google.golang.org/genproto/googleapis/api/annotations"
14 grpc "google.golang.org/grpc"
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
29// OLT information
30//
31// Deprecated: Do not use.
32type OLTInfo struct {
33 OltId int64 `protobuf:"varint,1,opt,name=olt_id,json=oltId,proto3" json:"olt_id,omitempty"`
34 OltSerial string `protobuf:"bytes,2,opt,name=olt_serial,json=oltSerial,proto3" json:"olt_serial,omitempty"`
35 OltIp string `protobuf:"bytes,3,opt,name=olt_ip,json=oltIp,proto3" json:"olt_ip,omitempty"`
36 OltState string `protobuf:"bytes,4,opt,name=olt_state,json=oltState,proto3" json:"olt_state,omitempty"`
37 OltVendor string `protobuf:"bytes,5,opt,name=olt_vendor,json=oltVendor,proto3" json:"olt_vendor,omitempty"`
38 XXX_NoUnkeyedLiteral struct{} `json:"-"`
39 XXX_unrecognized []byte `json:"-"`
40 XXX_sizecache int32 `json:"-"`
41}
42
43func (m *OLTInfo) Reset() { *m = OLTInfo{} }
44func (m *OLTInfo) String() string { return proto.CompactTextString(m) }
45func (*OLTInfo) ProtoMessage() {}
46func (*OLTInfo) Descriptor() ([]byte, []int) {
47 return fileDescriptor_6ea2bed57327b60e, []int{0}
48}
49
50func (m *OLTInfo) XXX_Unmarshal(b []byte) error {
51 return xxx_messageInfo_OLTInfo.Unmarshal(m, b)
52}
53func (m *OLTInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
54 return xxx_messageInfo_OLTInfo.Marshal(b, m, deterministic)
55}
56func (m *OLTInfo) XXX_Merge(src proto.Message) {
57 xxx_messageInfo_OLTInfo.Merge(m, src)
58}
59func (m *OLTInfo) XXX_Size() int {
60 return xxx_messageInfo_OLTInfo.Size(m)
61}
62func (m *OLTInfo) XXX_DiscardUnknown() {
63 xxx_messageInfo_OLTInfo.DiscardUnknown(m)
64}
65
66var xxx_messageInfo_OLTInfo proto.InternalMessageInfo
67
68func (m *OLTInfo) GetOltId() int64 {
69 if m != nil {
70 return m.OltId
71 }
72 return 0
73}
74
75func (m *OLTInfo) GetOltSerial() string {
76 if m != nil {
77 return m.OltSerial
78 }
79 return ""
80}
81
82func (m *OLTInfo) GetOltIp() string {
83 if m != nil {
84 return m.OltIp
85 }
86 return ""
87}
88
89func (m *OLTInfo) GetOltState() string {
90 if m != nil {
91 return m.OltState
92 }
93 return ""
94}
95
96func (m *OLTInfo) GetOltVendor() string {
97 if m != nil {
98 return m.OltVendor
99 }
100 return ""
101}
102
103// ONU information
104type ONUInfo struct {
105 OnuId uint32 `protobuf:"varint,1,opt,name=onu_id,json=onuId,proto3" json:"onu_id,omitempty"`
106 PonPortId uint32 `protobuf:"varint,2,opt,name=pon_port_id,json=ponPortId,proto3" json:"pon_port_id,omitempty"`
107 // ONU serial number
108 OnuSerial string `protobuf:"bytes,3,opt,name=onu_serial,json=onuSerial,proto3" json:"onu_serial,omitempty"`
109 // ONU oper state
110 OperState string `protobuf:"bytes,4,opt,name=oper_state,json=operState,proto3" json:"oper_state,omitempty"`
111 // ONU internal state
112 OnuState string `protobuf:"bytes,5,opt,name=onu_state,json=onuState,proto3" json:"onu_state,omitempty"`
113 Gemports []uint32 `protobuf:"varint,6,rep,packed,name=gemports,proto3" json:"gemports,omitempty"`
114 Tconts *Tconts `protobuf:"bytes,7,opt,name=tconts,proto3" json:"tconts,omitempty"`
115 XXX_NoUnkeyedLiteral struct{} `json:"-"`
116 XXX_unrecognized []byte `json:"-"`
117 XXX_sizecache int32 `json:"-"`
118}
119
120func (m *ONUInfo) Reset() { *m = ONUInfo{} }
121func (m *ONUInfo) String() string { return proto.CompactTextString(m) }
122func (*ONUInfo) ProtoMessage() {}
123func (*ONUInfo) Descriptor() ([]byte, []int) {
124 return fileDescriptor_6ea2bed57327b60e, []int{1}
125}
126
127func (m *ONUInfo) XXX_Unmarshal(b []byte) error {
128 return xxx_messageInfo_ONUInfo.Unmarshal(m, b)
129}
130func (m *ONUInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
131 return xxx_messageInfo_ONUInfo.Marshal(b, m, deterministic)
132}
133func (m *ONUInfo) XXX_Merge(src proto.Message) {
134 xxx_messageInfo_ONUInfo.Merge(m, src)
135}
136func (m *ONUInfo) XXX_Size() int {
137 return xxx_messageInfo_ONUInfo.Size(m)
138}
139func (m *ONUInfo) XXX_DiscardUnknown() {
140 xxx_messageInfo_ONUInfo.DiscardUnknown(m)
141}
142
143var xxx_messageInfo_ONUInfo proto.InternalMessageInfo
144
145func (m *ONUInfo) GetOnuId() uint32 {
146 if m != nil {
147 return m.OnuId
148 }
149 return 0
150}
151
152func (m *ONUInfo) GetPonPortId() uint32 {
153 if m != nil {
154 return m.PonPortId
155 }
156 return 0
157}
158
159func (m *ONUInfo) GetOnuSerial() string {
160 if m != nil {
161 return m.OnuSerial
162 }
163 return ""
164}
165
166func (m *ONUInfo) GetOperState() string {
167 if m != nil {
168 return m.OperState
169 }
170 return ""
171}
172
173func (m *ONUInfo) GetOnuState() string {
174 if m != nil {
175 return m.OnuState
176 }
177 return ""
178}
179
180func (m *ONUInfo) GetGemports() []uint32 {
181 if m != nil {
182 return m.Gemports
183 }
184 return nil
185}
186
187func (m *ONUInfo) GetTconts() *Tconts {
188 if m != nil {
189 return m.Tconts
190 }
191 return nil
192}
193
194// Bulk ONU operations
195type ONUs struct {
196 Onus []*ONUInfo `protobuf:"bytes,1,rep,name=onus,proto3" json:"onus,omitempty"`
197 XXX_NoUnkeyedLiteral struct{} `json:"-"`
198 XXX_unrecognized []byte `json:"-"`
199 XXX_sizecache int32 `json:"-"`
200}
201
202func (m *ONUs) Reset() { *m = ONUs{} }
203func (m *ONUs) String() string { return proto.CompactTextString(m) }
204func (*ONUs) ProtoMessage() {}
205func (*ONUs) Descriptor() ([]byte, []int) {
206 return fileDescriptor_6ea2bed57327b60e, []int{2}
207}
208
209func (m *ONUs) XXX_Unmarshal(b []byte) error {
210 return xxx_messageInfo_ONUs.Unmarshal(m, b)
211}
212func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
213 return xxx_messageInfo_ONUs.Marshal(b, m, deterministic)
214}
215func (m *ONUs) XXX_Merge(src proto.Message) {
216 xxx_messageInfo_ONUs.Merge(m, src)
217}
218func (m *ONUs) XXX_Size() int {
219 return xxx_messageInfo_ONUs.Size(m)
220}
221func (m *ONUs) XXX_DiscardUnknown() {
222 xxx_messageInfo_ONUs.DiscardUnknown(m)
223}
224
225var xxx_messageInfo_ONUs proto.InternalMessageInfo
226
227func (m *ONUs) GetOnus() []*ONUInfo {
228 if m != nil {
229 return m.Onus
230 }
231 return nil
232}
233
234type ONURequest struct {
235 Onu *ONUInfo `protobuf:"bytes,1,opt,name=onu,proto3" json:"onu,omitempty"`
236 OnusBatch *ONUs `protobuf:"bytes,2,opt,name=onus_batch,json=onusBatch,proto3" json:"onus_batch,omitempty"`
237 XXX_NoUnkeyedLiteral struct{} `json:"-"`
238 XXX_unrecognized []byte `json:"-"`
239 XXX_sizecache int32 `json:"-"`
240}
241
242func (m *ONURequest) Reset() { *m = ONURequest{} }
243func (m *ONURequest) String() string { return proto.CompactTextString(m) }
244func (*ONURequest) ProtoMessage() {}
245func (*ONURequest) Descriptor() ([]byte, []int) {
246 return fileDescriptor_6ea2bed57327b60e, []int{3}
247}
248
249func (m *ONURequest) XXX_Unmarshal(b []byte) error {
250 return xxx_messageInfo_ONURequest.Unmarshal(m, b)
251}
252func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
253 return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic)
254}
255func (m *ONURequest) XXX_Merge(src proto.Message) {
256 xxx_messageInfo_ONURequest.Merge(m, src)
257}
258func (m *ONURequest) XXX_Size() int {
259 return xxx_messageInfo_ONURequest.Size(m)
260}
261func (m *ONURequest) XXX_DiscardUnknown() {
262 xxx_messageInfo_ONURequest.DiscardUnknown(m)
263}
264
265var xxx_messageInfo_ONURequest proto.InternalMessageInfo
266
267func (m *ONURequest) GetOnu() *ONUInfo {
268 if m != nil {
269 return m.Onu
270 }
271 return nil
272}
273
274func (m *ONURequest) GetOnusBatch() *ONUs {
275 if m != nil {
276 return m.OnusBatch
277 }
278 return nil
279}
280
281// Port information
282type PortInfo struct {
283 PortType string `protobuf:"bytes,1,opt,name=port_type,json=portType,proto3" json:"port_type,omitempty"`
284 PortId uint32 `protobuf:"varint,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
285 PonPortMaxOnus uint32 `protobuf:"varint,3,opt,name=pon_port_max_onus,json=ponPortMaxOnus,proto3" json:"pon_port_max_onus,omitempty"`
286 PonPortActiveOnus uint32 `protobuf:"varint,4,opt,name=pon_port_active_onus,json=ponPortActiveOnus,proto3" json:"pon_port_active_onus,omitempty"`
287 PortState string `protobuf:"bytes,5,opt,name=port_state,json=portState,proto3" json:"port_state,omitempty"`
288 AlarmState string `protobuf:"bytes,6,opt,name=alarm_state,json=alarmState,proto3" json:"alarm_state,omitempty"`
289 XXX_NoUnkeyedLiteral struct{} `json:"-"`
290 XXX_unrecognized []byte `json:"-"`
291 XXX_sizecache int32 `json:"-"`
292}
293
294func (m *PortInfo) Reset() { *m = PortInfo{} }
295func (m *PortInfo) String() string { return proto.CompactTextString(m) }
296func (*PortInfo) ProtoMessage() {}
297func (*PortInfo) Descriptor() ([]byte, []int) {
298 return fileDescriptor_6ea2bed57327b60e, []int{4}
299}
300
301func (m *PortInfo) XXX_Unmarshal(b []byte) error {
302 return xxx_messageInfo_PortInfo.Unmarshal(m, b)
303}
304func (m *PortInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
305 return xxx_messageInfo_PortInfo.Marshal(b, m, deterministic)
306}
307func (m *PortInfo) XXX_Merge(src proto.Message) {
308 xxx_messageInfo_PortInfo.Merge(m, src)
309}
310func (m *PortInfo) XXX_Size() int {
311 return xxx_messageInfo_PortInfo.Size(m)
312}
313func (m *PortInfo) XXX_DiscardUnknown() {
314 xxx_messageInfo_PortInfo.DiscardUnknown(m)
315}
316
317var xxx_messageInfo_PortInfo proto.InternalMessageInfo
318
319func (m *PortInfo) GetPortType() string {
320 if m != nil {
321 return m.PortType
322 }
323 return ""
324}
325
326func (m *PortInfo) GetPortId() uint32 {
327 if m != nil {
328 return m.PortId
329 }
330 return 0
331}
332
333func (m *PortInfo) GetPonPortMaxOnus() uint32 {
334 if m != nil {
335 return m.PonPortMaxOnus
336 }
337 return 0
338}
339
340func (m *PortInfo) GetPonPortActiveOnus() uint32 {
341 if m != nil {
342 return m.PonPortActiveOnus
343 }
344 return 0
345}
346
347func (m *PortInfo) GetPortState() string {
348 if m != nil {
349 return m.PortState
350 }
351 return ""
352}
353
354func (m *PortInfo) GetAlarmState() string {
355 if m != nil {
356 return m.AlarmState
357 }
358 return ""
359}
360
361// Bulk port information
362type Ports struct {
363 Ports []*PortInfo `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"`
364 XXX_NoUnkeyedLiteral struct{} `json:"-"`
365 XXX_unrecognized []byte `json:"-"`
366 XXX_sizecache int32 `json:"-"`
367}
368
369func (m *Ports) Reset() { *m = Ports{} }
370func (m *Ports) String() string { return proto.CompactTextString(m) }
371func (*Ports) ProtoMessage() {}
372func (*Ports) Descriptor() ([]byte, []int) {
373 return fileDescriptor_6ea2bed57327b60e, []int{5}
374}
375
376func (m *Ports) XXX_Unmarshal(b []byte) error {
377 return xxx_messageInfo_Ports.Unmarshal(m, b)
378}
379func (m *Ports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
380 return xxx_messageInfo_Ports.Marshal(b, m, deterministic)
381}
382func (m *Ports) XXX_Merge(src proto.Message) {
383 xxx_messageInfo_Ports.Merge(m, src)
384}
385func (m *Ports) XXX_Size() int {
386 return xxx_messageInfo_Ports.Size(m)
387}
388func (m *Ports) XXX_DiscardUnknown() {
389 xxx_messageInfo_Ports.DiscardUnknown(m)
390}
391
392var xxx_messageInfo_Ports proto.InternalMessageInfo
393
394func (m *Ports) GetPorts() []*PortInfo {
395 if m != nil {
396 return m.Ports
397 }
398 return nil
399}
400
401// BBSim status
402type OLTStatusResponse struct {
403 Olt *OLTInfo `protobuf:"bytes,1,opt,name=olt,proto3" json:"olt,omitempty"`
404 Ports []*PortInfo `protobuf:"bytes,2,rep,name=ports,proto3" json:"ports,omitempty"`
405 XXX_NoUnkeyedLiteral struct{} `json:"-"`
406 XXX_unrecognized []byte `json:"-"`
407 XXX_sizecache int32 `json:"-"`
408}
409
410func (m *OLTStatusResponse) Reset() { *m = OLTStatusResponse{} }
411func (m *OLTStatusResponse) String() string { return proto.CompactTextString(m) }
412func (*OLTStatusResponse) ProtoMessage() {}
413func (*OLTStatusResponse) Descriptor() ([]byte, []int) {
414 return fileDescriptor_6ea2bed57327b60e, []int{6}
415}
416
417func (m *OLTStatusResponse) XXX_Unmarshal(b []byte) error {
418 return xxx_messageInfo_OLTStatusResponse.Unmarshal(m, b)
419}
420func (m *OLTStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
421 return xxx_messageInfo_OLTStatusResponse.Marshal(b, m, deterministic)
422}
423func (m *OLTStatusResponse) XXX_Merge(src proto.Message) {
424 xxx_messageInfo_OLTStatusResponse.Merge(m, src)
425}
426func (m *OLTStatusResponse) XXX_Size() int {
427 return xxx_messageInfo_OLTStatusResponse.Size(m)
428}
429func (m *OLTStatusResponse) XXX_DiscardUnknown() {
430 xxx_messageInfo_OLTStatusResponse.DiscardUnknown(m)
431}
432
433var xxx_messageInfo_OLTStatusResponse proto.InternalMessageInfo
434
435func (m *OLTStatusResponse) GetOlt() *OLTInfo {
436 if m != nil {
437 return m.Olt
438 }
439 return nil
440}
441
442func (m *OLTStatusResponse) GetPorts() []*PortInfo {
443 if m != nil {
444 return m.Ports
445 }
446 return nil
447}
448
449// BBSim response message
450type BBSimResponse struct {
451 StatusMsg string `protobuf:"bytes,1,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"`
452 XXX_NoUnkeyedLiteral struct{} `json:"-"`
453 XXX_unrecognized []byte `json:"-"`
454 XXX_sizecache int32 `json:"-"`
455}
456
457func (m *BBSimResponse) Reset() { *m = BBSimResponse{} }
458func (m *BBSimResponse) String() string { return proto.CompactTextString(m) }
459func (*BBSimResponse) ProtoMessage() {}
460func (*BBSimResponse) Descriptor() ([]byte, []int) {
461 return fileDescriptor_6ea2bed57327b60e, []int{7}
462}
463
464func (m *BBSimResponse) XXX_Unmarshal(b []byte) error {
465 return xxx_messageInfo_BBSimResponse.Unmarshal(m, b)
466}
467func (m *BBSimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
468 return xxx_messageInfo_BBSimResponse.Marshal(b, m, deterministic)
469}
470func (m *BBSimResponse) XXX_Merge(src proto.Message) {
471 xxx_messageInfo_BBSimResponse.Merge(m, src)
472}
473func (m *BBSimResponse) XXX_Size() int {
474 return xxx_messageInfo_BBSimResponse.Size(m)
475}
476func (m *BBSimResponse) XXX_DiscardUnknown() {
477 xxx_messageInfo_BBSimResponse.DiscardUnknown(m)
478}
479
480var xxx_messageInfo_BBSimResponse proto.InternalMessageInfo
481
482func (m *BBSimResponse) GetStatusMsg() string {
483 if m != nil {
484 return m.StatusMsg
485 }
486 return ""
487}
488
489// ONU alarm request
490type ONUAlarmRequest struct {
491 // ONU serial number
492 OnuSerial string `protobuf:"bytes,1,opt,name=onu_serial,json=onuSerial,proto3" json:"onu_serial,omitempty"`
493 // Alarm types are:
494 // "signaldegrade"
495 // "lossofomcichannel"
496 // "lossofploam"
497 AlarmType string `protobuf:"bytes,2,opt,name=alarm_type,json=alarmType,proto3" json:"alarm_type,omitempty"`
498 // "on"/"off" indicates raised or cleared alarm
499 Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
500 XXX_NoUnkeyedLiteral struct{} `json:"-"`
501 XXX_unrecognized []byte `json:"-"`
502 XXX_sizecache int32 `json:"-"`
503}
504
505func (m *ONUAlarmRequest) Reset() { *m = ONUAlarmRequest{} }
506func (m *ONUAlarmRequest) String() string { return proto.CompactTextString(m) }
507func (*ONUAlarmRequest) ProtoMessage() {}
508func (*ONUAlarmRequest) Descriptor() ([]byte, []int) {
509 return fileDescriptor_6ea2bed57327b60e, []int{8}
510}
511
512func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error {
513 return xxx_messageInfo_ONUAlarmRequest.Unmarshal(m, b)
514}
515func (m *ONUAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
516 return xxx_messageInfo_ONUAlarmRequest.Marshal(b, m, deterministic)
517}
518func (m *ONUAlarmRequest) XXX_Merge(src proto.Message) {
519 xxx_messageInfo_ONUAlarmRequest.Merge(m, src)
520}
521func (m *ONUAlarmRequest) XXX_Size() int {
522 return xxx_messageInfo_ONUAlarmRequest.Size(m)
523}
524func (m *ONUAlarmRequest) XXX_DiscardUnknown() {
525 xxx_messageInfo_ONUAlarmRequest.DiscardUnknown(m)
526}
527
528var xxx_messageInfo_ONUAlarmRequest proto.InternalMessageInfo
529
530func (m *ONUAlarmRequest) GetOnuSerial() string {
531 if m != nil {
532 return m.OnuSerial
533 }
534 return ""
535}
536
537func (m *ONUAlarmRequest) GetAlarmType() string {
538 if m != nil {
539 return m.AlarmType
540 }
541 return ""
542}
543
544func (m *ONUAlarmRequest) GetStatus() string {
545 if m != nil {
546 return m.Status
547 }
548 return ""
549}
550
551// OLT alarm request
552type OLTAlarmRequest struct {
553 PortId uint32 `protobuf:"varint,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
554 PortType string `protobuf:"bytes,2,opt,name=port_type,json=portType,proto3" json:"port_type,omitempty"`
555 Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
556 XXX_NoUnkeyedLiteral struct{} `json:"-"`
557 XXX_unrecognized []byte `json:"-"`
558 XXX_sizecache int32 `json:"-"`
559}
560
561func (m *OLTAlarmRequest) Reset() { *m = OLTAlarmRequest{} }
562func (m *OLTAlarmRequest) String() string { return proto.CompactTextString(m) }
563func (*OLTAlarmRequest) ProtoMessage() {}
564func (*OLTAlarmRequest) Descriptor() ([]byte, []int) {
565 return fileDescriptor_6ea2bed57327b60e, []int{9}
566}
567
568func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error {
569 return xxx_messageInfo_OLTAlarmRequest.Unmarshal(m, b)
570}
571func (m *OLTAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
572 return xxx_messageInfo_OLTAlarmRequest.Marshal(b, m, deterministic)
573}
574func (m *OLTAlarmRequest) XXX_Merge(src proto.Message) {
575 xxx_messageInfo_OLTAlarmRequest.Merge(m, src)
576}
577func (m *OLTAlarmRequest) XXX_Size() int {
578 return xxx_messageInfo_OLTAlarmRequest.Size(m)
579}
580func (m *OLTAlarmRequest) XXX_DiscardUnknown() {
581 xxx_messageInfo_OLTAlarmRequest.DiscardUnknown(m)
582}
583
584var xxx_messageInfo_OLTAlarmRequest proto.InternalMessageInfo
585
586func (m *OLTAlarmRequest) GetPortId() uint32 {
587 if m != nil {
588 return m.PortId
589 }
590 return 0
591}
592
593func (m *OLTAlarmRequest) GetPortType() string {
594 if m != nil {
595 return m.PortType
596 }
597 return ""
598}
599
600func (m *OLTAlarmRequest) GetStatus() string {
601 if m != nil {
602 return m.Status
603 }
604 return ""
605}
606
607// Device action
608type DeviceAction struct {
609 DeviceType string `protobuf:"bytes,1,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
610 SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
611 Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
612 XXX_NoUnkeyedLiteral struct{} `json:"-"`
613 XXX_unrecognized []byte `json:"-"`
614 XXX_sizecache int32 `json:"-"`
615}
616
617func (m *DeviceAction) Reset() { *m = DeviceAction{} }
618func (m *DeviceAction) String() string { return proto.CompactTextString(m) }
619func (*DeviceAction) ProtoMessage() {}
620func (*DeviceAction) Descriptor() ([]byte, []int) {
621 return fileDescriptor_6ea2bed57327b60e, []int{10}
622}
623
624func (m *DeviceAction) XXX_Unmarshal(b []byte) error {
625 return xxx_messageInfo_DeviceAction.Unmarshal(m, b)
626}
627func (m *DeviceAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
628 return xxx_messageInfo_DeviceAction.Marshal(b, m, deterministic)
629}
630func (m *DeviceAction) XXX_Merge(src proto.Message) {
631 xxx_messageInfo_DeviceAction.Merge(m, src)
632}
633func (m *DeviceAction) XXX_Size() int {
634 return xxx_messageInfo_DeviceAction.Size(m)
635}
636func (m *DeviceAction) XXX_DiscardUnknown() {
637 xxx_messageInfo_DeviceAction.DiscardUnknown(m)
638}
639
640var xxx_messageInfo_DeviceAction proto.InternalMessageInfo
641
642func (m *DeviceAction) GetDeviceType() string {
643 if m != nil {
644 return m.DeviceType
645 }
646 return ""
647}
648
649func (m *DeviceAction) GetSerialNumber() string {
650 if m != nil {
651 return m.SerialNumber
652 }
653 return ""
654}
655
656func (m *DeviceAction) GetAction() string {
657 if m != nil {
658 return m.Action
659 }
660 return ""
661}
662
663type Tconts struct {
664 UniId uint32 `protobuf:"fixed32,4,opt,name=uni_id,json=uniId,proto3" json:"uni_id,omitempty"`
665 PortNo uint32 `protobuf:"fixed32,5,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"`
666 Tconts []*tech_profile.TrafficScheduler `protobuf:"bytes,3,rep,name=tconts,proto3" json:"tconts,omitempty"`
667 XXX_NoUnkeyedLiteral struct{} `json:"-"`
668 XXX_unrecognized []byte `json:"-"`
669 XXX_sizecache int32 `json:"-"`
670}
671
672func (m *Tconts) Reset() { *m = Tconts{} }
673func (m *Tconts) String() string { return proto.CompactTextString(m) }
674func (*Tconts) ProtoMessage() {}
675func (*Tconts) Descriptor() ([]byte, []int) {
676 return fileDescriptor_6ea2bed57327b60e, []int{11}
677}
678
679func (m *Tconts) XXX_Unmarshal(b []byte) error {
680 return xxx_messageInfo_Tconts.Unmarshal(m, b)
681}
682func (m *Tconts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
683 return xxx_messageInfo_Tconts.Marshal(b, m, deterministic)
684}
685func (m *Tconts) XXX_Merge(src proto.Message) {
686 xxx_messageInfo_Tconts.Merge(m, src)
687}
688func (m *Tconts) XXX_Size() int {
689 return xxx_messageInfo_Tconts.Size(m)
690}
691func (m *Tconts) XXX_DiscardUnknown() {
692 xxx_messageInfo_Tconts.DiscardUnknown(m)
693}
694
695var xxx_messageInfo_Tconts proto.InternalMessageInfo
696
697func (m *Tconts) GetUniId() uint32 {
698 if m != nil {
699 return m.UniId
700 }
701 return 0
702}
703
704func (m *Tconts) GetPortNo() uint32 {
705 if m != nil {
706 return m.PortNo
707 }
708 return 0
709}
710
711func (m *Tconts) GetTconts() []*tech_profile.TrafficScheduler {
712 if m != nil {
713 return m.Tconts
714 }
715 return nil
716}
717
718type Flows struct {
719 Flows []*openolt.Flow `protobuf:"bytes,1,rep,name=flows,proto3" json:"flows,omitempty"`
720 XXX_NoUnkeyedLiteral struct{} `json:"-"`
721 XXX_unrecognized []byte `json:"-"`
722 XXX_sizecache int32 `json:"-"`
723}
724
725func (m *Flows) Reset() { *m = Flows{} }
726func (m *Flows) String() string { return proto.CompactTextString(m) }
727func (*Flows) ProtoMessage() {}
728func (*Flows) Descriptor() ([]byte, []int) {
729 return fileDescriptor_6ea2bed57327b60e, []int{12}
730}
731
732func (m *Flows) XXX_Unmarshal(b []byte) error {
733 return xxx_messageInfo_Flows.Unmarshal(m, b)
734}
735func (m *Flows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
736 return xxx_messageInfo_Flows.Marshal(b, m, deterministic)
737}
738func (m *Flows) XXX_Merge(src proto.Message) {
739 xxx_messageInfo_Flows.Merge(m, src)
740}
741func (m *Flows) XXX_Size() int {
742 return xxx_messageInfo_Flows.Size(m)
743}
744func (m *Flows) XXX_DiscardUnknown() {
745 xxx_messageInfo_Flows.DiscardUnknown(m)
746}
747
748var xxx_messageInfo_Flows proto.InternalMessageInfo
749
750func (m *Flows) GetFlows() []*openolt.Flow {
751 if m != nil {
752 return m.Flows
753 }
754 return nil
755}
756
757type Empty struct {
758 XXX_NoUnkeyedLiteral struct{} `json:"-"`
759 XXX_unrecognized []byte `json:"-"`
760 XXX_sizecache int32 `json:"-"`
761}
762
763func (m *Empty) Reset() { *m = Empty{} }
764func (m *Empty) String() string { return proto.CompactTextString(m) }
765func (*Empty) ProtoMessage() {}
766func (*Empty) Descriptor() ([]byte, []int) {
767 return fileDescriptor_6ea2bed57327b60e, []int{13}
768}
769
770func (m *Empty) XXX_Unmarshal(b []byte) error {
771 return xxx_messageInfo_Empty.Unmarshal(m, b)
772}
773func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
774 return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
775}
776func (m *Empty) XXX_Merge(src proto.Message) {
777 xxx_messageInfo_Empty.Merge(m, src)
778}
779func (m *Empty) XXX_Size() int {
780 return xxx_messageInfo_Empty.Size(m)
781}
782func (m *Empty) XXX_DiscardUnknown() {
783 xxx_messageInfo_Empty.DiscardUnknown(m)
784}
785
786var xxx_messageInfo_Empty proto.InternalMessageInfo
787
788func init() {
789 proto.RegisterType((*OLTInfo)(nil), "legacy.OLTInfo")
790 proto.RegisterType((*ONUInfo)(nil), "legacy.ONUInfo")
791 proto.RegisterType((*ONUs)(nil), "legacy.ONUs")
792 proto.RegisterType((*ONURequest)(nil), "legacy.ONURequest")
793 proto.RegisterType((*PortInfo)(nil), "legacy.PortInfo")
794 proto.RegisterType((*Ports)(nil), "legacy.Ports")
795 proto.RegisterType((*OLTStatusResponse)(nil), "legacy.OLTStatusResponse")
796 proto.RegisterType((*BBSimResponse)(nil), "legacy.BBSimResponse")
797 proto.RegisterType((*ONUAlarmRequest)(nil), "legacy.ONUAlarmRequest")
798 proto.RegisterType((*OLTAlarmRequest)(nil), "legacy.OLTAlarmRequest")
799 proto.RegisterType((*DeviceAction)(nil), "legacy.DeviceAction")
800 proto.RegisterType((*Tconts)(nil), "legacy.Tconts")
801 proto.RegisterType((*Flows)(nil), "legacy.Flows")
802 proto.RegisterType((*Empty)(nil), "legacy.Empty")
803}
804
805func init() { proto.RegisterFile("api/legacy/bbsim.proto", fileDescriptor_6ea2bed57327b60e) }
806
807var fileDescriptor_6ea2bed57327b60e = []byte{
808 // 1326 bytes of a gzipped FileDescriptorProto
809 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4d, 0x6f, 0x1b, 0x55,
810 0x17, 0xd6, 0xd8, 0xb1, 0x1d, 0x9f, 0xc4, 0x6d, 0x7a, 0xfb, 0xe5, 0x37, 0x79, 0xd3, 0x4e, 0xa7,
811 0x55, 0x08, 0x69, 0xeb, 0x69, 0xdd, 0x2f, 0x08, 0xab, 0x44, 0x85, 0x2a, 0x52, 0x6b, 0x47, 0x93,
812 0x84, 0x85, 0xa9, 0xb0, 0x26, 0xf6, 0xb5, 0x3d, 0x68, 0x7c, 0xef, 0x30, 0xf7, 0x4e, 0xda, 0xc8,
813 0xf2, 0x06, 0x01, 0xea, 0x02, 0x16, 0x80, 0x54, 0x21, 0x96, 0xec, 0xf8, 0x15, 0xec, 0xf8, 0x03,
814 0x6c, 0x91, 0xba, 0x80, 0x1f, 0x82, 0xee, 0xb9, 0x33, 0xce, 0x4c, 0x3e, 0x20, 0x65, 0x15, 0xdf,
815 0x73, 0xce, 0xbd, 0xe7, 0x79, 0xce, 0xc7, 0x93, 0x81, 0x4b, 0x6e, 0xe0, 0xd9, 0x3e, 0xed, 0xbb,
816 0x9d, 0x7d, 0x7b, 0x77, 0x57, 0x78, 0xc3, 0x5a, 0x10, 0x72, 0xc9, 0x49, 0x51, 0xdb, 0xe6, 0xff,
817 0xdf, 0xe7, 0xbc, 0xef, 0x53, 0x5b, 0x85, 0xb9, 0x8c, 0x71, 0xe9, 0x4a, 0x8f, 0x33, 0xa1, 0xa3,
818 0xe6, 0x6f, 0xe1, 0x9f, 0xce, 0xed, 0x3e, 0x65, 0xb7, 0xc5, 0x0b, 0xb7, 0xdf, 0xa7, 0xa1, 0xcd,
819 0x03, 0x8c, 0x38, 0x26, 0x7a, 0x61, 0x8f, 0xfb, 0x72, 0xe0, 0xb6, 0xf1, 0x24, 0x6c, 0x1e, 0x50,
820 0xc6, 0x7d, 0x19, 0x3b, 0xcd, 0xac, 0x53, 0xd2, 0xce, 0x40, 0xfd, 0xee, 0x79, 0x3e, 0xd5, 0x11,
821 0xd6, 0x6b, 0x03, 0x4a, 0xcd, 0xa7, 0xdb, 0x1b, 0xac, 0xc7, 0xc9, 0x45, 0x28, 0x72, 0x5f, 0xb6,
822 0xbd, 0x6e, 0xd5, 0x30, 0x8d, 0xe5, 0xbc, 0x53, 0xe0, 0xbe, 0xdc, 0xe8, 0x92, 0x45, 0x00, 0x65,
823 0x16, 0x34, 0xf4, 0x5c, 0xbf, 0x9a, 0x33, 0x8d, 0xe5, 0xb2, 0x53, 0xe6, 0xbe, 0xdc, 0x42, 0xc3,
824 0xe4, 0x56, 0x50, 0xcd, 0xa3, 0x0b, 0x6f, 0x05, 0x64, 0x01, 0xca, 0x78, 0x4b, 0xba, 0x92, 0x56,
825 0xa7, 0xd0, 0x33, 0xad, 0x2e, 0xa9, 0x73, 0xf2, 0xe4, 0x1e, 0x65, 0x5d, 0x1e, 0x56, 0x0b, 0x93,
826 0x27, 0x3f, 0x46, 0xc3, 0x6a, 0xae, 0x6a, 0x58, 0x6f, 0x14, 0xb0, 0xc6, 0xce, 0x04, 0x18, 0x8b,
827 0x12, 0x60, 0x15, 0xa7, 0xc0, 0x59, 0xb4, 0xd1, 0x25, 0x57, 0x60, 0x26, 0xe0, 0xac, 0x1d, 0xf0,
828 0x10, 0x41, 0xe7, 0xd0, 0x57, 0x0e, 0x38, 0xdb, 0xe4, 0x61, 0x02, 0x9c, 0x45, 0x09, 0xf0, 0x7c,
829 0x9c, 0x85, 0x45, 0x31, 0x70, 0xe5, 0x0e, 0x68, 0x98, 0x81, 0x58, 0x56, 0x16, 0x8d, 0x51, 0x11,
830 0x50, 0xb7, 0xd1, 0x5b, 0x88, 0x09, 0xb0, 0x48, 0x3b, 0xe7, 0x61, 0xba, 0x4f, 0x87, 0x2a, 0xb3,
831 0xa8, 0x16, 0xcd, 0xfc, 0x72, 0xc5, 0x99, 0x9c, 0xc9, 0x12, 0x14, 0x65, 0x87, 0x33, 0x29, 0xaa,
832 0x25, 0xd3, 0x58, 0x9e, 0xa9, 0x9f, 0xa9, 0xe9, 0xb6, 0xd7, 0xb6, 0xd1, 0xea, 0xc4, 0x5e, 0xeb,
833 0x26, 0x4c, 0x35, 0x1b, 0x3b, 0x82, 0x5c, 0x87, 0x29, 0xce, 0x22, 0x51, 0x35, 0xcc, 0xfc, 0xf2,
834 0x4c, 0xfd, 0x6c, 0x12, 0x1d, 0x93, 0x77, 0xd0, 0x69, 0x3d, 0x07, 0x68, 0x36, 0x76, 0x1c, 0xfa,
835 0x79, 0x44, 0x85, 0x24, 0xd7, 0x20, 0xcf, 0x59, 0x84, 0xd5, 0x38, 0xe6, 0x86, 0xf2, 0x91, 0x9b,
836 0x48, 0x5e, 0xb4, 0x77, 0x5d, 0xd9, 0x19, 0x60, 0x6d, 0x66, 0xea, 0xb3, 0xa9, 0x48, 0x81, 0xa5,
837 0x10, 0xeb, 0xca, 0x6d, 0xfd, 0x61, 0xc0, 0x34, 0x16, 0x4d, 0x55, 0x7b, 0x01, 0xca, 0x58, 0x52,
838 0xb9, 0x1f, 0x50, 0x4c, 0x51, 0x76, 0xa6, 0x95, 0x61, 0x7b, 0x3f, 0xa0, 0xe4, 0x32, 0x94, 0xb2,
839 0xf5, 0x2e, 0x06, 0xba, 0xd8, 0xef, 0xc2, 0xb9, 0x49, 0x33, 0x86, 0xee, 0xcb, 0x36, 0x52, 0xca,
840 0x63, 0xc8, 0x99, 0xb8, 0x25, 0xcf, 0xdc, 0x97, 0x4d, 0x16, 0x09, 0x62, 0xc3, 0x85, 0x49, 0xa8,
841 0xdb, 0x91, 0xde, 0x1e, 0xd5, 0xd1, 0x53, 0x18, 0x7d, 0x2e, 0x8e, 0x5e, 0x43, 0x0f, 0x5e, 0x58,
842 0x04, 0xc0, 0xe0, 0x74, 0x2f, 0x10, 0xa3, 0x6e, 0xc6, 0x55, 0x98, 0x71, 0x7d, 0x37, 0x1c, 0xc6,
843 0xfe, 0x22, 0xfa, 0x01, 0x4d, 0x18, 0x60, 0xd9, 0x50, 0xd8, 0x8c, 0x5b, 0x53, 0xd0, 0x3d, 0xd3,
844 0xb5, 0x9e, 0x4b, 0xea, 0x91, 0x70, 0x77, 0xb4, 0xdb, 0xfa, 0x14, 0xce, 0x35, 0x9f, 0x6e, 0xab,
845 0xcb, 0x91, 0x70, 0xa8, 0x08, 0x38, 0x13, 0x14, 0x8b, 0xee, 0xcb, 0x23, 0x45, 0xd7, 0xcb, 0xe3,
846 0x28, 0xdf, 0xc1, 0xfb, 0xb9, 0x7f, 0x7e, 0xbf, 0x06, 0x95, 0xf5, 0xf5, 0x2d, 0x6f, 0x38, 0x79,
847 0x7b, 0x11, 0x40, 0x60, 0xb6, 0xf6, 0x50, 0xf4, 0xe3, 0xa2, 0x97, 0xb5, 0xe5, 0x99, 0xe8, 0x5b,
848 0x7d, 0x38, 0xdb, 0x6c, 0xec, 0xac, 0x29, 0x46, 0xc9, 0x08, 0x64, 0x87, 0xdb, 0x38, 0x66, 0xb8,
849 0x75, 0x4d, 0xb0, 0x8b, 0xf1, 0xd2, 0xa2, 0x05, 0xdb, 0x78, 0x09, 0x8a, 0xfa, 0xf5, 0x78, 0x2d,
850 0xe2, 0x93, 0xd5, 0x86, 0xb3, 0xcd, 0xa7, 0xdb, 0x99, 0x44, 0xa9, 0x8e, 0x1b, 0x99, 0x8e, 0x67,
851 0xe6, 0x24, 0x77, 0x68, 0x4e, 0x4e, 0x4a, 0xe0, 0xc3, 0xec, 0x63, 0xba, 0xe7, 0x75, 0xa8, 0x6a,
852 0x2f, 0x67, 0xaa, 0x77, 0x5d, 0x3c, 0xa7, 0xc7, 0x0d, 0xb4, 0x09, 0x1f, 0xba, 0x0e, 0x15, 0xcd,
853 0xb1, 0xcd, 0xa2, 0xe1, 0x2e, 0x0d, 0xe3, 0x4c, 0xb3, 0xda, 0xd8, 0x40, 0x9b, 0xca, 0xe6, 0xe2,
854 0x7b, 0x49, 0x36, 0x7d, 0xb2, 0x02, 0x28, 0xea, 0xa5, 0x53, 0x12, 0x12, 0x31, 0x4f, 0x91, 0x50,
855 0x53, 0x56, 0x72, 0x0a, 0x11, 0xf3, 0x36, 0xba, 0x13, 0x72, 0x8c, 0xe3, 0x58, 0x95, 0x34, 0xb9,
856 0x06, 0x27, 0x0f, 0x27, 0x4b, 0x9c, 0xc7, 0x56, 0x5e, 0xa9, 0x65, 0xc4, 0x73, 0x3b, 0x74, 0x7b,
857 0x3d, 0xaf, 0xb3, 0xd5, 0x19, 0xd0, 0x6e, 0xe4, 0xd3, 0x70, 0xb2, 0xd4, 0xb7, 0xa0, 0xf0, 0x91,
858 0xcf, 0x5f, 0xa8, 0xad, 0x2e, 0xf4, 0xd4, 0x8f, 0x78, 0xd4, 0x2a, 0xb5, 0x44, 0x99, 0x95, 0xdb,
859 0xd1, 0x3e, 0xab, 0x04, 0x85, 0x0f, 0x87, 0x81, 0xdc, 0xaf, 0xff, 0x09, 0x30, 0x8b, 0x13, 0xb1,
860 0x45, 0x43, 0x45, 0x9d, 0x7c, 0x02, 0xe5, 0xc9, 0x04, 0x92, 0x4a, 0x32, 0x47, 0x18, 0x3c, 0xff,
861 0xbf, 0xd4, 0xec, 0x65, 0x67, 0xd4, 0xba, 0xf1, 0xc5, 0xef, 0x7f, 0xfd, 0x90, 0x5b, 0x20, 0x25,
862 0x7b, 0xef, 0x8e, 0xcd, 0x7d, 0xd9, 0x9a, 0x23, 0x67, 0xe2, 0x9f, 0xb6, 0xee, 0xc0, 0xab, 0x9c,
863 0x41, 0xba, 0x00, 0x9b, 0xf1, 0xf6, 0x44, 0x82, 0x1c, 0x99, 0xd2, 0xf9, 0x4a, 0xda, 0x22, 0xac,
864 0x07, 0xf8, 0xe8, 0x2d, 0xb2, 0x92, 0xbc, 0x84, 0x43, 0x6c, 0x8f, 0x26, 0xdd, 0x1f, 0xc7, 0xbf,
865 0xbd, 0xee, 0x38, 0x95, 0xe5, 0x37, 0x03, 0xca, 0xcd, 0xc6, 0x4e, 0x9c, 0x85, 0xa4, 0xb4, 0x27,
866 0x1e, 0xad, 0xf9, 0x8c, 0x1e, 0x59, 0xaf, 0x0d, 0xcc, 0xf3, 0x8d, 0x41, 0x66, 0x93, 0x44, 0x4a,
867 0x16, 0x5a, 0x57, 0xc9, 0x62, 0xfa, 0x6c, 0x8f, 0x38, 0x8b, 0x6a, 0x07, 0xb3, 0x3f, 0x6e, 0xdd,
868 0x23, 0x77, 0x0f, 0x21, 0x53, 0x11, 0xa9, 0x7f, 0x0d, 0xe3, 0x43, 0x17, 0xbd, 0xee, 0xb8, 0xb5,
869 0x44, 0x6e, 0x9c, 0xe6, 0x92, 0x22, 0xf2, 0xab, 0x01, 0x33, 0x6a, 0xfd, 0x94, 0x20, 0x29, 0xbd,
870 0x39, 0x8e, 0xca, 0xc5, 0xc4, 0x96, 0xd9, 0x6b, 0xeb, 0x4b, 0xcd, 0x69, 0x64, 0x65, 0x28, 0xad,
871 0xa6, 0xa4, 0xb9, 0xb5, 0x64, 0x9d, 0x0a, 0x48, 0xeb, 0x91, 0xf5, 0xe0, 0xed, 0x58, 0xc6, 0xe5,
872 0x51, 0x0c, 0xde, 0x18, 0x50, 0x69, 0x36, 0x76, 0x1e, 0x53, 0xf7, 0x3f, 0x70, 0xf8, 0x59, 0x73,
873 0xf8, 0xd1, 0x58, 0x39, 0x99, 0xc4, 0xd5, 0x95, 0x7f, 0xe9, 0xd1, 0xd2, 0xca, 0xe9, 0x58, 0xde,
874 0x5b, 0x79, 0xfb, 0x5e, 0x2a, 0x86, 0x5f, 0x19, 0x30, 0xf7, 0x84, 0x32, 0x1a, 0xba, 0x92, 0x26,
875 0x52, 0x49, 0x2e, 0xa7, 0x48, 0xa6, 0x35, 0xed, 0x24, 0xa6, 0x6b, 0x48, 0xf4, 0x3d, 0xeb, 0xe1,
876 0x11, 0x2e, 0x09, 0x0f, 0x1b, 0x25, 0x54, 0xd8, 0xa3, 0x03, 0x71, 0x1d, 0xdb, 0x23, 0x3d, 0xf3,
877 0x88, 0xe3, 0xeb, 0x34, 0x8e, 0x58, 0x49, 0x53, 0x38, 0xb2, 0xda, 0x7a, 0x12, 0x8e, 0x75, 0xc4,
878 0xf1, 0xbe, 0xf5, 0xe8, 0x34, 0x0b, 0x17, 0x23, 0xf2, 0xb9, 0xc8, 0x00, 0xf9, 0xc5, 0x80, 0xf3,
879 0x9b, 0x34, 0xec, 0xf1, 0x70, 0x98, 0x11, 0xdc, 0x0b, 0x49, 0xca, 0xb4, 0xf5, 0x24, 0x20, 0x14,
880 0x81, 0x3c, 0xaf, 0x5f, 0x53, 0x40, 0x46, 0x29, 0xa1, 0x1e, 0xdb, 0x5a, 0x61, 0xed, 0x91, 0xfe,
881 0x3b, 0x6e, 0x3d, 0xaa, 0x4f, 0xc6, 0x33, 0x1b, 0x38, 0xca, 0xc8, 0xf7, 0x91, 0x8b, 0x0a, 0x6b,
882 0x0f, 0xa6, 0x9f, 0x50, 0xa9, 0x75, 0xf3, 0xf0, 0xd7, 0xcc, 0x81, 0x18, 0xa1, 0xdf, 0x5a, 0x45,
883 0x48, 0x77, 0x49, 0x25, 0xc9, 0x86, 0x4a, 0xda, 0x32, 0xc9, 0x95, 0x54, 0xd3, 0xb2, 0x3d, 0xc3,
884 0x88, 0x57, 0x39, 0x63, 0xfd, 0x3b, 0xe3, 0xfb, 0xb5, 0x6f, 0x0d, 0xf2, 0x0e, 0x94, 0x91, 0xa6,
885 0xb9, 0xb6, 0xb9, 0x61, 0x5d, 0x24, 0xe7, 0x07, 0x52, 0x06, 0xab, 0x36, 0x7e, 0x3a, 0x77, 0x78,
886 0xd8, 0xad, 0xf1, 0xb0, 0x5f, 0xcf, 0xdf, 0xad, 0xdd, 0x59, 0x31, 0x8c, 0xfa, 0x9c, 0x1b, 0x04,
887 0xbe, 0xd7, 0xc1, 0x4f, 0x6e, 0xfb, 0x33, 0xc1, 0xd9, 0xea, 0x11, 0x8b, 0xf3, 0x01, 0xe4, 0xef,
888 0xdf, 0xb9, 0x4f, 0xee, 0xc3, 0x8a, 0x43, 0x65, 0x14, 0x32, 0xda, 0x35, 0x5f, 0x0c, 0x28, 0x33,
889 0xe5, 0x80, 0x9a, 0x21, 0x15, 0x3c, 0x0a, 0x3b, 0xd4, 0xec, 0x72, 0x2a, 0x4c, 0xc6, 0xa5, 0x49,
890 0x5f, 0x7a, 0x42, 0xd6, 0x48, 0x11, 0xa6, 0x7e, 0xca, 0x19, 0xa5, 0xdd, 0x22, 0x7e, 0x87, 0xdf,
891 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xb3, 0x49, 0x58, 0x34, 0x0c, 0x00, 0x00,
892}
893
894// Reference imports to suppress errors if they are not otherwise used.
895var _ context.Context
896var _ grpc.ClientConn
897
898// This is a compile-time assertion to ensure that this generated file
899// is compatible with the grpc package it is being compiled against.
900const _ = grpc.SupportPackageIsVersion4
901
902// BBSimServiceClient is the client API for BBSimService service.
903//
904// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
905type BBSimServiceClient interface {
906 // Get current status of OLT
907 OLTStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*OLTStatusResponse, error)
908 // Get status of a PON/NNI port
909 PortStatus(ctx context.Context, in *PortInfo, opts ...grpc.CallOption) (*Ports, error)
910 // Get status of all or specific ONUs
911 ONUStatus(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUs, error)
912 // Single/bulk activate ONU(s) for specific PON port(s)
913 ONUActivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error)
914 // Deactivate ONU(s) for specific PON port(s) specified by
915 // a given onu_serial, onu_id, or pon_port_id
916 ONUDeactivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error)
917 // Generate ONU related alarms
918 GenerateONUAlarm(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error)
919 // Generate OLT related alarms
920 GenerateOLTAlarm(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error)
921 // Perform actions on OLT/ONU devices (e.g. reboot)
922 PerformDeviceAction(ctx context.Context, in *DeviceAction, opts ...grpc.CallOption) (*BBSimResponse, error)
923 // Get flows
924 GetFlows(ctx context.Context, in *ONUInfo, opts ...grpc.CallOption) (*Flows, error)
925}
926
927type bBSimServiceClient struct {
928 cc *grpc.ClientConn
929}
930
931func NewBBSimServiceClient(cc *grpc.ClientConn) BBSimServiceClient {
932 return &bBSimServiceClient{cc}
933}
934
935// Deprecated: Do not use.
936func (c *bBSimServiceClient) OLTStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*OLTStatusResponse, error) {
937 out := new(OLTStatusResponse)
938 err := c.cc.Invoke(ctx, "/legacy.BBSimService/OLTStatus", in, out, opts...)
939 if err != nil {
940 return nil, err
941 }
942 return out, nil
943}
944
945// Deprecated: Do not use.
946func (c *bBSimServiceClient) PortStatus(ctx context.Context, in *PortInfo, opts ...grpc.CallOption) (*Ports, error) {
947 out := new(Ports)
948 err := c.cc.Invoke(ctx, "/legacy.BBSimService/PortStatus", in, out, opts...)
949 if err != nil {
950 return nil, err
951 }
952 return out, nil
953}
954
955// Deprecated: Do not use.
956func (c *bBSimServiceClient) ONUStatus(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUs, error) {
957 out := new(ONUs)
958 err := c.cc.Invoke(ctx, "/legacy.BBSimService/ONUStatus", in, out, opts...)
959 if err != nil {
960 return nil, err
961 }
962 return out, nil
963}
964
965// Deprecated: Do not use.
966func (c *bBSimServiceClient) ONUActivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error) {
967 out := new(BBSimResponse)
968 err := c.cc.Invoke(ctx, "/legacy.BBSimService/ONUActivate", in, out, opts...)
969 if err != nil {
970 return nil, err
971 }
972 return out, nil
973}
974
975// Deprecated: Do not use.
976func (c *bBSimServiceClient) ONUDeactivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error) {
977 out := new(BBSimResponse)
978 err := c.cc.Invoke(ctx, "/legacy.BBSimService/ONUDeactivate", in, out, opts...)
979 if err != nil {
980 return nil, err
981 }
982 return out, nil
983}
984
985// Deprecated: Do not use.
986func (c *bBSimServiceClient) GenerateONUAlarm(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error) {
987 out := new(BBSimResponse)
988 err := c.cc.Invoke(ctx, "/legacy.BBSimService/GenerateONUAlarm", in, out, opts...)
989 if err != nil {
990 return nil, err
991 }
992 return out, nil
993}
994
995// Deprecated: Do not use.
996func (c *bBSimServiceClient) GenerateOLTAlarm(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error) {
997 out := new(BBSimResponse)
998 err := c.cc.Invoke(ctx, "/legacy.BBSimService/GenerateOLTAlarm", in, out, opts...)
999 if err != nil {
1000 return nil, err
1001 }
1002 return out, nil
1003}
1004
1005// Deprecated: Do not use.
1006func (c *bBSimServiceClient) PerformDeviceAction(ctx context.Context, in *DeviceAction, opts ...grpc.CallOption) (*BBSimResponse, error) {
1007 out := new(BBSimResponse)
1008 err := c.cc.Invoke(ctx, "/legacy.BBSimService/PerformDeviceAction", in, out, opts...)
1009 if err != nil {
1010 return nil, err
1011 }
1012 return out, nil
1013}
1014
1015// Deprecated: Do not use.
1016func (c *bBSimServiceClient) GetFlows(ctx context.Context, in *ONUInfo, opts ...grpc.CallOption) (*Flows, error) {
1017 out := new(Flows)
1018 err := c.cc.Invoke(ctx, "/legacy.BBSimService/GetFlows", in, out, opts...)
1019 if err != nil {
1020 return nil, err
1021 }
1022 return out, nil
1023}
1024
1025// BBSimServiceServer is the server API for BBSimService service.
1026type BBSimServiceServer interface {
1027 // Get current status of OLT
1028 OLTStatus(context.Context, *Empty) (*OLTStatusResponse, error)
1029 // Get status of a PON/NNI port
1030 PortStatus(context.Context, *PortInfo) (*Ports, error)
1031 // Get status of all or specific ONUs
1032 ONUStatus(context.Context, *ONURequest) (*ONUs, error)
1033 // Single/bulk activate ONU(s) for specific PON port(s)
1034 ONUActivate(context.Context, *ONURequest) (*BBSimResponse, error)
1035 // Deactivate ONU(s) for specific PON port(s) specified by
1036 // a given onu_serial, onu_id, or pon_port_id
1037 ONUDeactivate(context.Context, *ONURequest) (*BBSimResponse, error)
1038 // Generate ONU related alarms
1039 GenerateONUAlarm(context.Context, *ONUAlarmRequest) (*BBSimResponse, error)
1040 // Generate OLT related alarms
1041 GenerateOLTAlarm(context.Context, *OLTAlarmRequest) (*BBSimResponse, error)
1042 // Perform actions on OLT/ONU devices (e.g. reboot)
1043 PerformDeviceAction(context.Context, *DeviceAction) (*BBSimResponse, error)
1044 // Get flows
1045 GetFlows(context.Context, *ONUInfo) (*Flows, error)
1046}
1047
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001048func RegisterBBSimServiceServer(s *grpc.Server, srv BBSimServiceServer) {
1049 s.RegisterService(&_BBSimService_serviceDesc, srv)
1050}
1051
1052func _BBSimService_OLTStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1053 in := new(Empty)
1054 if err := dec(in); err != nil {
1055 return nil, err
1056 }
1057 if interceptor == nil {
1058 return srv.(BBSimServiceServer).OLTStatus(ctx, in)
1059 }
1060 info := &grpc.UnaryServerInfo{
1061 Server: srv,
1062 FullMethod: "/legacy.BBSimService/OLTStatus",
1063 }
1064 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1065 return srv.(BBSimServiceServer).OLTStatus(ctx, req.(*Empty))
1066 }
1067 return interceptor(ctx, in, info, handler)
1068}
1069
1070func _BBSimService_PortStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1071 in := new(PortInfo)
1072 if err := dec(in); err != nil {
1073 return nil, err
1074 }
1075 if interceptor == nil {
1076 return srv.(BBSimServiceServer).PortStatus(ctx, in)
1077 }
1078 info := &grpc.UnaryServerInfo{
1079 Server: srv,
1080 FullMethod: "/legacy.BBSimService/PortStatus",
1081 }
1082 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1083 return srv.(BBSimServiceServer).PortStatus(ctx, req.(*PortInfo))
1084 }
1085 return interceptor(ctx, in, info, handler)
1086}
1087
1088func _BBSimService_ONUStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1089 in := new(ONURequest)
1090 if err := dec(in); err != nil {
1091 return nil, err
1092 }
1093 if interceptor == nil {
1094 return srv.(BBSimServiceServer).ONUStatus(ctx, in)
1095 }
1096 info := &grpc.UnaryServerInfo{
1097 Server: srv,
1098 FullMethod: "/legacy.BBSimService/ONUStatus",
1099 }
1100 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1101 return srv.(BBSimServiceServer).ONUStatus(ctx, req.(*ONURequest))
1102 }
1103 return interceptor(ctx, in, info, handler)
1104}
1105
1106func _BBSimService_ONUActivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1107 in := new(ONURequest)
1108 if err := dec(in); err != nil {
1109 return nil, err
1110 }
1111 if interceptor == nil {
1112 return srv.(BBSimServiceServer).ONUActivate(ctx, in)
1113 }
1114 info := &grpc.UnaryServerInfo{
1115 Server: srv,
1116 FullMethod: "/legacy.BBSimService/ONUActivate",
1117 }
1118 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1119 return srv.(BBSimServiceServer).ONUActivate(ctx, req.(*ONURequest))
1120 }
1121 return interceptor(ctx, in, info, handler)
1122}
1123
1124func _BBSimService_ONUDeactivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1125 in := new(ONURequest)
1126 if err := dec(in); err != nil {
1127 return nil, err
1128 }
1129 if interceptor == nil {
1130 return srv.(BBSimServiceServer).ONUDeactivate(ctx, in)
1131 }
1132 info := &grpc.UnaryServerInfo{
1133 Server: srv,
1134 FullMethod: "/legacy.BBSimService/ONUDeactivate",
1135 }
1136 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1137 return srv.(BBSimServiceServer).ONUDeactivate(ctx, req.(*ONURequest))
1138 }
1139 return interceptor(ctx, in, info, handler)
1140}
1141
1142func _BBSimService_GenerateONUAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1143 in := new(ONUAlarmRequest)
1144 if err := dec(in); err != nil {
1145 return nil, err
1146 }
1147 if interceptor == nil {
1148 return srv.(BBSimServiceServer).GenerateONUAlarm(ctx, in)
1149 }
1150 info := &grpc.UnaryServerInfo{
1151 Server: srv,
1152 FullMethod: "/legacy.BBSimService/GenerateONUAlarm",
1153 }
1154 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1155 return srv.(BBSimServiceServer).GenerateONUAlarm(ctx, req.(*ONUAlarmRequest))
1156 }
1157 return interceptor(ctx, in, info, handler)
1158}
1159
1160func _BBSimService_GenerateOLTAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1161 in := new(OLTAlarmRequest)
1162 if err := dec(in); err != nil {
1163 return nil, err
1164 }
1165 if interceptor == nil {
1166 return srv.(BBSimServiceServer).GenerateOLTAlarm(ctx, in)
1167 }
1168 info := &grpc.UnaryServerInfo{
1169 Server: srv,
1170 FullMethod: "/legacy.BBSimService/GenerateOLTAlarm",
1171 }
1172 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1173 return srv.(BBSimServiceServer).GenerateOLTAlarm(ctx, req.(*OLTAlarmRequest))
1174 }
1175 return interceptor(ctx, in, info, handler)
1176}
1177
1178func _BBSimService_PerformDeviceAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1179 in := new(DeviceAction)
1180 if err := dec(in); err != nil {
1181 return nil, err
1182 }
1183 if interceptor == nil {
1184 return srv.(BBSimServiceServer).PerformDeviceAction(ctx, in)
1185 }
1186 info := &grpc.UnaryServerInfo{
1187 Server: srv,
1188 FullMethod: "/legacy.BBSimService/PerformDeviceAction",
1189 }
1190 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1191 return srv.(BBSimServiceServer).PerformDeviceAction(ctx, req.(*DeviceAction))
1192 }
1193 return interceptor(ctx, in, info, handler)
1194}
1195
1196func _BBSimService_GetFlows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1197 in := new(ONUInfo)
1198 if err := dec(in); err != nil {
1199 return nil, err
1200 }
1201 if interceptor == nil {
1202 return srv.(BBSimServiceServer).GetFlows(ctx, in)
1203 }
1204 info := &grpc.UnaryServerInfo{
1205 Server: srv,
1206 FullMethod: "/legacy.BBSimService/GetFlows",
1207 }
1208 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1209 return srv.(BBSimServiceServer).GetFlows(ctx, req.(*ONUInfo))
1210 }
1211 return interceptor(ctx, in, info, handler)
1212}
1213
1214var _BBSimService_serviceDesc = grpc.ServiceDesc{
1215 ServiceName: "legacy.BBSimService",
1216 HandlerType: (*BBSimServiceServer)(nil),
1217 Methods: []grpc.MethodDesc{
1218 {
1219 MethodName: "OLTStatus",
1220 Handler: _BBSimService_OLTStatus_Handler,
1221 },
1222 {
1223 MethodName: "PortStatus",
1224 Handler: _BBSimService_PortStatus_Handler,
1225 },
1226 {
1227 MethodName: "ONUStatus",
1228 Handler: _BBSimService_ONUStatus_Handler,
1229 },
1230 {
1231 MethodName: "ONUActivate",
1232 Handler: _BBSimService_ONUActivate_Handler,
1233 },
1234 {
1235 MethodName: "ONUDeactivate",
1236 Handler: _BBSimService_ONUDeactivate_Handler,
1237 },
1238 {
1239 MethodName: "GenerateONUAlarm",
1240 Handler: _BBSimService_GenerateONUAlarm_Handler,
1241 },
1242 {
1243 MethodName: "GenerateOLTAlarm",
1244 Handler: _BBSimService_GenerateOLTAlarm_Handler,
1245 },
1246 {
1247 MethodName: "PerformDeviceAction",
1248 Handler: _BBSimService_PerformDeviceAction_Handler,
1249 },
1250 {
1251 MethodName: "GetFlows",
1252 Handler: _BBSimService_GetFlows_Handler,
1253 },
1254 },
1255 Streams: []grpc.StreamDesc{},
1256 Metadata: "api/legacy/bbsim.proto",
1257}