Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: api/bbsim/bbsim.proto |
| 3 | |
| 4 | package bbsim |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
Matteo Scandolo | 4f4ac79 | 2020-10-01 16:33:21 -0700 | [diff] [blame] | 10 | openolt "github.com/opencord/voltha-protos/v4/go/openolt" |
| 11 | tech_profile "github.com/opencord/voltha-protos/v4/go/tech_profile" |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 12 | grpc "google.golang.org/grpc" |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 13 | codes "google.golang.org/grpc/codes" |
| 14 | status "google.golang.org/grpc/status" |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 15 | math "math" |
| 16 | ) |
| 17 | |
| 18 | // Reference imports to suppress errors if they are not otherwise used. |
| 19 | var _ = proto.Marshal |
| 20 | var _ = fmt.Errorf |
| 21 | var _ = 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. |
| 27 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 28 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 29 | type SubActionTypes int32 |
| 30 | |
| 31 | const ( |
Arjun E K | dd443f0 | 2020-02-07 15:24:01 +0000 | [diff] [blame] | 32 | SubActionTypes_JOIN SubActionTypes = 0 |
| 33 | SubActionTypes_LEAVE SubActionTypes = 1 |
| 34 | SubActionTypes_JOINV3 SubActionTypes = 2 |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 35 | ) |
| 36 | |
| 37 | var SubActionTypes_name = map[int32]string{ |
| 38 | 0: "JOIN", |
| 39 | 1: "LEAVE", |
Arjun E K | dd443f0 | 2020-02-07 15:24:01 +0000 | [diff] [blame] | 40 | 2: "JOINV3", |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | var SubActionTypes_value = map[string]int32{ |
Arjun E K | dd443f0 | 2020-02-07 15:24:01 +0000 | [diff] [blame] | 44 | "JOIN": 0, |
| 45 | "LEAVE": 1, |
| 46 | "JOINV3": 2, |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | func (x SubActionTypes) String() string { |
| 50 | return proto.EnumName(SubActionTypes_name, int32(x)) |
| 51 | } |
| 52 | |
| 53 | func (SubActionTypes) EnumDescriptor() ([]byte, []int) { |
| 54 | return fileDescriptor_ef7750073d18011b, []int{0} |
| 55 | } |
| 56 | |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 57 | // These types correspond to the messages permitted in the oneof |
| 58 | // in AlarmIndication in the openolt protos |
| 59 | type AlarmType_Types int32 |
| 60 | |
| 61 | const ( |
| 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 | |
| 85 | var 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 | |
| 107 | var 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 | |
| 129 | func (x AlarmType_Types) String() string { |
| 130 | return proto.EnumName(AlarmType_Types_name, int32(x)) |
| 131 | } |
| 132 | |
| 133 | func (AlarmType_Types) EnumDescriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 134 | return fileDescriptor_ef7750073d18011b, []int{10, 0} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 135 | } |
| 136 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 137 | type 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 | |
| 145 | func (m *PONPort) Reset() { *m = PONPort{} } |
| 146 | func (m *PONPort) String() string { return proto.CompactTextString(m) } |
| 147 | func (*PONPort) ProtoMessage() {} |
| 148 | func (*PONPort) Descriptor() ([]byte, []int) { |
| 149 | return fileDescriptor_ef7750073d18011b, []int{0} |
| 150 | } |
| 151 | |
| 152 | func (m *PONPort) XXX_Unmarshal(b []byte) error { |
| 153 | return xxx_messageInfo_PONPort.Unmarshal(m, b) |
| 154 | } |
| 155 | func (m *PONPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 156 | return xxx_messageInfo_PONPort.Marshal(b, m, deterministic) |
| 157 | } |
| 158 | func (m *PONPort) XXX_Merge(src proto.Message) { |
| 159 | xxx_messageInfo_PONPort.Merge(m, src) |
| 160 | } |
| 161 | func (m *PONPort) XXX_Size() int { |
| 162 | return xxx_messageInfo_PONPort.Size(m) |
| 163 | } |
| 164 | func (m *PONPort) XXX_DiscardUnknown() { |
| 165 | xxx_messageInfo_PONPort.DiscardUnknown(m) |
| 166 | } |
| 167 | |
| 168 | var xxx_messageInfo_PONPort proto.InternalMessageInfo |
| 169 | |
| 170 | func (m *PONPort) GetID() int32 { |
| 171 | if m != nil { |
| 172 | return m.ID |
| 173 | } |
| 174 | return 0 |
| 175 | } |
| 176 | |
| 177 | func (m *PONPort) GetOperState() string { |
| 178 | if m != nil { |
| 179 | return m.OperState |
| 180 | } |
| 181 | return "" |
| 182 | } |
| 183 | |
| 184 | type 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 | |
| 192 | func (m *NNIPort) Reset() { *m = NNIPort{} } |
| 193 | func (m *NNIPort) String() string { return proto.CompactTextString(m) } |
| 194 | func (*NNIPort) ProtoMessage() {} |
| 195 | func (*NNIPort) Descriptor() ([]byte, []int) { |
| 196 | return fileDescriptor_ef7750073d18011b, []int{1} |
| 197 | } |
| 198 | |
| 199 | func (m *NNIPort) XXX_Unmarshal(b []byte) error { |
| 200 | return xxx_messageInfo_NNIPort.Unmarshal(m, b) |
| 201 | } |
| 202 | func (m *NNIPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 203 | return xxx_messageInfo_NNIPort.Marshal(b, m, deterministic) |
| 204 | } |
| 205 | func (m *NNIPort) XXX_Merge(src proto.Message) { |
| 206 | xxx_messageInfo_NNIPort.Merge(m, src) |
| 207 | } |
| 208 | func (m *NNIPort) XXX_Size() int { |
| 209 | return xxx_messageInfo_NNIPort.Size(m) |
| 210 | } |
| 211 | func (m *NNIPort) XXX_DiscardUnknown() { |
| 212 | xxx_messageInfo_NNIPort.DiscardUnknown(m) |
| 213 | } |
| 214 | |
| 215 | var xxx_messageInfo_NNIPort proto.InternalMessageInfo |
| 216 | |
| 217 | func (m *NNIPort) GetID() int32 { |
| 218 | if m != nil { |
| 219 | return m.ID |
| 220 | } |
| 221 | return 0 |
| 222 | } |
| 223 | |
| 224 | func (m *NNIPort) GetOperState() string { |
| 225 | if m != nil { |
| 226 | return m.OperState |
| 227 | } |
| 228 | return "" |
| 229 | } |
| 230 | |
| 231 | type 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"` |
rajesh | f921f88 | 2020-03-06 18:24:28 +0530 | [diff] [blame] | 236 | IP string `protobuf:"bytes,7,opt,name=IP,proto3" json:"IP,omitempty"` |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 237 | 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 | |
| 244 | func (m *Olt) Reset() { *m = Olt{} } |
| 245 | func (m *Olt) String() string { return proto.CompactTextString(m) } |
| 246 | func (*Olt) ProtoMessage() {} |
| 247 | func (*Olt) Descriptor() ([]byte, []int) { |
| 248 | return fileDescriptor_ef7750073d18011b, []int{2} |
| 249 | } |
| 250 | |
| 251 | func (m *Olt) XXX_Unmarshal(b []byte) error { |
| 252 | return xxx_messageInfo_Olt.Unmarshal(m, b) |
| 253 | } |
| 254 | func (m *Olt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 255 | return xxx_messageInfo_Olt.Marshal(b, m, deterministic) |
| 256 | } |
| 257 | func (m *Olt) XXX_Merge(src proto.Message) { |
| 258 | xxx_messageInfo_Olt.Merge(m, src) |
| 259 | } |
| 260 | func (m *Olt) XXX_Size() int { |
| 261 | return xxx_messageInfo_Olt.Size(m) |
| 262 | } |
| 263 | func (m *Olt) XXX_DiscardUnknown() { |
| 264 | xxx_messageInfo_Olt.DiscardUnknown(m) |
| 265 | } |
| 266 | |
| 267 | var xxx_messageInfo_Olt proto.InternalMessageInfo |
| 268 | |
| 269 | func (m *Olt) GetID() int32 { |
| 270 | if m != nil { |
| 271 | return m.ID |
| 272 | } |
| 273 | return 0 |
| 274 | } |
| 275 | |
| 276 | func (m *Olt) GetSerialNumber() string { |
| 277 | if m != nil { |
| 278 | return m.SerialNumber |
| 279 | } |
| 280 | return "" |
| 281 | } |
| 282 | |
| 283 | func (m *Olt) GetOperState() string { |
| 284 | if m != nil { |
| 285 | return m.OperState |
| 286 | } |
| 287 | return "" |
| 288 | } |
| 289 | |
| 290 | func (m *Olt) GetInternalState() string { |
| 291 | if m != nil { |
| 292 | return m.InternalState |
| 293 | } |
| 294 | return "" |
| 295 | } |
| 296 | |
rajesh | f921f88 | 2020-03-06 18:24:28 +0530 | [diff] [blame] | 297 | func (m *Olt) GetIP() string { |
| 298 | if m != nil { |
| 299 | return m.IP |
| 300 | } |
| 301 | return "" |
| 302 | } |
| 303 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 304 | func (m *Olt) GetNNIPorts() []*NNIPort { |
| 305 | if m != nil { |
| 306 | return m.NNIPorts |
| 307 | } |
| 308 | return nil |
| 309 | } |
| 310 | |
| 311 | func (m *Olt) GetPONPorts() []*PONPort { |
| 312 | if m != nil { |
| 313 | return m.PONPorts |
| 314 | } |
| 315 | return nil |
| 316 | } |
| 317 | |
| 318 | type ONU struct { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 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 | HwAddress string `protobuf:"bytes,8,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"` |
| 325 | PortNo int32 `protobuf:"varint,9,opt,name=PortNo,proto3" json:"PortNo,omitempty"` |
| 326 | Services []*Service `protobuf:"bytes,10,rep,name=services,proto3" json:"services,omitempty"` |
| 327 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 328 | XXX_unrecognized []byte `json:"-"` |
| 329 | XXX_sizecache int32 `json:"-"` |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 330 | } |
| 331 | |
| 332 | func (m *ONU) Reset() { *m = ONU{} } |
| 333 | func (m *ONU) String() string { return proto.CompactTextString(m) } |
| 334 | func (*ONU) ProtoMessage() {} |
| 335 | func (*ONU) Descriptor() ([]byte, []int) { |
| 336 | return fileDescriptor_ef7750073d18011b, []int{3} |
| 337 | } |
| 338 | |
| 339 | func (m *ONU) XXX_Unmarshal(b []byte) error { |
| 340 | return xxx_messageInfo_ONU.Unmarshal(m, b) |
| 341 | } |
| 342 | func (m *ONU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 343 | return xxx_messageInfo_ONU.Marshal(b, m, deterministic) |
| 344 | } |
| 345 | func (m *ONU) XXX_Merge(src proto.Message) { |
| 346 | xxx_messageInfo_ONU.Merge(m, src) |
| 347 | } |
| 348 | func (m *ONU) XXX_Size() int { |
| 349 | return xxx_messageInfo_ONU.Size(m) |
| 350 | } |
| 351 | func (m *ONU) XXX_DiscardUnknown() { |
| 352 | xxx_messageInfo_ONU.DiscardUnknown(m) |
| 353 | } |
| 354 | |
| 355 | var xxx_messageInfo_ONU proto.InternalMessageInfo |
| 356 | |
| 357 | func (m *ONU) GetID() int32 { |
| 358 | if m != nil { |
| 359 | return m.ID |
| 360 | } |
| 361 | return 0 |
| 362 | } |
| 363 | |
| 364 | func (m *ONU) GetSerialNumber() string { |
| 365 | if m != nil { |
| 366 | return m.SerialNumber |
| 367 | } |
| 368 | return "" |
| 369 | } |
| 370 | |
| 371 | func (m *ONU) GetOperState() string { |
| 372 | if m != nil { |
| 373 | return m.OperState |
| 374 | } |
| 375 | return "" |
| 376 | } |
| 377 | |
| 378 | func (m *ONU) GetInternalState() string { |
| 379 | if m != nil { |
| 380 | return m.InternalState |
| 381 | } |
| 382 | return "" |
| 383 | } |
| 384 | |
| 385 | func (m *ONU) GetPonPortID() int32 { |
| 386 | if m != nil { |
| 387 | return m.PonPortID |
| 388 | } |
| 389 | return 0 |
| 390 | } |
| 391 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 392 | func (m *ONU) GetHwAddress() string { |
| 393 | if m != nil { |
| 394 | return m.HwAddress |
| 395 | } |
| 396 | return "" |
| 397 | } |
| 398 | |
| 399 | func (m *ONU) GetPortNo() int32 { |
| 400 | if m != nil { |
| 401 | return m.PortNo |
| 402 | } |
| 403 | return 0 |
| 404 | } |
| 405 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 406 | func (m *ONU) GetServices() []*Service { |
| 407 | if m != nil { |
| 408 | return m.Services |
| 409 | } |
| 410 | return nil |
| 411 | } |
| 412 | |
| 413 | type Service struct { |
| 414 | Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` |
| 415 | HwAddress string `protobuf:"bytes,2,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"` |
| 416 | OnuSn string `protobuf:"bytes,3,opt,name=OnuSn,proto3" json:"OnuSn,omitempty"` |
| 417 | STag int32 `protobuf:"varint,4,opt,name=STag,proto3" json:"STag,omitempty"` |
| 418 | CTag int32 `protobuf:"varint,5,opt,name=CTag,proto3" json:"CTag,omitempty"` |
| 419 | NeedsEapol bool `protobuf:"varint,6,opt,name=NeedsEapol,proto3" json:"NeedsEapol,omitempty"` |
| 420 | NeedsDhcp bool `protobuf:"varint,7,opt,name=NeedsDhcp,proto3" json:"NeedsDhcp,omitempty"` |
| 421 | NeedsIgmp bool `protobuf:"varint,8,opt,name=NeedsIgmp,proto3" json:"NeedsIgmp,omitempty"` |
| 422 | GemPort int32 `protobuf:"varint,9,opt,name=GemPort,proto3" json:"GemPort,omitempty"` |
| 423 | EapolState string `protobuf:"bytes,10,opt,name=EapolState,proto3" json:"EapolState,omitempty"` |
| 424 | DhcpState string `protobuf:"bytes,11,opt,name=DhcpState,proto3" json:"DhcpState,omitempty"` |
Matteo Scandolo | 75ed5b9 | 2020-09-03 09:03:16 -0700 | [diff] [blame] | 425 | InternalState string `protobuf:"bytes,12,opt,name=InternalState,proto3" json:"InternalState,omitempty"` |
Matteo Scandolo | 618a658 | 2020-09-09 12:21:29 -0700 | [diff] [blame] | 426 | IGMPState string `protobuf:"bytes,13,opt,name=IGMPState,proto3" json:"IGMPState,omitempty"` |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 427 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 428 | XXX_unrecognized []byte `json:"-"` |
| 429 | XXX_sizecache int32 `json:"-"` |
| 430 | } |
| 431 | |
| 432 | func (m *Service) Reset() { *m = Service{} } |
| 433 | func (m *Service) String() string { return proto.CompactTextString(m) } |
| 434 | func (*Service) ProtoMessage() {} |
| 435 | func (*Service) Descriptor() ([]byte, []int) { |
| 436 | return fileDescriptor_ef7750073d18011b, []int{4} |
| 437 | } |
| 438 | |
| 439 | func (m *Service) XXX_Unmarshal(b []byte) error { |
| 440 | return xxx_messageInfo_Service.Unmarshal(m, b) |
| 441 | } |
| 442 | func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 443 | return xxx_messageInfo_Service.Marshal(b, m, deterministic) |
| 444 | } |
| 445 | func (m *Service) XXX_Merge(src proto.Message) { |
| 446 | xxx_messageInfo_Service.Merge(m, src) |
| 447 | } |
| 448 | func (m *Service) XXX_Size() int { |
| 449 | return xxx_messageInfo_Service.Size(m) |
| 450 | } |
| 451 | func (m *Service) XXX_DiscardUnknown() { |
| 452 | xxx_messageInfo_Service.DiscardUnknown(m) |
| 453 | } |
| 454 | |
| 455 | var xxx_messageInfo_Service proto.InternalMessageInfo |
| 456 | |
| 457 | func (m *Service) GetName() string { |
| 458 | if m != nil { |
| 459 | return m.Name |
| 460 | } |
| 461 | return "" |
| 462 | } |
| 463 | |
| 464 | func (m *Service) GetHwAddress() string { |
| 465 | if m != nil { |
| 466 | return m.HwAddress |
| 467 | } |
| 468 | return "" |
| 469 | } |
| 470 | |
| 471 | func (m *Service) GetOnuSn() string { |
| 472 | if m != nil { |
| 473 | return m.OnuSn |
| 474 | } |
| 475 | return "" |
| 476 | } |
| 477 | |
| 478 | func (m *Service) GetSTag() int32 { |
| 479 | if m != nil { |
| 480 | return m.STag |
| 481 | } |
| 482 | return 0 |
| 483 | } |
| 484 | |
| 485 | func (m *Service) GetCTag() int32 { |
| 486 | if m != nil { |
| 487 | return m.CTag |
| 488 | } |
| 489 | return 0 |
| 490 | } |
| 491 | |
| 492 | func (m *Service) GetNeedsEapol() bool { |
| 493 | if m != nil { |
| 494 | return m.NeedsEapol |
| 495 | } |
| 496 | return false |
| 497 | } |
| 498 | |
| 499 | func (m *Service) GetNeedsDhcp() bool { |
| 500 | if m != nil { |
| 501 | return m.NeedsDhcp |
| 502 | } |
| 503 | return false |
| 504 | } |
| 505 | |
| 506 | func (m *Service) GetNeedsIgmp() bool { |
| 507 | if m != nil { |
| 508 | return m.NeedsIgmp |
| 509 | } |
| 510 | return false |
| 511 | } |
| 512 | |
| 513 | func (m *Service) GetGemPort() int32 { |
| 514 | if m != nil { |
| 515 | return m.GemPort |
| 516 | } |
| 517 | return 0 |
| 518 | } |
| 519 | |
| 520 | func (m *Service) GetEapolState() string { |
| 521 | if m != nil { |
| 522 | return m.EapolState |
| 523 | } |
| 524 | return "" |
| 525 | } |
| 526 | |
| 527 | func (m *Service) GetDhcpState() string { |
| 528 | if m != nil { |
| 529 | return m.DhcpState |
| 530 | } |
| 531 | return "" |
| 532 | } |
| 533 | |
Matteo Scandolo | 75ed5b9 | 2020-09-03 09:03:16 -0700 | [diff] [blame] | 534 | func (m *Service) GetInternalState() string { |
| 535 | if m != nil { |
| 536 | return m.InternalState |
| 537 | } |
| 538 | return "" |
| 539 | } |
| 540 | |
Matteo Scandolo | 618a658 | 2020-09-09 12:21:29 -0700 | [diff] [blame] | 541 | func (m *Service) GetIGMPState() string { |
| 542 | if m != nil { |
| 543 | return m.IGMPState |
| 544 | } |
| 545 | return "" |
| 546 | } |
| 547 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 548 | type ONUTrafficSchedulers struct { |
| 549 | TraffSchedulers *tech_profile.TrafficSchedulers `protobuf:"bytes,1,opt,name=traffSchedulers,proto3" json:"traffSchedulers,omitempty"` |
| 550 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 551 | XXX_unrecognized []byte `json:"-"` |
| 552 | XXX_sizecache int32 `json:"-"` |
| 553 | } |
| 554 | |
| 555 | func (m *ONUTrafficSchedulers) Reset() { *m = ONUTrafficSchedulers{} } |
| 556 | func (m *ONUTrafficSchedulers) String() string { return proto.CompactTextString(m) } |
| 557 | func (*ONUTrafficSchedulers) ProtoMessage() {} |
| 558 | func (*ONUTrafficSchedulers) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 559 | return fileDescriptor_ef7750073d18011b, []int{5} |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 560 | } |
| 561 | |
| 562 | func (m *ONUTrafficSchedulers) XXX_Unmarshal(b []byte) error { |
| 563 | return xxx_messageInfo_ONUTrafficSchedulers.Unmarshal(m, b) |
| 564 | } |
| 565 | func (m *ONUTrafficSchedulers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 566 | return xxx_messageInfo_ONUTrafficSchedulers.Marshal(b, m, deterministic) |
| 567 | } |
| 568 | func (m *ONUTrafficSchedulers) XXX_Merge(src proto.Message) { |
| 569 | xxx_messageInfo_ONUTrafficSchedulers.Merge(m, src) |
| 570 | } |
| 571 | func (m *ONUTrafficSchedulers) XXX_Size() int { |
| 572 | return xxx_messageInfo_ONUTrafficSchedulers.Size(m) |
| 573 | } |
| 574 | func (m *ONUTrafficSchedulers) XXX_DiscardUnknown() { |
| 575 | xxx_messageInfo_ONUTrafficSchedulers.DiscardUnknown(m) |
| 576 | } |
| 577 | |
| 578 | var xxx_messageInfo_ONUTrafficSchedulers proto.InternalMessageInfo |
| 579 | |
| 580 | func (m *ONUTrafficSchedulers) GetTraffSchedulers() *tech_profile.TrafficSchedulers { |
| 581 | if m != nil { |
| 582 | return m.TraffSchedulers |
| 583 | } |
| 584 | return nil |
| 585 | } |
| 586 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 587 | type ONUs struct { |
| 588 | Items []*ONU `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 589 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 590 | XXX_unrecognized []byte `json:"-"` |
| 591 | XXX_sizecache int32 `json:"-"` |
| 592 | } |
| 593 | |
| 594 | func (m *ONUs) Reset() { *m = ONUs{} } |
| 595 | func (m *ONUs) String() string { return proto.CompactTextString(m) } |
| 596 | func (*ONUs) ProtoMessage() {} |
| 597 | func (*ONUs) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 598 | return fileDescriptor_ef7750073d18011b, []int{6} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 599 | } |
| 600 | |
| 601 | func (m *ONUs) XXX_Unmarshal(b []byte) error { |
| 602 | return xxx_messageInfo_ONUs.Unmarshal(m, b) |
| 603 | } |
| 604 | func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 605 | return xxx_messageInfo_ONUs.Marshal(b, m, deterministic) |
| 606 | } |
| 607 | func (m *ONUs) XXX_Merge(src proto.Message) { |
| 608 | xxx_messageInfo_ONUs.Merge(m, src) |
| 609 | } |
| 610 | func (m *ONUs) XXX_Size() int { |
| 611 | return xxx_messageInfo_ONUs.Size(m) |
| 612 | } |
| 613 | func (m *ONUs) XXX_DiscardUnknown() { |
| 614 | xxx_messageInfo_ONUs.DiscardUnknown(m) |
| 615 | } |
| 616 | |
| 617 | var xxx_messageInfo_ONUs proto.InternalMessageInfo |
| 618 | |
| 619 | func (m *ONUs) GetItems() []*ONU { |
| 620 | if m != nil { |
| 621 | return m.Items |
| 622 | } |
| 623 | return nil |
| 624 | } |
| 625 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 626 | type Services struct { |
| 627 | Items []*Service `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 628 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 629 | XXX_unrecognized []byte `json:"-"` |
| 630 | XXX_sizecache int32 `json:"-"` |
| 631 | } |
| 632 | |
| 633 | func (m *Services) Reset() { *m = Services{} } |
| 634 | func (m *Services) String() string { return proto.CompactTextString(m) } |
| 635 | func (*Services) ProtoMessage() {} |
| 636 | func (*Services) Descriptor() ([]byte, []int) { |
| 637 | return fileDescriptor_ef7750073d18011b, []int{7} |
| 638 | } |
| 639 | |
| 640 | func (m *Services) XXX_Unmarshal(b []byte) error { |
| 641 | return xxx_messageInfo_Services.Unmarshal(m, b) |
| 642 | } |
| 643 | func (m *Services) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 644 | return xxx_messageInfo_Services.Marshal(b, m, deterministic) |
| 645 | } |
| 646 | func (m *Services) XXX_Merge(src proto.Message) { |
| 647 | xxx_messageInfo_Services.Merge(m, src) |
| 648 | } |
| 649 | func (m *Services) XXX_Size() int { |
| 650 | return xxx_messageInfo_Services.Size(m) |
| 651 | } |
| 652 | func (m *Services) XXX_DiscardUnknown() { |
| 653 | xxx_messageInfo_Services.DiscardUnknown(m) |
| 654 | } |
| 655 | |
| 656 | var xxx_messageInfo_Services proto.InternalMessageInfo |
| 657 | |
| 658 | func (m *Services) GetItems() []*Service { |
| 659 | if m != nil { |
| 660 | return m.Items |
| 661 | } |
| 662 | return nil |
| 663 | } |
| 664 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 665 | type ONURequest struct { |
| 666 | SerialNumber string `protobuf:"bytes,1,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 667 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 668 | XXX_unrecognized []byte `json:"-"` |
| 669 | XXX_sizecache int32 `json:"-"` |
| 670 | } |
| 671 | |
| 672 | func (m *ONURequest) Reset() { *m = ONURequest{} } |
| 673 | func (m *ONURequest) String() string { return proto.CompactTextString(m) } |
| 674 | func (*ONURequest) ProtoMessage() {} |
| 675 | func (*ONURequest) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 676 | return fileDescriptor_ef7750073d18011b, []int{8} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 677 | } |
| 678 | |
| 679 | func (m *ONURequest) XXX_Unmarshal(b []byte) error { |
| 680 | return xxx_messageInfo_ONURequest.Unmarshal(m, b) |
| 681 | } |
| 682 | func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 683 | return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic) |
| 684 | } |
| 685 | func (m *ONURequest) XXX_Merge(src proto.Message) { |
| 686 | xxx_messageInfo_ONURequest.Merge(m, src) |
| 687 | } |
| 688 | func (m *ONURequest) XXX_Size() int { |
| 689 | return xxx_messageInfo_ONURequest.Size(m) |
| 690 | } |
| 691 | func (m *ONURequest) XXX_DiscardUnknown() { |
| 692 | xxx_messageInfo_ONURequest.DiscardUnknown(m) |
| 693 | } |
| 694 | |
| 695 | var xxx_messageInfo_ONURequest proto.InternalMessageInfo |
| 696 | |
| 697 | func (m *ONURequest) GetSerialNumber() string { |
| 698 | if m != nil { |
| 699 | return m.SerialNumber |
| 700 | } |
| 701 | return "" |
| 702 | } |
| 703 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 704 | type PONRequest struct { |
| 705 | PonPortId uint32 `protobuf:"varint,1,opt,name=PonPortId,proto3" json:"PonPortId,omitempty"` |
| 706 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 707 | XXX_unrecognized []byte `json:"-"` |
| 708 | XXX_sizecache int32 `json:"-"` |
| 709 | } |
| 710 | |
| 711 | func (m *PONRequest) Reset() { *m = PONRequest{} } |
| 712 | func (m *PONRequest) String() string { return proto.CompactTextString(m) } |
| 713 | func (*PONRequest) ProtoMessage() {} |
| 714 | func (*PONRequest) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 715 | return fileDescriptor_ef7750073d18011b, []int{9} |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 716 | } |
| 717 | |
| 718 | func (m *PONRequest) XXX_Unmarshal(b []byte) error { |
| 719 | return xxx_messageInfo_PONRequest.Unmarshal(m, b) |
| 720 | } |
| 721 | func (m *PONRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 722 | return xxx_messageInfo_PONRequest.Marshal(b, m, deterministic) |
| 723 | } |
| 724 | func (m *PONRequest) XXX_Merge(src proto.Message) { |
| 725 | xxx_messageInfo_PONRequest.Merge(m, src) |
| 726 | } |
| 727 | func (m *PONRequest) XXX_Size() int { |
| 728 | return xxx_messageInfo_PONRequest.Size(m) |
| 729 | } |
| 730 | func (m *PONRequest) XXX_DiscardUnknown() { |
| 731 | xxx_messageInfo_PONRequest.DiscardUnknown(m) |
| 732 | } |
| 733 | |
| 734 | var xxx_messageInfo_PONRequest proto.InternalMessageInfo |
| 735 | |
| 736 | func (m *PONRequest) GetPonPortId() uint32 { |
| 737 | if m != nil { |
| 738 | return m.PonPortId |
| 739 | } |
| 740 | return 0 |
| 741 | } |
| 742 | |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 743 | type AlarmType struct { |
| 744 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 745 | XXX_unrecognized []byte `json:"-"` |
| 746 | XXX_sizecache int32 `json:"-"` |
| 747 | } |
| 748 | |
| 749 | func (m *AlarmType) Reset() { *m = AlarmType{} } |
| 750 | func (m *AlarmType) String() string { return proto.CompactTextString(m) } |
| 751 | func (*AlarmType) ProtoMessage() {} |
| 752 | func (*AlarmType) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 753 | return fileDescriptor_ef7750073d18011b, []int{10} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 754 | } |
| 755 | |
| 756 | func (m *AlarmType) XXX_Unmarshal(b []byte) error { |
| 757 | return xxx_messageInfo_AlarmType.Unmarshal(m, b) |
| 758 | } |
| 759 | func (m *AlarmType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 760 | return xxx_messageInfo_AlarmType.Marshal(b, m, deterministic) |
| 761 | } |
| 762 | func (m *AlarmType) XXX_Merge(src proto.Message) { |
| 763 | xxx_messageInfo_AlarmType.Merge(m, src) |
| 764 | } |
| 765 | func (m *AlarmType) XXX_Size() int { |
| 766 | return xxx_messageInfo_AlarmType.Size(m) |
| 767 | } |
| 768 | func (m *AlarmType) XXX_DiscardUnknown() { |
| 769 | xxx_messageInfo_AlarmType.DiscardUnknown(m) |
| 770 | } |
| 771 | |
| 772 | var xxx_messageInfo_AlarmType proto.InternalMessageInfo |
| 773 | |
| 774 | type AlarmParameter struct { |
| 775 | Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` |
| 776 | Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` |
| 777 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 778 | XXX_unrecognized []byte `json:"-"` |
| 779 | XXX_sizecache int32 `json:"-"` |
| 780 | } |
| 781 | |
| 782 | func (m *AlarmParameter) Reset() { *m = AlarmParameter{} } |
| 783 | func (m *AlarmParameter) String() string { return proto.CompactTextString(m) } |
| 784 | func (*AlarmParameter) ProtoMessage() {} |
| 785 | func (*AlarmParameter) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 786 | return fileDescriptor_ef7750073d18011b, []int{11} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 787 | } |
| 788 | |
| 789 | func (m *AlarmParameter) XXX_Unmarshal(b []byte) error { |
| 790 | return xxx_messageInfo_AlarmParameter.Unmarshal(m, b) |
| 791 | } |
| 792 | func (m *AlarmParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 793 | return xxx_messageInfo_AlarmParameter.Marshal(b, m, deterministic) |
| 794 | } |
| 795 | func (m *AlarmParameter) XXX_Merge(src proto.Message) { |
| 796 | xxx_messageInfo_AlarmParameter.Merge(m, src) |
| 797 | } |
| 798 | func (m *AlarmParameter) XXX_Size() int { |
| 799 | return xxx_messageInfo_AlarmParameter.Size(m) |
| 800 | } |
| 801 | func (m *AlarmParameter) XXX_DiscardUnknown() { |
| 802 | xxx_messageInfo_AlarmParameter.DiscardUnknown(m) |
| 803 | } |
| 804 | |
| 805 | var xxx_messageInfo_AlarmParameter proto.InternalMessageInfo |
| 806 | |
| 807 | func (m *AlarmParameter) GetKey() string { |
| 808 | if m != nil { |
| 809 | return m.Key |
| 810 | } |
| 811 | return "" |
| 812 | } |
| 813 | |
| 814 | func (m *AlarmParameter) GetValue() string { |
| 815 | if m != nil { |
| 816 | return m.Value |
| 817 | } |
| 818 | return "" |
| 819 | } |
| 820 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 821 | // ONUAlarmRequest includes fields common to every Onu alarm, |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 822 | // plus an optional list of AlarmParameter list that can be used |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 823 | // to set additional fields in alarms that support them. |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 824 | type ONUAlarmRequest struct { |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 825 | AlarmType string `protobuf:"bytes,1,opt,name=AlarmType,proto3" json:"AlarmType,omitempty"` |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 826 | SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 827 | Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"` |
| 828 | Parameters []*AlarmParameter `protobuf:"bytes,4,rep,name=Parameters,proto3" json:"Parameters,omitempty"` |
| 829 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 830 | XXX_unrecognized []byte `json:"-"` |
| 831 | XXX_sizecache int32 `json:"-"` |
| 832 | } |
| 833 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 834 | func (m *ONUAlarmRequest) Reset() { *m = ONUAlarmRequest{} } |
| 835 | func (m *ONUAlarmRequest) String() string { return proto.CompactTextString(m) } |
| 836 | func (*ONUAlarmRequest) ProtoMessage() {} |
| 837 | func (*ONUAlarmRequest) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 838 | return fileDescriptor_ef7750073d18011b, []int{12} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 839 | } |
| 840 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 841 | func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error { |
| 842 | return xxx_messageInfo_ONUAlarmRequest.Unmarshal(m, b) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 843 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 844 | func (m *ONUAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 845 | return xxx_messageInfo_ONUAlarmRequest.Marshal(b, m, deterministic) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 846 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 847 | func (m *ONUAlarmRequest) XXX_Merge(src proto.Message) { |
| 848 | xxx_messageInfo_ONUAlarmRequest.Merge(m, src) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 849 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 850 | func (m *ONUAlarmRequest) XXX_Size() int { |
| 851 | return xxx_messageInfo_ONUAlarmRequest.Size(m) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 852 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 853 | func (m *ONUAlarmRequest) XXX_DiscardUnknown() { |
| 854 | xxx_messageInfo_ONUAlarmRequest.DiscardUnknown(m) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 855 | } |
| 856 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 857 | var xxx_messageInfo_ONUAlarmRequest proto.InternalMessageInfo |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 858 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 859 | func (m *ONUAlarmRequest) GetAlarmType() string { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 860 | if m != nil { |
| 861 | return m.AlarmType |
| 862 | } |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 863 | return "" |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 864 | } |
| 865 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 866 | func (m *ONUAlarmRequest) GetSerialNumber() string { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 867 | if m != nil { |
| 868 | return m.SerialNumber |
| 869 | } |
| 870 | return "" |
| 871 | } |
| 872 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 873 | func (m *ONUAlarmRequest) GetStatus() string { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 874 | if m != nil { |
| 875 | return m.Status |
| 876 | } |
| 877 | return "" |
| 878 | } |
| 879 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 880 | func (m *ONUAlarmRequest) GetParameters() []*AlarmParameter { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 881 | if m != nil { |
| 882 | return m.Parameters |
| 883 | } |
| 884 | return nil |
| 885 | } |
| 886 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 887 | // OLT alarm request |
| 888 | type OLTAlarmRequest struct { |
| 889 | InterfaceID uint32 `protobuf:"varint,1,opt,name=InterfaceID,proto3" json:"InterfaceID,omitempty"` |
| 890 | InterfaceType string `protobuf:"bytes,2,opt,name=InterfaceType,proto3" json:"InterfaceType,omitempty"` |
| 891 | Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"` |
| 892 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 893 | XXX_unrecognized []byte `json:"-"` |
| 894 | XXX_sizecache int32 `json:"-"` |
| 895 | } |
| 896 | |
| 897 | func (m *OLTAlarmRequest) Reset() { *m = OLTAlarmRequest{} } |
| 898 | func (m *OLTAlarmRequest) String() string { return proto.CompactTextString(m) } |
| 899 | func (*OLTAlarmRequest) ProtoMessage() {} |
| 900 | func (*OLTAlarmRequest) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 901 | return fileDescriptor_ef7750073d18011b, []int{13} |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 902 | } |
| 903 | |
| 904 | func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error { |
| 905 | return xxx_messageInfo_OLTAlarmRequest.Unmarshal(m, b) |
| 906 | } |
| 907 | func (m *OLTAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 908 | return xxx_messageInfo_OLTAlarmRequest.Marshal(b, m, deterministic) |
| 909 | } |
| 910 | func (m *OLTAlarmRequest) XXX_Merge(src proto.Message) { |
| 911 | xxx_messageInfo_OLTAlarmRequest.Merge(m, src) |
| 912 | } |
| 913 | func (m *OLTAlarmRequest) XXX_Size() int { |
| 914 | return xxx_messageInfo_OLTAlarmRequest.Size(m) |
| 915 | } |
| 916 | func (m *OLTAlarmRequest) XXX_DiscardUnknown() { |
| 917 | xxx_messageInfo_OLTAlarmRequest.DiscardUnknown(m) |
| 918 | } |
| 919 | |
| 920 | var xxx_messageInfo_OLTAlarmRequest proto.InternalMessageInfo |
| 921 | |
| 922 | func (m *OLTAlarmRequest) GetInterfaceID() uint32 { |
| 923 | if m != nil { |
| 924 | return m.InterfaceID |
| 925 | } |
| 926 | return 0 |
| 927 | } |
| 928 | |
| 929 | func (m *OLTAlarmRequest) GetInterfaceType() string { |
| 930 | if m != nil { |
| 931 | return m.InterfaceType |
| 932 | } |
| 933 | return "" |
| 934 | } |
| 935 | |
| 936 | func (m *OLTAlarmRequest) GetStatus() string { |
| 937 | if m != nil { |
| 938 | return m.Status |
| 939 | } |
| 940 | return "" |
| 941 | } |
| 942 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 943 | type VersionNumber struct { |
| 944 | Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| 945 | BuildTime string `protobuf:"bytes,2,opt,name=buildTime,proto3" json:"buildTime,omitempty"` |
| 946 | CommitHash string `protobuf:"bytes,3,opt,name=commitHash,proto3" json:"commitHash,omitempty"` |
| 947 | GitStatus string `protobuf:"bytes,4,opt,name=gitStatus,proto3" json:"gitStatus,omitempty"` |
| 948 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 949 | XXX_unrecognized []byte `json:"-"` |
| 950 | XXX_sizecache int32 `json:"-"` |
| 951 | } |
| 952 | |
| 953 | func (m *VersionNumber) Reset() { *m = VersionNumber{} } |
| 954 | func (m *VersionNumber) String() string { return proto.CompactTextString(m) } |
| 955 | func (*VersionNumber) ProtoMessage() {} |
| 956 | func (*VersionNumber) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 957 | return fileDescriptor_ef7750073d18011b, []int{14} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 958 | } |
| 959 | |
| 960 | func (m *VersionNumber) XXX_Unmarshal(b []byte) error { |
| 961 | return xxx_messageInfo_VersionNumber.Unmarshal(m, b) |
| 962 | } |
| 963 | func (m *VersionNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 964 | return xxx_messageInfo_VersionNumber.Marshal(b, m, deterministic) |
| 965 | } |
| 966 | func (m *VersionNumber) XXX_Merge(src proto.Message) { |
| 967 | xxx_messageInfo_VersionNumber.Merge(m, src) |
| 968 | } |
| 969 | func (m *VersionNumber) XXX_Size() int { |
| 970 | return xxx_messageInfo_VersionNumber.Size(m) |
| 971 | } |
| 972 | func (m *VersionNumber) XXX_DiscardUnknown() { |
| 973 | xxx_messageInfo_VersionNumber.DiscardUnknown(m) |
| 974 | } |
| 975 | |
| 976 | var xxx_messageInfo_VersionNumber proto.InternalMessageInfo |
| 977 | |
| 978 | func (m *VersionNumber) GetVersion() string { |
| 979 | if m != nil { |
| 980 | return m.Version |
| 981 | } |
| 982 | return "" |
| 983 | } |
| 984 | |
| 985 | func (m *VersionNumber) GetBuildTime() string { |
| 986 | if m != nil { |
| 987 | return m.BuildTime |
| 988 | } |
| 989 | return "" |
| 990 | } |
| 991 | |
| 992 | func (m *VersionNumber) GetCommitHash() string { |
| 993 | if m != nil { |
| 994 | return m.CommitHash |
| 995 | } |
| 996 | return "" |
| 997 | } |
| 998 | |
| 999 | func (m *VersionNumber) GetGitStatus() string { |
| 1000 | if m != nil { |
| 1001 | return m.GitStatus |
| 1002 | } |
| 1003 | return "" |
| 1004 | } |
| 1005 | |
| 1006 | type LogLevel struct { |
| 1007 | Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` |
| 1008 | Caller bool `protobuf:"varint,2,opt,name=caller,proto3" json:"caller,omitempty"` |
| 1009 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1010 | XXX_unrecognized []byte `json:"-"` |
| 1011 | XXX_sizecache int32 `json:"-"` |
| 1012 | } |
| 1013 | |
| 1014 | func (m *LogLevel) Reset() { *m = LogLevel{} } |
| 1015 | func (m *LogLevel) String() string { return proto.CompactTextString(m) } |
| 1016 | func (*LogLevel) ProtoMessage() {} |
| 1017 | func (*LogLevel) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1018 | return fileDescriptor_ef7750073d18011b, []int{15} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1019 | } |
| 1020 | |
| 1021 | func (m *LogLevel) XXX_Unmarshal(b []byte) error { |
| 1022 | return xxx_messageInfo_LogLevel.Unmarshal(m, b) |
| 1023 | } |
| 1024 | func (m *LogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1025 | return xxx_messageInfo_LogLevel.Marshal(b, m, deterministic) |
| 1026 | } |
| 1027 | func (m *LogLevel) XXX_Merge(src proto.Message) { |
| 1028 | xxx_messageInfo_LogLevel.Merge(m, src) |
| 1029 | } |
| 1030 | func (m *LogLevel) XXX_Size() int { |
| 1031 | return xxx_messageInfo_LogLevel.Size(m) |
| 1032 | } |
| 1033 | func (m *LogLevel) XXX_DiscardUnknown() { |
| 1034 | xxx_messageInfo_LogLevel.DiscardUnknown(m) |
| 1035 | } |
| 1036 | |
| 1037 | var xxx_messageInfo_LogLevel proto.InternalMessageInfo |
| 1038 | |
| 1039 | func (m *LogLevel) GetLevel() string { |
| 1040 | if m != nil { |
| 1041 | return m.Level |
| 1042 | } |
| 1043 | return "" |
| 1044 | } |
| 1045 | |
| 1046 | func (m *LogLevel) GetCaller() bool { |
| 1047 | if m != nil { |
| 1048 | return m.Caller |
| 1049 | } |
| 1050 | return false |
| 1051 | } |
| 1052 | |
| 1053 | type Response struct { |
| 1054 | StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` |
| 1055 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` |
| 1056 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1057 | XXX_unrecognized []byte `json:"-"` |
| 1058 | XXX_sizecache int32 `json:"-"` |
| 1059 | } |
| 1060 | |
| 1061 | func (m *Response) Reset() { *m = Response{} } |
| 1062 | func (m *Response) String() string { return proto.CompactTextString(m) } |
| 1063 | func (*Response) ProtoMessage() {} |
| 1064 | func (*Response) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1065 | return fileDescriptor_ef7750073d18011b, []int{16} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1066 | } |
| 1067 | |
| 1068 | func (m *Response) XXX_Unmarshal(b []byte) error { |
| 1069 | return xxx_messageInfo_Response.Unmarshal(m, b) |
| 1070 | } |
| 1071 | func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1072 | return xxx_messageInfo_Response.Marshal(b, m, deterministic) |
| 1073 | } |
| 1074 | func (m *Response) XXX_Merge(src proto.Message) { |
| 1075 | xxx_messageInfo_Response.Merge(m, src) |
| 1076 | } |
| 1077 | func (m *Response) XXX_Size() int { |
| 1078 | return xxx_messageInfo_Response.Size(m) |
| 1079 | } |
| 1080 | func (m *Response) XXX_DiscardUnknown() { |
| 1081 | xxx_messageInfo_Response.DiscardUnknown(m) |
| 1082 | } |
| 1083 | |
| 1084 | var xxx_messageInfo_Response proto.InternalMessageInfo |
| 1085 | |
| 1086 | func (m *Response) GetStatusCode() int32 { |
| 1087 | if m != nil { |
| 1088 | return m.StatusCode |
| 1089 | } |
| 1090 | return 0 |
| 1091 | } |
| 1092 | |
| 1093 | func (m *Response) GetMessage() string { |
| 1094 | if m != nil { |
| 1095 | return m.Message |
| 1096 | } |
| 1097 | return "" |
| 1098 | } |
| 1099 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1100 | type IgmpRequest struct { |
| 1101 | OnuReq *ONURequest `protobuf:"bytes,1,opt,name=OnuReq,proto3" json:"OnuReq,omitempty"` |
| 1102 | SubActionVal SubActionTypes `protobuf:"varint,2,opt,name=SubActionVal,proto3,enum=bbsim.SubActionTypes" json:"SubActionVal,omitempty"` |
| 1103 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1104 | XXX_unrecognized []byte `json:"-"` |
| 1105 | XXX_sizecache int32 `json:"-"` |
| 1106 | } |
| 1107 | |
| 1108 | func (m *IgmpRequest) Reset() { *m = IgmpRequest{} } |
| 1109 | func (m *IgmpRequest) String() string { return proto.CompactTextString(m) } |
| 1110 | func (*IgmpRequest) ProtoMessage() {} |
| 1111 | func (*IgmpRequest) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1112 | return fileDescriptor_ef7750073d18011b, []int{17} |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1113 | } |
| 1114 | |
| 1115 | func (m *IgmpRequest) XXX_Unmarshal(b []byte) error { |
| 1116 | return xxx_messageInfo_IgmpRequest.Unmarshal(m, b) |
| 1117 | } |
| 1118 | func (m *IgmpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1119 | return xxx_messageInfo_IgmpRequest.Marshal(b, m, deterministic) |
| 1120 | } |
| 1121 | func (m *IgmpRequest) XXX_Merge(src proto.Message) { |
| 1122 | xxx_messageInfo_IgmpRequest.Merge(m, src) |
| 1123 | } |
| 1124 | func (m *IgmpRequest) XXX_Size() int { |
| 1125 | return xxx_messageInfo_IgmpRequest.Size(m) |
| 1126 | } |
| 1127 | func (m *IgmpRequest) XXX_DiscardUnknown() { |
| 1128 | xxx_messageInfo_IgmpRequest.DiscardUnknown(m) |
| 1129 | } |
| 1130 | |
| 1131 | var xxx_messageInfo_IgmpRequest proto.InternalMessageInfo |
| 1132 | |
| 1133 | func (m *IgmpRequest) GetOnuReq() *ONURequest { |
| 1134 | if m != nil { |
| 1135 | return m.OnuReq |
| 1136 | } |
| 1137 | return nil |
| 1138 | } |
| 1139 | |
| 1140 | func (m *IgmpRequest) GetSubActionVal() SubActionTypes { |
| 1141 | if m != nil { |
| 1142 | return m.SubActionVal |
| 1143 | } |
| 1144 | return SubActionTypes_JOIN |
| 1145 | } |
| 1146 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1147 | type Flows struct { |
| 1148 | FlowCount uint32 `protobuf:"varint,1,opt,name=flow_count,json=flowCount,proto3" json:"flow_count,omitempty"` |
| 1149 | Flows []*openolt.Flow `protobuf:"bytes,2,rep,name=flows,proto3" json:"flows,omitempty"` |
| 1150 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1151 | XXX_unrecognized []byte `json:"-"` |
| 1152 | XXX_sizecache int32 `json:"-"` |
| 1153 | } |
| 1154 | |
| 1155 | func (m *Flows) Reset() { *m = Flows{} } |
| 1156 | func (m *Flows) String() string { return proto.CompactTextString(m) } |
| 1157 | func (*Flows) ProtoMessage() {} |
| 1158 | func (*Flows) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1159 | return fileDescriptor_ef7750073d18011b, []int{18} |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1160 | } |
| 1161 | |
| 1162 | func (m *Flows) XXX_Unmarshal(b []byte) error { |
| 1163 | return xxx_messageInfo_Flows.Unmarshal(m, b) |
| 1164 | } |
| 1165 | func (m *Flows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1166 | return xxx_messageInfo_Flows.Marshal(b, m, deterministic) |
| 1167 | } |
| 1168 | func (m *Flows) XXX_Merge(src proto.Message) { |
| 1169 | xxx_messageInfo_Flows.Merge(m, src) |
| 1170 | } |
| 1171 | func (m *Flows) XXX_Size() int { |
| 1172 | return xxx_messageInfo_Flows.Size(m) |
| 1173 | } |
| 1174 | func (m *Flows) XXX_DiscardUnknown() { |
| 1175 | xxx_messageInfo_Flows.DiscardUnknown(m) |
| 1176 | } |
| 1177 | |
| 1178 | var xxx_messageInfo_Flows proto.InternalMessageInfo |
| 1179 | |
| 1180 | func (m *Flows) GetFlowCount() uint32 { |
| 1181 | if m != nil { |
| 1182 | return m.FlowCount |
| 1183 | } |
| 1184 | return 0 |
| 1185 | } |
| 1186 | |
| 1187 | func (m *Flows) GetFlows() []*openolt.Flow { |
| 1188 | if m != nil { |
| 1189 | return m.Flows |
| 1190 | } |
| 1191 | return nil |
| 1192 | } |
| 1193 | |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1194 | type Timeout struct { |
| 1195 | Delay uint32 `protobuf:"varint,1,opt,name=delay,proto3" json:"delay,omitempty"` |
| 1196 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1197 | XXX_unrecognized []byte `json:"-"` |
| 1198 | XXX_sizecache int32 `json:"-"` |
| 1199 | } |
| 1200 | |
| 1201 | func (m *Timeout) Reset() { *m = Timeout{} } |
| 1202 | func (m *Timeout) String() string { return proto.CompactTextString(m) } |
| 1203 | func (*Timeout) ProtoMessage() {} |
| 1204 | func (*Timeout) Descriptor() ([]byte, []int) { |
| 1205 | return fileDescriptor_ef7750073d18011b, []int{19} |
| 1206 | } |
| 1207 | |
| 1208 | func (m *Timeout) XXX_Unmarshal(b []byte) error { |
| 1209 | return xxx_messageInfo_Timeout.Unmarshal(m, b) |
| 1210 | } |
| 1211 | func (m *Timeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1212 | return xxx_messageInfo_Timeout.Marshal(b, m, deterministic) |
| 1213 | } |
| 1214 | func (m *Timeout) XXX_Merge(src proto.Message) { |
| 1215 | xxx_messageInfo_Timeout.Merge(m, src) |
| 1216 | } |
| 1217 | func (m *Timeout) XXX_Size() int { |
| 1218 | return xxx_messageInfo_Timeout.Size(m) |
| 1219 | } |
| 1220 | func (m *Timeout) XXX_DiscardUnknown() { |
| 1221 | xxx_messageInfo_Timeout.DiscardUnknown(m) |
| 1222 | } |
| 1223 | |
| 1224 | var xxx_messageInfo_Timeout proto.InternalMessageInfo |
| 1225 | |
| 1226 | func (m *Timeout) GetDelay() uint32 { |
| 1227 | if m != nil { |
| 1228 | return m.Delay |
| 1229 | } |
| 1230 | return 0 |
| 1231 | } |
| 1232 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1233 | type Empty struct { |
| 1234 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1235 | XXX_unrecognized []byte `json:"-"` |
| 1236 | XXX_sizecache int32 `json:"-"` |
| 1237 | } |
| 1238 | |
| 1239 | func (m *Empty) Reset() { *m = Empty{} } |
| 1240 | func (m *Empty) String() string { return proto.CompactTextString(m) } |
| 1241 | func (*Empty) ProtoMessage() {} |
| 1242 | func (*Empty) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1243 | return fileDescriptor_ef7750073d18011b, []int{20} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1244 | } |
| 1245 | |
| 1246 | func (m *Empty) XXX_Unmarshal(b []byte) error { |
| 1247 | return xxx_messageInfo_Empty.Unmarshal(m, b) |
| 1248 | } |
| 1249 | func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1250 | return xxx_messageInfo_Empty.Marshal(b, m, deterministic) |
| 1251 | } |
| 1252 | func (m *Empty) XXX_Merge(src proto.Message) { |
| 1253 | xxx_messageInfo_Empty.Merge(m, src) |
| 1254 | } |
| 1255 | func (m *Empty) XXX_Size() int { |
| 1256 | return xxx_messageInfo_Empty.Size(m) |
| 1257 | } |
| 1258 | func (m *Empty) XXX_DiscardUnknown() { |
| 1259 | xxx_messageInfo_Empty.DiscardUnknown(m) |
| 1260 | } |
| 1261 | |
| 1262 | var xxx_messageInfo_Empty proto.InternalMessageInfo |
| 1263 | |
| 1264 | func init() { |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1265 | proto.RegisterEnum("bbsim.SubActionTypes", SubActionTypes_name, SubActionTypes_value) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1266 | proto.RegisterEnum("bbsim.AlarmType_Types", AlarmType_Types_name, AlarmType_Types_value) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1267 | proto.RegisterType((*PONPort)(nil), "bbsim.PONPort") |
| 1268 | proto.RegisterType((*NNIPort)(nil), "bbsim.NNIPort") |
| 1269 | proto.RegisterType((*Olt)(nil), "bbsim.Olt") |
| 1270 | proto.RegisterType((*ONU)(nil), "bbsim.ONU") |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1271 | proto.RegisterType((*Service)(nil), "bbsim.Service") |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1272 | proto.RegisterType((*ONUTrafficSchedulers)(nil), "bbsim.ONUTrafficSchedulers") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1273 | proto.RegisterType((*ONUs)(nil), "bbsim.ONUs") |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1274 | proto.RegisterType((*Services)(nil), "bbsim.Services") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1275 | proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest") |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1276 | proto.RegisterType((*PONRequest)(nil), "bbsim.PONRequest") |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1277 | proto.RegisterType((*AlarmType)(nil), "bbsim.AlarmType") |
| 1278 | proto.RegisterType((*AlarmParameter)(nil), "bbsim.AlarmParameter") |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1279 | proto.RegisterType((*ONUAlarmRequest)(nil), "bbsim.ONUAlarmRequest") |
| 1280 | proto.RegisterType((*OLTAlarmRequest)(nil), "bbsim.OLTAlarmRequest") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1281 | proto.RegisterType((*VersionNumber)(nil), "bbsim.VersionNumber") |
| 1282 | proto.RegisterType((*LogLevel)(nil), "bbsim.LogLevel") |
| 1283 | proto.RegisterType((*Response)(nil), "bbsim.Response") |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1284 | proto.RegisterType((*IgmpRequest)(nil), "bbsim.IgmpRequest") |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1285 | proto.RegisterType((*Flows)(nil), "bbsim.Flows") |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1286 | proto.RegisterType((*Timeout)(nil), "bbsim.Timeout") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1287 | proto.RegisterType((*Empty)(nil), "bbsim.Empty") |
| 1288 | } |
| 1289 | |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1290 | func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) } |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1291 | |
| 1292 | var fileDescriptor_ef7750073d18011b = []byte{ |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1293 | // 1563 bytes of a gzipped FileDescriptorProto |
| 1294 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdb, 0x52, 0xdb, 0xc6, |
| 1295 | 0x1b, 0xf7, 0x01, 0x9f, 0x3e, 0x63, 0x23, 0x36, 0x81, 0x78, 0x08, 0xff, 0x7f, 0x3c, 0x6a, 0xda, |
| 1296 | 0x21, 0x99, 0x86, 0x34, 0xd0, 0x43, 0x72, 0x29, 0x6c, 0xe1, 0xa8, 0x18, 0x49, 0xb3, 0xb2, 0xc9, |
| 1297 | 0xe4, 0x4a, 0x23, 0xec, 0x05, 0x3c, 0x23, 0x4b, 0x8e, 0xb4, 0x86, 0xe1, 0x01, 0xfa, 0x22, 0x7d, |
| 1298 | 0xa2, 0x3e, 0x41, 0xef, 0xda, 0xfb, 0x3e, 0x40, 0x67, 0x3a, 0xbb, 0x5a, 0xc9, 0x12, 0x36, 0x2d, |
| 1299 | 0xe9, 0x4d, 0x6f, 0x18, 0x7d, 0xbf, 0xef, 0x7c, 0xf0, 0xf7, 0x2d, 0xb0, 0xe5, 0xcc, 0x26, 0xaf, |
| 1300 | 0xcf, 0xcf, 0xc3, 0xc9, 0x34, 0xfa, 0xbb, 0x3f, 0x0b, 0x7c, 0xea, 0xa3, 0x12, 0x27, 0x76, 0x9e, |
| 1301 | 0x5e, 0xfb, 0x2e, 0xbd, 0x72, 0x6c, 0x0e, 0x86, 0xaf, 0xfd, 0x19, 0xf1, 0x7c, 0x97, 0x46, 0x32, |
| 1302 | 0x3b, 0xed, 0x2c, 0x93, 0x92, 0xd1, 0x15, 0xfb, 0xbe, 0x98, 0xb8, 0x24, 0x92, 0x90, 0x7f, 0x80, |
| 1303 | 0x8a, 0x69, 0xe8, 0xa6, 0x1f, 0x50, 0xd4, 0x84, 0x82, 0xd6, 0x6d, 0xe5, 0xdb, 0xf9, 0xbd, 0x12, |
| 1304 | 0x2e, 0x68, 0x5d, 0xb4, 0x0b, 0x35, 0x63, 0x46, 0x02, 0x8b, 0x3a, 0x94, 0xb4, 0x0a, 0xed, 0xfc, |
| 1305 | 0x5e, 0x0d, 0x2f, 0x00, 0xa6, 0xa8, 0xeb, 0xda, 0xbf, 0x50, 0xfc, 0x2d, 0x0f, 0x45, 0xc3, 0x5d, |
| 1306 | 0xd6, 0x92, 0x61, 0xdd, 0x22, 0xc1, 0xc4, 0x71, 0xf5, 0xf9, 0xf4, 0x9c, 0x04, 0x42, 0x31, 0x83, |
| 1307 | 0x65, 0x2d, 0x17, 0xef, 0x58, 0x46, 0xcf, 0xa1, 0xa1, 0x79, 0x94, 0x04, 0x9e, 0xe3, 0x46, 0x12, |
| 1308 | 0x6b, 0x5c, 0x22, 0x0b, 0x72, 0xbf, 0x66, 0xab, 0xc2, 0x59, 0x05, 0xcd, 0x44, 0x2f, 0xa1, 0x2a, |
| 1309 | 0x12, 0x09, 0x5b, 0xa5, 0x76, 0x71, 0xaf, 0x7e, 0xd0, 0xdc, 0x8f, 0xea, 0x2c, 0x60, 0x9c, 0xf0, |
| 1310 | 0x99, 0xac, 0xa8, 0x56, 0xd8, 0x2a, 0x67, 0x64, 0x05, 0x8c, 0x13, 0xbe, 0xfc, 0x27, 0xcb, 0x53, |
| 1311 | 0x1f, 0xfe, 0x67, 0x79, 0xee, 0x42, 0xcd, 0xf4, 0x3d, 0x16, 0x8b, 0xd6, 0x6d, 0x95, 0xb8, 0xfb, |
| 1312 | 0x05, 0xc0, 0xb8, 0xef, 0x6f, 0x94, 0xf1, 0x38, 0x20, 0x61, 0xd8, 0xaa, 0x46, 0x1e, 0x12, 0x00, |
| 1313 | 0x6d, 0x43, 0x99, 0xc9, 0xe9, 0x7e, 0xab, 0xc6, 0x15, 0x05, 0xc5, 0xf2, 0x0f, 0x49, 0x70, 0x3d, |
| 1314 | 0x19, 0x91, 0xb0, 0x05, 0x99, 0xfc, 0xad, 0x08, 0xc6, 0x09, 0x5f, 0xfe, 0xa3, 0x00, 0x15, 0x81, |
| 1315 | 0x22, 0x04, 0x6b, 0xba, 0x33, 0x25, 0xbc, 0x0a, 0x35, 0xcc, 0xbf, 0xb3, 0x11, 0x14, 0xee, 0x46, |
| 1316 | 0xf0, 0x18, 0x4a, 0x86, 0x37, 0xb7, 0x3c, 0x91, 0x7d, 0x44, 0x30, 0x3b, 0xd6, 0xc0, 0xb9, 0xe4, |
| 1317 | 0x09, 0x97, 0x30, 0xff, 0x66, 0x58, 0x87, 0x61, 0x51, 0x8a, 0xfc, 0x1b, 0xfd, 0x1f, 0x40, 0x27, |
| 1318 | 0x64, 0x1c, 0xaa, 0xce, 0xcc, 0x77, 0x5b, 0xe5, 0x76, 0x7e, 0xaf, 0x8a, 0x53, 0x08, 0xf3, 0xcd, |
| 1319 | 0xa9, 0xee, 0xd5, 0x68, 0xc6, 0x47, 0xa1, 0x8a, 0x17, 0x40, 0xc2, 0xd5, 0x2e, 0xa7, 0x33, 0x5e, |
| 1320 | 0x9b, 0x98, 0xcb, 0x00, 0xd4, 0x82, 0x4a, 0x8f, 0x4c, 0x59, 0x41, 0x44, 0x71, 0x62, 0x92, 0x79, |
| 1321 | 0xe5, 0xe6, 0xa3, 0xa6, 0x00, 0x0f, 0x3c, 0x85, 0x30, 0xbb, 0xcc, 0x7e, 0xc4, 0xae, 0x47, 0x19, |
| 1322 | 0x27, 0xc0, 0x72, 0x57, 0xd7, 0xef, 0xe9, 0xaa, 0xd6, 0x3b, 0x35, 0x23, 0x89, 0x46, 0x64, 0x23, |
| 1323 | 0x01, 0x64, 0x07, 0x1e, 0x1b, 0xfa, 0x70, 0x10, 0x38, 0x17, 0x17, 0x93, 0x91, 0x35, 0xba, 0x22, |
| 1324 | 0xe3, 0xb9, 0x4b, 0x82, 0x10, 0x69, 0xb0, 0x41, 0x19, 0xb8, 0x80, 0x78, 0x2b, 0xea, 0x07, 0xcf, |
| 1325 | 0xf6, 0x33, 0x3b, 0x61, 0x49, 0x13, 0xdf, 0xd5, 0x93, 0xf7, 0x60, 0xcd, 0xd0, 0x87, 0x21, 0x6a, |
| 1326 | 0x43, 0x69, 0x42, 0xc9, 0x94, 0x19, 0x62, 0x73, 0x00, 0x62, 0x0e, 0x0c, 0x7d, 0x88, 0x23, 0x86, |
| 1327 | 0xfc, 0x0d, 0x54, 0x45, 0xff, 0x43, 0xf4, 0x3c, 0x2b, 0x7d, 0x77, 0x6a, 0x12, 0x0d, 0x60, 0xfa, |
| 1328 | 0xe4, 0xd3, 0x9c, 0x84, 0x74, 0xe9, 0x87, 0x92, 0x5f, 0xfe, 0xa1, 0xc8, 0x2f, 0x01, 0x4c, 0x43, |
| 1329 | 0x8f, 0x35, 0x52, 0x23, 0x3f, 0xe6, 0xe2, 0x8d, 0xc5, 0xc8, 0x8f, 0xe5, 0x5f, 0x8b, 0x50, 0x53, |
| 1330 | 0x5c, 0x27, 0x98, 0x0e, 0x6e, 0x67, 0x44, 0xfe, 0xa5, 0x08, 0x25, 0xf6, 0x11, 0xa2, 0x0a, 0x14, |
| 1331 | 0xfb, 0x86, 0x25, 0xe5, 0x50, 0x13, 0xa0, 0xfb, 0x51, 0xd3, 0x7b, 0x76, 0x4f, 0xb1, 0x4c, 0x29, |
| 1332 | 0x8f, 0x1a, 0x50, 0x33, 0xf4, 0xa1, 0xad, 0xf4, 0x15, 0x7c, 0x2a, 0x15, 0xd0, 0x13, 0x78, 0xc4, |
| 1333 | 0x48, 0x6b, 0xa0, 0xe0, 0xc1, 0xd0, 0xb4, 0x8f, 0x15, 0xad, 0x3f, 0xc4, 0xaa, 0x54, 0x44, 0xdb, |
| 1334 | 0x80, 0x38, 0x43, 0xeb, 0xe9, 0x4a, 0xdf, 0xee, 0xaa, 0x3d, 0xac, 0x74, 0x55, 0x69, 0x2d, 0x56, |
| 1335 | 0xe8, 0x62, 0xed, 0x78, 0x60, 0x1b, 0xc7, 0xf6, 0x07, 0x4d, 0xef, 0x1a, 0x1f, 0xa4, 0x12, 0xda, |
| 1336 | 0x85, 0x16, 0x63, 0xf4, 0x0d, 0xcb, 0x62, 0xb8, 0x71, 0xda, 0xd1, 0xec, 0xce, 0x7b, 0x45, 0xd7, |
| 1337 | 0xd5, 0xbe, 0x54, 0x4e, 0xfc, 0x70, 0x73, 0x56, 0xe2, 0xa7, 0x82, 0x5e, 0xc0, 0x97, 0x8c, 0x31, |
| 1338 | 0xc0, 0x8a, 0x6e, 0x9d, 0x6a, 0x96, 0xa5, 0x19, 0xba, 0xad, 0xe9, 0x03, 0x15, 0x1f, 0xab, 0x58, |
| 1339 | 0xd5, 0x3b, 0xaa, 0xfd, 0x41, 0xc1, 0xba, 0xa6, 0xf7, 0xa4, 0x2a, 0xda, 0x81, 0x6d, 0x1e, 0x7a, |
| 1340 | 0x67, 0xa0, 0x9d, 0x29, 0x03, 0x26, 0x18, 0x9b, 0xa9, 0xa1, 0x16, 0x1f, 0x12, 0xdb, 0xc4, 0x46, |
| 1341 | 0x47, 0xb5, 0x2c, 0x96, 0xaf, 0x8a, 0xb1, 0x81, 0x25, 0x40, 0x6d, 0xd8, 0x4d, 0xc7, 0x75, 0xa2, |
| 1342 | 0x7e, 0xb4, 0xad, 0x8f, 0x7a, 0x27, 0xd1, 0xad, 0xa3, 0x2d, 0xd8, 0x64, 0x12, 0xda, 0x60, 0x68, |
| 1343 | 0x9b, 0x86, 0xce, 0x6a, 0x31, 0xb0, 0xa4, 0x75, 0xb4, 0x09, 0x8d, 0xa4, 0x52, 0x4c, 0x5d, 0x6a, |
| 1344 | 0xdc, 0x85, 0x8e, 0xa4, 0x66, 0x9c, 0x58, 0x0c, 0x99, 0x1d, 0x9b, 0x65, 0x21, 0x6d, 0xc4, 0xf5, |
| 1345 | 0xc8, 0x30, 0x3a, 0x22, 0x2a, 0x09, 0x21, 0x68, 0xa6, 0xb9, 0xc7, 0x9a, 0xb4, 0x89, 0x1e, 0xc1, |
| 1346 | 0x46, 0x1a, 0x53, 0x4e, 0x35, 0x09, 0xc9, 0x6f, 0xa1, 0xc9, 0xfb, 0x6b, 0x3a, 0x81, 0x33, 0x25, |
| 1347 | 0x94, 0x04, 0x48, 0x82, 0xe2, 0x09, 0xb9, 0x15, 0x93, 0xc3, 0x3e, 0xd9, 0x5e, 0x39, 0x73, 0xdc, |
| 1348 | 0x79, 0x7c, 0x97, 0x22, 0x42, 0xfe, 0x39, 0xcf, 0xed, 0x71, 0xed, 0xd4, 0x30, 0x25, 0xd3, 0x22, |
| 1349 | 0x2c, 0x2c, 0x80, 0x07, 0x6d, 0xf1, 0x6d, 0x28, 0xb3, 0x9f, 0xe5, 0x3c, 0x14, 0x4b, 0x4c, 0x50, |
| 1350 | 0xe8, 0x3b, 0x80, 0x24, 0xc4, 0xb0, 0xb5, 0xc6, 0x7f, 0x11, 0x5b, 0xe2, 0x17, 0x91, 0x4d, 0x00, |
| 1351 | 0xa7, 0x04, 0xe5, 0x4f, 0xb0, 0x61, 0xf4, 0x07, 0x99, 0x18, 0xdb, 0x50, 0xe7, 0xeb, 0xe1, 0xc2, |
| 1352 | 0x19, 0x11, 0x71, 0x64, 0x1a, 0x38, 0x0d, 0x25, 0x5b, 0x85, 0x91, 0x3c, 0x93, 0x42, 0x6a, 0xab, |
| 1353 | 0xc4, 0xe0, 0x7d, 0x91, 0xca, 0x3f, 0xe5, 0xa1, 0x71, 0x46, 0x82, 0x70, 0xe2, 0x7b, 0x22, 0xa7, |
| 1354 | 0x16, 0x54, 0xae, 0x23, 0x40, 0xd4, 0x24, 0x26, 0x59, 0xbd, 0xce, 0xe7, 0x13, 0x77, 0x3c, 0x98, |
| 1355 | 0x4c, 0x93, 0xab, 0x9f, 0x00, 0x6c, 0x37, 0x8e, 0xfc, 0xe9, 0x74, 0x42, 0xdf, 0x3b, 0xe1, 0x95, |
| 1356 | 0xf0, 0x92, 0x42, 0x98, 0xf6, 0xe5, 0x84, 0x8a, 0x20, 0xa2, 0x7b, 0xb6, 0x00, 0xe4, 0xb7, 0x50, |
| 1357 | 0xed, 0xfb, 0x97, 0x7d, 0x72, 0x4d, 0x5c, 0xd6, 0x41, 0x97, 0x7d, 0x08, 0xff, 0x11, 0xc1, 0x32, |
| 1358 | 0x18, 0x39, 0xae, 0x2b, 0x3a, 0x51, 0xc5, 0x82, 0x92, 0x55, 0xa8, 0x62, 0x12, 0xce, 0x7c, 0x2f, |
| 1359 | 0x24, 0xe8, 0x19, 0xd4, 0x43, 0x6e, 0xcf, 0x1e, 0xf9, 0x63, 0x22, 0x4e, 0x32, 0x44, 0x50, 0xc7, |
| 1360 | 0x1f, 0x13, 0x96, 0xdc, 0x94, 0x84, 0xa1, 0x73, 0x19, 0x27, 0x10, 0x93, 0x72, 0x08, 0x75, 0xb6, |
| 1361 | 0xfc, 0xe3, 0xba, 0xbf, 0x80, 0xb2, 0xe1, 0xcd, 0x31, 0xf9, 0x24, 0xd6, 0xe8, 0x66, 0x6a, 0xfb, |
| 1362 | 0x45, 0x22, 0x58, 0x08, 0xa0, 0x77, 0xb0, 0x6e, 0xcd, 0xcf, 0x95, 0x11, 0x9d, 0xf8, 0xde, 0x99, |
| 1363 | 0xe3, 0x72, 0xc3, 0xcd, 0xa4, 0xdd, 0x09, 0x8b, 0xaf, 0x22, 0x9c, 0x11, 0x95, 0x4f, 0xa0, 0x74, |
| 1364 | 0xec, 0xfa, 0x37, 0x21, 0xfa, 0x1f, 0xc0, 0x85, 0xeb, 0xdf, 0xd8, 0x23, 0x7f, 0xee, 0xd1, 0x78, |
| 1365 | 0xb1, 0x31, 0xa4, 0xc3, 0x00, 0xf4, 0x05, 0x94, 0x18, 0xc1, 0xae, 0x28, 0x1b, 0xa5, 0xc6, 0x7e, |
| 1366 | 0xfc, 0x08, 0x64, 0xda, 0x38, 0xe2, 0xc9, 0xcf, 0xa0, 0xc2, 0x1a, 0xe1, 0xcf, 0x29, 0xab, 0xe0, |
| 1367 | 0x98, 0xb8, 0xce, 0xad, 0xb0, 0x14, 0x11, 0x72, 0x05, 0x4a, 0xea, 0x74, 0x46, 0x6f, 0x5f, 0xbe, |
| 1368 | 0x81, 0x66, 0x36, 0x2c, 0x54, 0x85, 0xb5, 0x1f, 0x0d, 0x4d, 0x97, 0x72, 0xa8, 0x06, 0xa5, 0xbe, |
| 1369 | 0xaa, 0x9c, 0xa9, 0x52, 0x1e, 0x01, 0x94, 0x19, 0x78, 0x76, 0x28, 0x15, 0x0e, 0x7e, 0x07, 0x28, |
| 1370 | 0x1d, 0x1d, 0x59, 0x93, 0x29, 0x7a, 0x0d, 0x15, 0x31, 0x30, 0x68, 0x5d, 0xe4, 0xc8, 0xad, 0xee, |
| 1371 | 0x3c, 0x16, 0x54, 0x66, 0x9c, 0xe4, 0x1c, 0x7a, 0x03, 0x75, 0x8b, 0xd0, 0xa4, 0xbb, 0x1b, 0x42, |
| 1372 | 0x2c, 0x06, 0x76, 0xee, 0x02, 0x72, 0x0e, 0x3d, 0x87, 0x72, 0x8f, 0x50, 0xf6, 0x86, 0xcc, 0xba, |
| 1373 | 0x48, 0x6e, 0x90, 0x4b, 0xe5, 0x1c, 0x7a, 0x05, 0x60, 0xfa, 0x37, 0x24, 0xf0, 0xbd, 0x65, 0xc9, |
| 1374 | 0xd8, 0x68, 0x3c, 0x1a, 0x72, 0x0e, 0xed, 0x43, 0xdd, 0xba, 0x9a, 0xd3, 0xb1, 0x7f, 0xf3, 0x30, |
| 1375 | 0xf9, 0xaf, 0xa1, 0x86, 0xc9, 0xb9, 0xef, 0xd3, 0x07, 0x49, 0xb3, 0x9a, 0x52, 0x7f, 0x76, 0x89, |
| 1376 | 0xcd, 0x0e, 0xbb, 0x79, 0x24, 0xf8, 0x67, 0x95, 0x03, 0xd8, 0xb0, 0xa8, 0x13, 0xd0, 0xcf, 0xd1, |
| 1377 | 0xf9, 0x1e, 0x36, 0x31, 0x09, 0xef, 0x68, 0xc5, 0xc7, 0x56, 0xb4, 0x7f, 0x95, 0xde, 0x8b, 0xa8, |
| 1378 | 0xa2, 0xfa, 0x10, 0x2d, 0x4f, 0xf2, 0x4e, 0xea, 0xb4, 0xcb, 0x39, 0xf4, 0x15, 0x7b, 0xfe, 0x50, |
| 1379 | 0xfe, 0x04, 0xc8, 0x86, 0x53, 0x5f, 0x88, 0x85, 0x51, 0x3d, 0x7b, 0x84, 0x26, 0x0f, 0x80, 0xd5, |
| 1380 | 0xa1, 0xc7, 0x6c, 0x1e, 0x7a, 0x93, 0xd9, 0xf5, 0xe6, 0x89, 0xca, 0x8a, 0x50, 0x56, 0xe8, 0x1d, |
| 1381 | 0xa6, 0xfa, 0xb6, 0x3a, 0xfe, 0x7b, 0x6a, 0x2b, 0x94, 0x14, 0xd7, 0x5d, 0x91, 0xcc, 0x0a, 0x9d, |
| 1382 | 0x77, 0xb0, 0x99, 0x72, 0x14, 0x1a, 0x9e, 0x69, 0xe8, 0x89, 0xbb, 0xc5, 0x23, 0x64, 0xb5, 0xbb, |
| 1383 | 0x64, 0x14, 0x1f, 0x1c, 0xe2, 0x1b, 0x68, 0x0a, 0x9d, 0x07, 0x47, 0xf8, 0x16, 0xa4, 0x85, 0x9b, |
| 1384 | 0xcf, 0x0a, 0xf0, 0x5b, 0x58, 0x17, 0x73, 0x13, 0xbd, 0x8f, 0x1f, 0x16, 0xe2, 0x21, 0xd4, 0x85, |
| 1385 | 0x16, 0x7f, 0x36, 0x3f, 0x4c, 0xe9, 0x08, 0xb6, 0x2c, 0xde, 0x67, 0x7e, 0xc8, 0x34, 0x6f, 0x3c, |
| 1386 | 0x19, 0x39, 0x6c, 0xd3, 0xa0, 0xed, 0x85, 0x7a, 0xfa, 0xc6, 0xfd, 0x8d, 0x0d, 0x97, 0xde, 0x6b, |
| 1387 | 0x23, 0x7b, 0x27, 0x57, 0xd9, 0x78, 0x05, 0xd5, 0x1e, 0xa1, 0xd1, 0x7e, 0x5d, 0x11, 0x79, 0x5c, |
| 1388 | 0x6c, 0x2e, 0xc0, 0x6b, 0xbb, 0xd1, 0xb9, 0x72, 0xbc, 0x4b, 0xc2, 0xce, 0x40, 0xf4, 0x14, 0x47, |
| 1389 | 0x42, 0x24, 0x75, 0x18, 0x56, 0x39, 0x3a, 0x81, 0x27, 0xd1, 0x60, 0x2f, 0x3f, 0xcb, 0x57, 0xf8, |
| 1390 | 0x7d, 0xba, 0x80, 0x96, 0xe4, 0xe5, 0xdc, 0x79, 0x99, 0xff, 0xd7, 0x7e, 0xf8, 0x57, 0x00, 0x00, |
| 1391 | 0x00, 0xff, 0xff, 0xc4, 0x09, 0x64, 0x71, 0x14, 0x10, 0x00, 0x00, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1392 | } |
| 1393 | |
| 1394 | // Reference imports to suppress errors if they are not otherwise used. |
| 1395 | var _ context.Context |
Kent Hagerman | 60d6230 | 2020-03-10 17:02:36 -0400 | [diff] [blame] | 1396 | var _ grpc.ClientConn |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1397 | |
| 1398 | // This is a compile-time assertion to ensure that this generated file |
| 1399 | // is compatible with the grpc package it is being compiled against. |
Kent Hagerman | 60d6230 | 2020-03-10 17:02:36 -0400 | [diff] [blame] | 1400 | const _ = grpc.SupportPackageIsVersion4 |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1401 | |
| 1402 | // BBSimClient is the client API for BBSim service. |
| 1403 | // |
| 1404 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 1405 | type BBSimClient interface { |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1406 | // Get BBSim version |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1407 | Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1408 | // Set BBSim log level |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1409 | SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1410 | // Get current status of OLT |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1411 | GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1412 | // Poweron OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1413 | PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1414 | // Shutdown OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1415 | ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1416 | // Reboot OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1417 | RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1418 | // Closes the Openolt gRPC server |
| 1419 | StopgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
| 1420 | // Start the Openolt gRPC server |
| 1421 | StartgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
| 1422 | // Start the Openolt gRPC server |
| 1423 | RestartgRPCServer(ctx context.Context, in *Timeout, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1424 | // Get status of an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1425 | GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1426 | // Get status of all ONUs |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1427 | GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1428 | // Get all the Services |
| 1429 | GetServices(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Services, error) |
| 1430 | // Get all the Services of an ONU by serial number |
| 1431 | GetOnuServices(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Services, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1432 | // Shutdown an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1433 | ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1434 | // Shutdown all ONUs in OLT |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1435 | ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1436 | // Shutdown all ONUs under a PON by pon-port-ID |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1437 | ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1438 | // Poweron an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1439 | PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1440 | // Poweron all ONUs in OLT |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1441 | PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1442 | // Poweron all ONUs under a PON by pon-port-ID |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1443 | PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1444 | // Restart EAPOL for ONU |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1445 | RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1446 | // Resatrt DHCP for ONU |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1447 | RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1448 | // Send ONU alarm indication |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1449 | SetOnuAlarmIndication(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1450 | // Send OLT alarm indication for Interface type NNI or PON |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1451 | SetOltAlarmIndication(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1452 | // Get all flows or ONU specific flows |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1453 | GetFlows(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Flows, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1454 | // Chnage IGMP state |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1455 | ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1456 | // Get Traffic scheduler information for ONU |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1457 | GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1458 | } |
| 1459 | |
| 1460 | type bBSimClient struct { |
Kent Hagerman | 60d6230 | 2020-03-10 17:02:36 -0400 | [diff] [blame] | 1461 | cc *grpc.ClientConn |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1462 | } |
| 1463 | |
Kent Hagerman | 60d6230 | 2020-03-10 17:02:36 -0400 | [diff] [blame] | 1464 | func NewBBSimClient(cc *grpc.ClientConn) BBSimClient { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1465 | return &bBSimClient{cc} |
| 1466 | } |
| 1467 | |
| 1468 | func (c *bBSimClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) { |
| 1469 | out := new(VersionNumber) |
| 1470 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/Version", in, out, opts...) |
| 1471 | if err != nil { |
| 1472 | return nil, err |
| 1473 | } |
| 1474 | return out, nil |
| 1475 | } |
| 1476 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1477 | func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) { |
| 1478 | out := new(LogLevel) |
| 1479 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...) |
| 1480 | if err != nil { |
| 1481 | return nil, err |
| 1482 | } |
| 1483 | return out, nil |
| 1484 | } |
| 1485 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1486 | func (c *bBSimClient) GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) { |
| 1487 | out := new(Olt) |
| 1488 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOlt", in, out, opts...) |
| 1489 | if err != nil { |
| 1490 | return nil, err |
| 1491 | } |
| 1492 | return out, nil |
| 1493 | } |
| 1494 | |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1495 | func (c *bBSimClient) PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1496 | out := new(Response) |
| 1497 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronOlt", in, out, opts...) |
| 1498 | if err != nil { |
| 1499 | return nil, err |
| 1500 | } |
| 1501 | return out, nil |
| 1502 | } |
| 1503 | |
| 1504 | func (c *bBSimClient) ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1505 | out := new(Response) |
| 1506 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownOlt", in, out, opts...) |
| 1507 | if err != nil { |
| 1508 | return nil, err |
| 1509 | } |
| 1510 | return out, nil |
| 1511 | } |
| 1512 | |
| 1513 | func (c *bBSimClient) RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1514 | out := new(Response) |
| 1515 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RebootOlt", in, out, opts...) |
| 1516 | if err != nil { |
| 1517 | return nil, err |
| 1518 | } |
| 1519 | return out, nil |
| 1520 | } |
| 1521 | |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1522 | func (c *bBSimClient) StopgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1523 | out := new(Response) |
| 1524 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/StopgRPCServer", in, out, opts...) |
| 1525 | if err != nil { |
| 1526 | return nil, err |
| 1527 | } |
| 1528 | return out, nil |
| 1529 | } |
| 1530 | |
| 1531 | func (c *bBSimClient) StartgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1532 | out := new(Response) |
| 1533 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/StartgRPCServer", in, out, opts...) |
| 1534 | if err != nil { |
| 1535 | return nil, err |
| 1536 | } |
| 1537 | return out, nil |
| 1538 | } |
| 1539 | |
| 1540 | func (c *bBSimClient) RestartgRPCServer(ctx context.Context, in *Timeout, opts ...grpc.CallOption) (*Response, error) { |
| 1541 | out := new(Response) |
| 1542 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartgRPCServer", in, out, opts...) |
| 1543 | if err != nil { |
| 1544 | return nil, err |
| 1545 | } |
| 1546 | return out, nil |
| 1547 | } |
| 1548 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1549 | func (c *bBSimClient) GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) { |
| 1550 | out := new(ONU) |
| 1551 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONU", in, out, opts...) |
| 1552 | if err != nil { |
| 1553 | return nil, err |
| 1554 | } |
| 1555 | return out, nil |
| 1556 | } |
| 1557 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1558 | func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) { |
| 1559 | out := new(ONUs) |
| 1560 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", in, out, opts...) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1561 | if err != nil { |
| 1562 | return nil, err |
| 1563 | } |
| 1564 | return out, nil |
| 1565 | } |
| 1566 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1567 | func (c *bBSimClient) GetServices(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Services, error) { |
| 1568 | out := new(Services) |
| 1569 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetServices", in, out, opts...) |
| 1570 | if err != nil { |
| 1571 | return nil, err |
| 1572 | } |
| 1573 | return out, nil |
| 1574 | } |
| 1575 | |
| 1576 | func (c *bBSimClient) GetOnuServices(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Services, error) { |
| 1577 | out := new(Services) |
| 1578 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOnuServices", in, out, opts...) |
| 1579 | if err != nil { |
| 1580 | return nil, err |
| 1581 | } |
| 1582 | return out, nil |
| 1583 | } |
| 1584 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1585 | func (c *bBSimClient) ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 1586 | out := new(Response) |
| 1587 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONU", in, out, opts...) |
| 1588 | if err != nil { |
| 1589 | return nil, err |
| 1590 | } |
| 1591 | return out, nil |
| 1592 | } |
| 1593 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1594 | func (c *bBSimClient) ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1595 | out := new(Response) |
| 1596 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownAllONUs", in, out, opts...) |
| 1597 | if err != nil { |
| 1598 | return nil, err |
| 1599 | } |
| 1600 | return out, nil |
| 1601 | } |
| 1602 | |
| 1603 | func (c *bBSimClient) ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) { |
| 1604 | out := new(Response) |
| 1605 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONUsOnPON", in, out, opts...) |
| 1606 | if err != nil { |
| 1607 | return nil, err |
| 1608 | } |
| 1609 | return out, nil |
| 1610 | } |
| 1611 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1612 | func (c *bBSimClient) PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 1613 | out := new(Response) |
| 1614 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONU", in, out, opts...) |
| 1615 | if err != nil { |
| 1616 | return nil, err |
| 1617 | } |
| 1618 | return out, nil |
| 1619 | } |
| 1620 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1621 | func (c *bBSimClient) PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1622 | out := new(Response) |
| 1623 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronAllONUs", in, out, opts...) |
| 1624 | if err != nil { |
| 1625 | return nil, err |
| 1626 | } |
| 1627 | return out, nil |
| 1628 | } |
| 1629 | |
| 1630 | func (c *bBSimClient) PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) { |
| 1631 | out := new(Response) |
| 1632 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONUsOnPON", in, out, opts...) |
| 1633 | if err != nil { |
| 1634 | return nil, err |
| 1635 | } |
| 1636 | return out, nil |
| 1637 | } |
| 1638 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1639 | func (c *bBSimClient) RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 1640 | out := new(Response) |
| 1641 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartEapol", in, out, opts...) |
| 1642 | if err != nil { |
| 1643 | return nil, err |
| 1644 | } |
| 1645 | return out, nil |
| 1646 | } |
| 1647 | |
| 1648 | func (c *bBSimClient) RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 1649 | out := new(Response) |
| 1650 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartDhcp", in, out, opts...) |
| 1651 | if err != nil { |
| 1652 | return nil, err |
| 1653 | } |
| 1654 | return out, nil |
| 1655 | } |
| 1656 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1657 | func (c *bBSimClient) SetOnuAlarmIndication(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*Response, error) { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1658 | out := new(Response) |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1659 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetOnuAlarmIndication", in, out, opts...) |
| 1660 | if err != nil { |
| 1661 | return nil, err |
| 1662 | } |
| 1663 | return out, nil |
| 1664 | } |
| 1665 | |
| 1666 | func (c *bBSimClient) SetOltAlarmIndication(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*Response, error) { |
| 1667 | out := new(Response) |
| 1668 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetOltAlarmIndication", in, out, opts...) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1669 | if err != nil { |
| 1670 | return nil, err |
| 1671 | } |
| 1672 | return out, nil |
| 1673 | } |
| 1674 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1675 | func (c *bBSimClient) GetFlows(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Flows, error) { |
| 1676 | out := new(Flows) |
| 1677 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetFlows", in, out, opts...) |
| 1678 | if err != nil { |
| 1679 | return nil, err |
| 1680 | } |
| 1681 | return out, nil |
| 1682 | } |
| 1683 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1684 | func (c *bBSimClient) ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error) { |
| 1685 | out := new(Response) |
| 1686 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ChangeIgmpState", in, out, opts...) |
| 1687 | if err != nil { |
| 1688 | return nil, err |
| 1689 | } |
| 1690 | return out, nil |
| 1691 | } |
| 1692 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1693 | func (c *bBSimClient) GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error) { |
| 1694 | out := new(ONUTrafficSchedulers) |
| 1695 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOnuTrafficSchedulers", in, out, opts...) |
| 1696 | if err != nil { |
| 1697 | return nil, err |
| 1698 | } |
| 1699 | return out, nil |
| 1700 | } |
| 1701 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1702 | // BBSimServer is the server API for BBSim service. |
| 1703 | type BBSimServer interface { |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1704 | // Get BBSim version |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1705 | Version(context.Context, *Empty) (*VersionNumber, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1706 | // Set BBSim log level |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1707 | SetLogLevel(context.Context, *LogLevel) (*LogLevel, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1708 | // Get current status of OLT |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1709 | GetOlt(context.Context, *Empty) (*Olt, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1710 | // Poweron OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1711 | PoweronOlt(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1712 | // Shutdown OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1713 | ShutdownOlt(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1714 | // Reboot OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1715 | RebootOlt(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1716 | // Closes the Openolt gRPC server |
| 1717 | StopgRPCServer(context.Context, *Empty) (*Response, error) |
| 1718 | // Start the Openolt gRPC server |
| 1719 | StartgRPCServer(context.Context, *Empty) (*Response, error) |
| 1720 | // Start the Openolt gRPC server |
| 1721 | RestartgRPCServer(context.Context, *Timeout) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1722 | // Get status of an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1723 | GetONU(context.Context, *ONURequest) (*ONU, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1724 | // Get status of all ONUs |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1725 | GetONUs(context.Context, *Empty) (*ONUs, error) |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1726 | // Get all the Services |
| 1727 | GetServices(context.Context, *Empty) (*Services, error) |
| 1728 | // Get all the Services of an ONU by serial number |
| 1729 | GetOnuServices(context.Context, *ONURequest) (*Services, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1730 | // Shutdown an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1731 | ShutdownONU(context.Context, *ONURequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1732 | // Shutdown all ONUs in OLT |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1733 | ShutdownAllONUs(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1734 | // Shutdown all ONUs under a PON by pon-port-ID |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1735 | ShutdownONUsOnPON(context.Context, *PONRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1736 | // Poweron an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1737 | PoweronONU(context.Context, *ONURequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1738 | // Poweron all ONUs in OLT |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1739 | PoweronAllONUs(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1740 | // Poweron all ONUs under a PON by pon-port-ID |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1741 | PoweronONUsOnPON(context.Context, *PONRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1742 | // Restart EAPOL for ONU |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1743 | RestartEapol(context.Context, *ONURequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1744 | // Resatrt DHCP for ONU |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1745 | RestartDhcp(context.Context, *ONURequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1746 | // Send ONU alarm indication |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1747 | SetOnuAlarmIndication(context.Context, *ONUAlarmRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1748 | // Send OLT alarm indication for Interface type NNI or PON |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1749 | SetOltAlarmIndication(context.Context, *OLTAlarmRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1750 | // Get all flows or ONU specific flows |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1751 | GetFlows(context.Context, *ONURequest) (*Flows, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1752 | // Chnage IGMP state |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1753 | ChangeIgmpState(context.Context, *IgmpRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1754 | // Get Traffic scheduler information for ONU |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1755 | GetOnuTrafficSchedulers(context.Context, *ONURequest) (*ONUTrafficSchedulers, error) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1756 | } |
| 1757 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1758 | // UnimplementedBBSimServer can be embedded to have forward compatible implementations. |
| 1759 | type UnimplementedBBSimServer struct { |
| 1760 | } |
| 1761 | |
| 1762 | func (*UnimplementedBBSimServer) Version(ctx context.Context, req *Empty) (*VersionNumber, error) { |
| 1763 | return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") |
| 1764 | } |
| 1765 | func (*UnimplementedBBSimServer) SetLogLevel(ctx context.Context, req *LogLevel) (*LogLevel, error) { |
| 1766 | return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented") |
| 1767 | } |
| 1768 | func (*UnimplementedBBSimServer) GetOlt(ctx context.Context, req *Empty) (*Olt, error) { |
| 1769 | return nil, status.Errorf(codes.Unimplemented, "method GetOlt not implemented") |
| 1770 | } |
| 1771 | func (*UnimplementedBBSimServer) PoweronOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 1772 | return nil, status.Errorf(codes.Unimplemented, "method PoweronOlt not implemented") |
| 1773 | } |
| 1774 | func (*UnimplementedBBSimServer) ShutdownOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 1775 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownOlt not implemented") |
| 1776 | } |
| 1777 | func (*UnimplementedBBSimServer) RebootOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 1778 | return nil, status.Errorf(codes.Unimplemented, "method RebootOlt not implemented") |
| 1779 | } |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1780 | func (*UnimplementedBBSimServer) StopgRPCServer(ctx context.Context, req *Empty) (*Response, error) { |
| 1781 | return nil, status.Errorf(codes.Unimplemented, "method StopgRPCServer not implemented") |
| 1782 | } |
| 1783 | func (*UnimplementedBBSimServer) StartgRPCServer(ctx context.Context, req *Empty) (*Response, error) { |
| 1784 | return nil, status.Errorf(codes.Unimplemented, "method StartgRPCServer not implemented") |
| 1785 | } |
| 1786 | func (*UnimplementedBBSimServer) RestartgRPCServer(ctx context.Context, req *Timeout) (*Response, error) { |
| 1787 | return nil, status.Errorf(codes.Unimplemented, "method RestartgRPCServer not implemented") |
| 1788 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1789 | func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) { |
| 1790 | return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented") |
| 1791 | } |
| 1792 | func (*UnimplementedBBSimServer) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) { |
| 1793 | return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented") |
| 1794 | } |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1795 | func (*UnimplementedBBSimServer) GetServices(ctx context.Context, req *Empty) (*Services, error) { |
| 1796 | return nil, status.Errorf(codes.Unimplemented, "method GetServices not implemented") |
| 1797 | } |
| 1798 | func (*UnimplementedBBSimServer) GetOnuServices(ctx context.Context, req *ONURequest) (*Services, error) { |
| 1799 | return nil, status.Errorf(codes.Unimplemented, "method GetOnuServices not implemented") |
| 1800 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1801 | func (*UnimplementedBBSimServer) ShutdownONU(ctx context.Context, req *ONURequest) (*Response, error) { |
| 1802 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownONU not implemented") |
| 1803 | } |
| 1804 | func (*UnimplementedBBSimServer) ShutdownAllONUs(ctx context.Context, req *Empty) (*Response, error) { |
| 1805 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownAllONUs not implemented") |
| 1806 | } |
| 1807 | func (*UnimplementedBBSimServer) ShutdownONUsOnPON(ctx context.Context, req *PONRequest) (*Response, error) { |
| 1808 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownONUsOnPON not implemented") |
| 1809 | } |
| 1810 | func (*UnimplementedBBSimServer) PoweronONU(ctx context.Context, req *ONURequest) (*Response, error) { |
| 1811 | return nil, status.Errorf(codes.Unimplemented, "method PoweronONU not implemented") |
| 1812 | } |
| 1813 | func (*UnimplementedBBSimServer) PoweronAllONUs(ctx context.Context, req *Empty) (*Response, error) { |
| 1814 | return nil, status.Errorf(codes.Unimplemented, "method PoweronAllONUs not implemented") |
| 1815 | } |
| 1816 | func (*UnimplementedBBSimServer) PoweronONUsOnPON(ctx context.Context, req *PONRequest) (*Response, error) { |
| 1817 | return nil, status.Errorf(codes.Unimplemented, "method PoweronONUsOnPON not implemented") |
| 1818 | } |
| 1819 | func (*UnimplementedBBSimServer) RestartEapol(ctx context.Context, req *ONURequest) (*Response, error) { |
| 1820 | return nil, status.Errorf(codes.Unimplemented, "method RestartEapol not implemented") |
| 1821 | } |
| 1822 | func (*UnimplementedBBSimServer) RestartDhcp(ctx context.Context, req *ONURequest) (*Response, error) { |
| 1823 | return nil, status.Errorf(codes.Unimplemented, "method RestartDhcp not implemented") |
| 1824 | } |
| 1825 | func (*UnimplementedBBSimServer) SetOnuAlarmIndication(ctx context.Context, req *ONUAlarmRequest) (*Response, error) { |
| 1826 | return nil, status.Errorf(codes.Unimplemented, "method SetOnuAlarmIndication not implemented") |
| 1827 | } |
| 1828 | func (*UnimplementedBBSimServer) SetOltAlarmIndication(ctx context.Context, req *OLTAlarmRequest) (*Response, error) { |
| 1829 | return nil, status.Errorf(codes.Unimplemented, "method SetOltAlarmIndication not implemented") |
| 1830 | } |
| 1831 | func (*UnimplementedBBSimServer) GetFlows(ctx context.Context, req *ONURequest) (*Flows, error) { |
| 1832 | return nil, status.Errorf(codes.Unimplemented, "method GetFlows not implemented") |
| 1833 | } |
| 1834 | func (*UnimplementedBBSimServer) ChangeIgmpState(ctx context.Context, req *IgmpRequest) (*Response, error) { |
| 1835 | return nil, status.Errorf(codes.Unimplemented, "method ChangeIgmpState not implemented") |
| 1836 | } |
| 1837 | func (*UnimplementedBBSimServer) GetOnuTrafficSchedulers(ctx context.Context, req *ONURequest) (*ONUTrafficSchedulers, error) { |
| 1838 | return nil, status.Errorf(codes.Unimplemented, "method GetOnuTrafficSchedulers not implemented") |
| 1839 | } |
| 1840 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1841 | func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) { |
| 1842 | s.RegisterService(&_BBSim_serviceDesc, srv) |
| 1843 | } |
| 1844 | |
| 1845 | func _BBSim_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1846 | in := new(Empty) |
| 1847 | if err := dec(in); err != nil { |
| 1848 | return nil, err |
| 1849 | } |
| 1850 | if interceptor == nil { |
| 1851 | return srv.(BBSimServer).Version(ctx, in) |
| 1852 | } |
| 1853 | info := &grpc.UnaryServerInfo{ |
| 1854 | Server: srv, |
| 1855 | FullMethod: "/bbsim.BBSim/Version", |
| 1856 | } |
| 1857 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1858 | return srv.(BBSimServer).Version(ctx, req.(*Empty)) |
| 1859 | } |
| 1860 | return interceptor(ctx, in, info, handler) |
| 1861 | } |
| 1862 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1863 | func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1864 | in := new(LogLevel) |
| 1865 | if err := dec(in); err != nil { |
| 1866 | return nil, err |
| 1867 | } |
| 1868 | if interceptor == nil { |
| 1869 | return srv.(BBSimServer).SetLogLevel(ctx, in) |
| 1870 | } |
| 1871 | info := &grpc.UnaryServerInfo{ |
| 1872 | Server: srv, |
| 1873 | FullMethod: "/bbsim.BBSim/SetLogLevel", |
| 1874 | } |
| 1875 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1876 | return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel)) |
| 1877 | } |
| 1878 | return interceptor(ctx, in, info, handler) |
| 1879 | } |
| 1880 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1881 | func _BBSim_GetOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1882 | in := new(Empty) |
| 1883 | if err := dec(in); err != nil { |
| 1884 | return nil, err |
| 1885 | } |
| 1886 | if interceptor == nil { |
| 1887 | return srv.(BBSimServer).GetOlt(ctx, in) |
| 1888 | } |
| 1889 | info := &grpc.UnaryServerInfo{ |
| 1890 | Server: srv, |
| 1891 | FullMethod: "/bbsim.BBSim/GetOlt", |
| 1892 | } |
| 1893 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1894 | return srv.(BBSimServer).GetOlt(ctx, req.(*Empty)) |
| 1895 | } |
| 1896 | return interceptor(ctx, in, info, handler) |
| 1897 | } |
| 1898 | |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1899 | func _BBSim_PoweronOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1900 | in := new(Empty) |
| 1901 | if err := dec(in); err != nil { |
| 1902 | return nil, err |
| 1903 | } |
| 1904 | if interceptor == nil { |
| 1905 | return srv.(BBSimServer).PoweronOlt(ctx, in) |
| 1906 | } |
| 1907 | info := &grpc.UnaryServerInfo{ |
| 1908 | Server: srv, |
| 1909 | FullMethod: "/bbsim.BBSim/PoweronOlt", |
| 1910 | } |
| 1911 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1912 | return srv.(BBSimServer).PoweronOlt(ctx, req.(*Empty)) |
| 1913 | } |
| 1914 | return interceptor(ctx, in, info, handler) |
| 1915 | } |
| 1916 | |
| 1917 | func _BBSim_ShutdownOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1918 | in := new(Empty) |
| 1919 | if err := dec(in); err != nil { |
| 1920 | return nil, err |
| 1921 | } |
| 1922 | if interceptor == nil { |
| 1923 | return srv.(BBSimServer).ShutdownOlt(ctx, in) |
| 1924 | } |
| 1925 | info := &grpc.UnaryServerInfo{ |
| 1926 | Server: srv, |
| 1927 | FullMethod: "/bbsim.BBSim/ShutdownOlt", |
| 1928 | } |
| 1929 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1930 | return srv.(BBSimServer).ShutdownOlt(ctx, req.(*Empty)) |
| 1931 | } |
| 1932 | return interceptor(ctx, in, info, handler) |
| 1933 | } |
| 1934 | |
| 1935 | func _BBSim_RebootOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1936 | in := new(Empty) |
| 1937 | if err := dec(in); err != nil { |
| 1938 | return nil, err |
| 1939 | } |
| 1940 | if interceptor == nil { |
| 1941 | return srv.(BBSimServer).RebootOlt(ctx, in) |
| 1942 | } |
| 1943 | info := &grpc.UnaryServerInfo{ |
| 1944 | Server: srv, |
| 1945 | FullMethod: "/bbsim.BBSim/RebootOlt", |
| 1946 | } |
| 1947 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1948 | return srv.(BBSimServer).RebootOlt(ctx, req.(*Empty)) |
| 1949 | } |
| 1950 | return interceptor(ctx, in, info, handler) |
| 1951 | } |
| 1952 | |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 1953 | func _BBSim_StopgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1954 | in := new(Empty) |
| 1955 | if err := dec(in); err != nil { |
| 1956 | return nil, err |
| 1957 | } |
| 1958 | if interceptor == nil { |
| 1959 | return srv.(BBSimServer).StopgRPCServer(ctx, in) |
| 1960 | } |
| 1961 | info := &grpc.UnaryServerInfo{ |
| 1962 | Server: srv, |
| 1963 | FullMethod: "/bbsim.BBSim/StopgRPCServer", |
| 1964 | } |
| 1965 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1966 | return srv.(BBSimServer).StopgRPCServer(ctx, req.(*Empty)) |
| 1967 | } |
| 1968 | return interceptor(ctx, in, info, handler) |
| 1969 | } |
| 1970 | |
| 1971 | func _BBSim_StartgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1972 | in := new(Empty) |
| 1973 | if err := dec(in); err != nil { |
| 1974 | return nil, err |
| 1975 | } |
| 1976 | if interceptor == nil { |
| 1977 | return srv.(BBSimServer).StartgRPCServer(ctx, in) |
| 1978 | } |
| 1979 | info := &grpc.UnaryServerInfo{ |
| 1980 | Server: srv, |
| 1981 | FullMethod: "/bbsim.BBSim/StartgRPCServer", |
| 1982 | } |
| 1983 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1984 | return srv.(BBSimServer).StartgRPCServer(ctx, req.(*Empty)) |
| 1985 | } |
| 1986 | return interceptor(ctx, in, info, handler) |
| 1987 | } |
| 1988 | |
| 1989 | func _BBSim_RestartgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1990 | in := new(Timeout) |
| 1991 | if err := dec(in); err != nil { |
| 1992 | return nil, err |
| 1993 | } |
| 1994 | if interceptor == nil { |
| 1995 | return srv.(BBSimServer).RestartgRPCServer(ctx, in) |
| 1996 | } |
| 1997 | info := &grpc.UnaryServerInfo{ |
| 1998 | Server: srv, |
| 1999 | FullMethod: "/bbsim.BBSim/RestartgRPCServer", |
| 2000 | } |
| 2001 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2002 | return srv.(BBSimServer).RestartgRPCServer(ctx, req.(*Timeout)) |
| 2003 | } |
| 2004 | return interceptor(ctx, in, info, handler) |
| 2005 | } |
| 2006 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2007 | func _BBSim_GetONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2008 | in := new(ONURequest) |
| 2009 | if err := dec(in); err != nil { |
| 2010 | return nil, err |
| 2011 | } |
| 2012 | if interceptor == nil { |
| 2013 | return srv.(BBSimServer).GetONU(ctx, in) |
| 2014 | } |
| 2015 | info := &grpc.UnaryServerInfo{ |
| 2016 | Server: srv, |
| 2017 | FullMethod: "/bbsim.BBSim/GetONU", |
| 2018 | } |
| 2019 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2020 | return srv.(BBSimServer).GetONU(ctx, req.(*ONURequest)) |
| 2021 | } |
| 2022 | return interceptor(ctx, in, info, handler) |
| 2023 | } |
| 2024 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2025 | func _BBSim_GetONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2026 | in := new(Empty) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2027 | if err := dec(in); err != nil { |
| 2028 | return nil, err |
| 2029 | } |
| 2030 | if interceptor == nil { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2031 | return srv.(BBSimServer).GetONUs(ctx, in) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2032 | } |
| 2033 | info := &grpc.UnaryServerInfo{ |
| 2034 | Server: srv, |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2035 | FullMethod: "/bbsim.BBSim/GetONUs", |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2036 | } |
| 2037 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2038 | return srv.(BBSimServer).GetONUs(ctx, req.(*Empty)) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2039 | } |
| 2040 | return interceptor(ctx, in, info, handler) |
| 2041 | } |
| 2042 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 2043 | func _BBSim_GetServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2044 | in := new(Empty) |
| 2045 | if err := dec(in); err != nil { |
| 2046 | return nil, err |
| 2047 | } |
| 2048 | if interceptor == nil { |
| 2049 | return srv.(BBSimServer).GetServices(ctx, in) |
| 2050 | } |
| 2051 | info := &grpc.UnaryServerInfo{ |
| 2052 | Server: srv, |
| 2053 | FullMethod: "/bbsim.BBSim/GetServices", |
| 2054 | } |
| 2055 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2056 | return srv.(BBSimServer).GetServices(ctx, req.(*Empty)) |
| 2057 | } |
| 2058 | return interceptor(ctx, in, info, handler) |
| 2059 | } |
| 2060 | |
| 2061 | func _BBSim_GetOnuServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2062 | in := new(ONURequest) |
| 2063 | if err := dec(in); err != nil { |
| 2064 | return nil, err |
| 2065 | } |
| 2066 | if interceptor == nil { |
| 2067 | return srv.(BBSimServer).GetOnuServices(ctx, in) |
| 2068 | } |
| 2069 | info := &grpc.UnaryServerInfo{ |
| 2070 | Server: srv, |
| 2071 | FullMethod: "/bbsim.BBSim/GetOnuServices", |
| 2072 | } |
| 2073 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2074 | return srv.(BBSimServer).GetOnuServices(ctx, req.(*ONURequest)) |
| 2075 | } |
| 2076 | return interceptor(ctx, in, info, handler) |
| 2077 | } |
| 2078 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2079 | func _BBSim_ShutdownONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2080 | in := new(ONURequest) |
| 2081 | if err := dec(in); err != nil { |
| 2082 | return nil, err |
| 2083 | } |
| 2084 | if interceptor == nil { |
| 2085 | return srv.(BBSimServer).ShutdownONU(ctx, in) |
| 2086 | } |
| 2087 | info := &grpc.UnaryServerInfo{ |
| 2088 | Server: srv, |
| 2089 | FullMethod: "/bbsim.BBSim/ShutdownONU", |
| 2090 | } |
| 2091 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2092 | return srv.(BBSimServer).ShutdownONU(ctx, req.(*ONURequest)) |
| 2093 | } |
| 2094 | return interceptor(ctx, in, info, handler) |
| 2095 | } |
| 2096 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2097 | func _BBSim_ShutdownAllONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2098 | in := new(Empty) |
| 2099 | if err := dec(in); err != nil { |
| 2100 | return nil, err |
| 2101 | } |
| 2102 | if interceptor == nil { |
| 2103 | return srv.(BBSimServer).ShutdownAllONUs(ctx, in) |
| 2104 | } |
| 2105 | info := &grpc.UnaryServerInfo{ |
| 2106 | Server: srv, |
| 2107 | FullMethod: "/bbsim.BBSim/ShutdownAllONUs", |
| 2108 | } |
| 2109 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2110 | return srv.(BBSimServer).ShutdownAllONUs(ctx, req.(*Empty)) |
| 2111 | } |
| 2112 | return interceptor(ctx, in, info, handler) |
| 2113 | } |
| 2114 | |
| 2115 | func _BBSim_ShutdownONUsOnPON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2116 | in := new(PONRequest) |
| 2117 | if err := dec(in); err != nil { |
| 2118 | return nil, err |
| 2119 | } |
| 2120 | if interceptor == nil { |
| 2121 | return srv.(BBSimServer).ShutdownONUsOnPON(ctx, in) |
| 2122 | } |
| 2123 | info := &grpc.UnaryServerInfo{ |
| 2124 | Server: srv, |
| 2125 | FullMethod: "/bbsim.BBSim/ShutdownONUsOnPON", |
| 2126 | } |
| 2127 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2128 | return srv.(BBSimServer).ShutdownONUsOnPON(ctx, req.(*PONRequest)) |
| 2129 | } |
| 2130 | return interceptor(ctx, in, info, handler) |
| 2131 | } |
| 2132 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2133 | func _BBSim_PoweronONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2134 | in := new(ONURequest) |
| 2135 | if err := dec(in); err != nil { |
| 2136 | return nil, err |
| 2137 | } |
| 2138 | if interceptor == nil { |
| 2139 | return srv.(BBSimServer).PoweronONU(ctx, in) |
| 2140 | } |
| 2141 | info := &grpc.UnaryServerInfo{ |
| 2142 | Server: srv, |
| 2143 | FullMethod: "/bbsim.BBSim/PoweronONU", |
| 2144 | } |
| 2145 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2146 | return srv.(BBSimServer).PoweronONU(ctx, req.(*ONURequest)) |
| 2147 | } |
| 2148 | return interceptor(ctx, in, info, handler) |
| 2149 | } |
| 2150 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2151 | func _BBSim_PoweronAllONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2152 | in := new(Empty) |
| 2153 | if err := dec(in); err != nil { |
| 2154 | return nil, err |
| 2155 | } |
| 2156 | if interceptor == nil { |
| 2157 | return srv.(BBSimServer).PoweronAllONUs(ctx, in) |
| 2158 | } |
| 2159 | info := &grpc.UnaryServerInfo{ |
| 2160 | Server: srv, |
| 2161 | FullMethod: "/bbsim.BBSim/PoweronAllONUs", |
| 2162 | } |
| 2163 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2164 | return srv.(BBSimServer).PoweronAllONUs(ctx, req.(*Empty)) |
| 2165 | } |
| 2166 | return interceptor(ctx, in, info, handler) |
| 2167 | } |
| 2168 | |
| 2169 | func _BBSim_PoweronONUsOnPON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2170 | in := new(PONRequest) |
| 2171 | if err := dec(in); err != nil { |
| 2172 | return nil, err |
| 2173 | } |
| 2174 | if interceptor == nil { |
| 2175 | return srv.(BBSimServer).PoweronONUsOnPON(ctx, in) |
| 2176 | } |
| 2177 | info := &grpc.UnaryServerInfo{ |
| 2178 | Server: srv, |
| 2179 | FullMethod: "/bbsim.BBSim/PoweronONUsOnPON", |
| 2180 | } |
| 2181 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2182 | return srv.(BBSimServer).PoweronONUsOnPON(ctx, req.(*PONRequest)) |
| 2183 | } |
| 2184 | return interceptor(ctx, in, info, handler) |
| 2185 | } |
| 2186 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2187 | func _BBSim_RestartEapol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2188 | in := new(ONURequest) |
| 2189 | if err := dec(in); err != nil { |
| 2190 | return nil, err |
| 2191 | } |
| 2192 | if interceptor == nil { |
| 2193 | return srv.(BBSimServer).RestartEapol(ctx, in) |
| 2194 | } |
| 2195 | info := &grpc.UnaryServerInfo{ |
| 2196 | Server: srv, |
| 2197 | FullMethod: "/bbsim.BBSim/RestartEapol", |
| 2198 | } |
| 2199 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2200 | return srv.(BBSimServer).RestartEapol(ctx, req.(*ONURequest)) |
| 2201 | } |
| 2202 | return interceptor(ctx, in, info, handler) |
| 2203 | } |
| 2204 | |
| 2205 | func _BBSim_RestartDhcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2206 | in := new(ONURequest) |
| 2207 | if err := dec(in); err != nil { |
| 2208 | return nil, err |
| 2209 | } |
| 2210 | if interceptor == nil { |
| 2211 | return srv.(BBSimServer).RestartDhcp(ctx, in) |
| 2212 | } |
| 2213 | info := &grpc.UnaryServerInfo{ |
| 2214 | Server: srv, |
| 2215 | FullMethod: "/bbsim.BBSim/RestartDhcp", |
| 2216 | } |
| 2217 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2218 | return srv.(BBSimServer).RestartDhcp(ctx, req.(*ONURequest)) |
| 2219 | } |
| 2220 | return interceptor(ctx, in, info, handler) |
| 2221 | } |
| 2222 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2223 | func _BBSim_SetOnuAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2224 | in := new(ONUAlarmRequest) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2225 | if err := dec(in); err != nil { |
| 2226 | return nil, err |
| 2227 | } |
| 2228 | if interceptor == nil { |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2229 | return srv.(BBSimServer).SetOnuAlarmIndication(ctx, in) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2230 | } |
| 2231 | info := &grpc.UnaryServerInfo{ |
| 2232 | Server: srv, |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2233 | FullMethod: "/bbsim.BBSim/SetOnuAlarmIndication", |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2234 | } |
| 2235 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2236 | return srv.(BBSimServer).SetOnuAlarmIndication(ctx, req.(*ONUAlarmRequest)) |
| 2237 | } |
| 2238 | return interceptor(ctx, in, info, handler) |
| 2239 | } |
| 2240 | |
| 2241 | func _BBSim_SetOltAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2242 | in := new(OLTAlarmRequest) |
| 2243 | if err := dec(in); err != nil { |
| 2244 | return nil, err |
| 2245 | } |
| 2246 | if interceptor == nil { |
| 2247 | return srv.(BBSimServer).SetOltAlarmIndication(ctx, in) |
| 2248 | } |
| 2249 | info := &grpc.UnaryServerInfo{ |
| 2250 | Server: srv, |
| 2251 | FullMethod: "/bbsim.BBSim/SetOltAlarmIndication", |
| 2252 | } |
| 2253 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2254 | return srv.(BBSimServer).SetOltAlarmIndication(ctx, req.(*OLTAlarmRequest)) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2255 | } |
| 2256 | return interceptor(ctx, in, info, handler) |
| 2257 | } |
| 2258 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 2259 | func _BBSim_GetFlows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2260 | in := new(ONURequest) |
| 2261 | if err := dec(in); err != nil { |
| 2262 | return nil, err |
| 2263 | } |
| 2264 | if interceptor == nil { |
| 2265 | return srv.(BBSimServer).GetFlows(ctx, in) |
| 2266 | } |
| 2267 | info := &grpc.UnaryServerInfo{ |
| 2268 | Server: srv, |
| 2269 | FullMethod: "/bbsim.BBSim/GetFlows", |
| 2270 | } |
| 2271 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2272 | return srv.(BBSimServer).GetFlows(ctx, req.(*ONURequest)) |
| 2273 | } |
| 2274 | return interceptor(ctx, in, info, handler) |
| 2275 | } |
| 2276 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 2277 | func _BBSim_ChangeIgmpState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2278 | in := new(IgmpRequest) |
| 2279 | if err := dec(in); err != nil { |
| 2280 | return nil, err |
| 2281 | } |
| 2282 | if interceptor == nil { |
| 2283 | return srv.(BBSimServer).ChangeIgmpState(ctx, in) |
| 2284 | } |
| 2285 | info := &grpc.UnaryServerInfo{ |
| 2286 | Server: srv, |
| 2287 | FullMethod: "/bbsim.BBSim/ChangeIgmpState", |
| 2288 | } |
| 2289 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2290 | return srv.(BBSimServer).ChangeIgmpState(ctx, req.(*IgmpRequest)) |
| 2291 | } |
| 2292 | return interceptor(ctx, in, info, handler) |
| 2293 | } |
| 2294 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 2295 | func _BBSim_GetOnuTrafficSchedulers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2296 | in := new(ONURequest) |
| 2297 | if err := dec(in); err != nil { |
| 2298 | return nil, err |
| 2299 | } |
| 2300 | if interceptor == nil { |
| 2301 | return srv.(BBSimServer).GetOnuTrafficSchedulers(ctx, in) |
| 2302 | } |
| 2303 | info := &grpc.UnaryServerInfo{ |
| 2304 | Server: srv, |
| 2305 | FullMethod: "/bbsim.BBSim/GetOnuTrafficSchedulers", |
| 2306 | } |
| 2307 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2308 | return srv.(BBSimServer).GetOnuTrafficSchedulers(ctx, req.(*ONURequest)) |
| 2309 | } |
| 2310 | return interceptor(ctx, in, info, handler) |
| 2311 | } |
| 2312 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2313 | var _BBSim_serviceDesc = grpc.ServiceDesc{ |
| 2314 | ServiceName: "bbsim.BBSim", |
| 2315 | HandlerType: (*BBSimServer)(nil), |
| 2316 | Methods: []grpc.MethodDesc{ |
| 2317 | { |
| 2318 | MethodName: "Version", |
| 2319 | Handler: _BBSim_Version_Handler, |
| 2320 | }, |
| 2321 | { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2322 | MethodName: "SetLogLevel", |
| 2323 | Handler: _BBSim_SetLogLevel_Handler, |
| 2324 | }, |
| 2325 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2326 | MethodName: "GetOlt", |
| 2327 | Handler: _BBSim_GetOlt_Handler, |
| 2328 | }, |
| 2329 | { |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 2330 | MethodName: "PoweronOlt", |
| 2331 | Handler: _BBSim_PoweronOlt_Handler, |
| 2332 | }, |
| 2333 | { |
| 2334 | MethodName: "ShutdownOlt", |
| 2335 | Handler: _BBSim_ShutdownOlt_Handler, |
| 2336 | }, |
| 2337 | { |
| 2338 | MethodName: "RebootOlt", |
| 2339 | Handler: _BBSim_RebootOlt_Handler, |
| 2340 | }, |
| 2341 | { |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame^] | 2342 | MethodName: "StopgRPCServer", |
| 2343 | Handler: _BBSim_StopgRPCServer_Handler, |
| 2344 | }, |
| 2345 | { |
| 2346 | MethodName: "StartgRPCServer", |
| 2347 | Handler: _BBSim_StartgRPCServer_Handler, |
| 2348 | }, |
| 2349 | { |
| 2350 | MethodName: "RestartgRPCServer", |
| 2351 | Handler: _BBSim_RestartgRPCServer_Handler, |
| 2352 | }, |
| 2353 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2354 | MethodName: "GetONU", |
| 2355 | Handler: _BBSim_GetONU_Handler, |
| 2356 | }, |
| 2357 | { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2358 | MethodName: "GetONUs", |
| 2359 | Handler: _BBSim_GetONUs_Handler, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2360 | }, |
| 2361 | { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 2362 | MethodName: "GetServices", |
| 2363 | Handler: _BBSim_GetServices_Handler, |
| 2364 | }, |
| 2365 | { |
| 2366 | MethodName: "GetOnuServices", |
| 2367 | Handler: _BBSim_GetOnuServices_Handler, |
| 2368 | }, |
| 2369 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2370 | MethodName: "ShutdownONU", |
| 2371 | Handler: _BBSim_ShutdownONU_Handler, |
| 2372 | }, |
| 2373 | { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2374 | MethodName: "ShutdownAllONUs", |
| 2375 | Handler: _BBSim_ShutdownAllONUs_Handler, |
| 2376 | }, |
| 2377 | { |
| 2378 | MethodName: "ShutdownONUsOnPON", |
| 2379 | Handler: _BBSim_ShutdownONUsOnPON_Handler, |
| 2380 | }, |
| 2381 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2382 | MethodName: "PoweronONU", |
| 2383 | Handler: _BBSim_PoweronONU_Handler, |
| 2384 | }, |
| 2385 | { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2386 | MethodName: "PoweronAllONUs", |
| 2387 | Handler: _BBSim_PoweronAllONUs_Handler, |
| 2388 | }, |
| 2389 | { |
| 2390 | MethodName: "PoweronONUsOnPON", |
| 2391 | Handler: _BBSim_PoweronONUsOnPON_Handler, |
| 2392 | }, |
| 2393 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2394 | MethodName: "RestartEapol", |
| 2395 | Handler: _BBSim_RestartEapol_Handler, |
| 2396 | }, |
| 2397 | { |
| 2398 | MethodName: "RestartDhcp", |
| 2399 | Handler: _BBSim_RestartDhcp_Handler, |
| 2400 | }, |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2401 | { |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2402 | MethodName: "SetOnuAlarmIndication", |
| 2403 | Handler: _BBSim_SetOnuAlarmIndication_Handler, |
| 2404 | }, |
| 2405 | { |
| 2406 | MethodName: "SetOltAlarmIndication", |
| 2407 | Handler: _BBSim_SetOltAlarmIndication_Handler, |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2408 | }, |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 2409 | { |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 2410 | MethodName: "GetFlows", |
| 2411 | Handler: _BBSim_GetFlows_Handler, |
| 2412 | }, |
| 2413 | { |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 2414 | MethodName: "ChangeIgmpState", |
| 2415 | Handler: _BBSim_ChangeIgmpState_Handler, |
| 2416 | }, |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 2417 | { |
| 2418 | MethodName: "GetOnuTrafficSchedulers", |
| 2419 | Handler: _BBSim_GetOnuTrafficSchedulers_Handler, |
| 2420 | }, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2421 | }, |
| 2422 | Streams: []grpc.StreamDesc{}, |
| 2423 | Metadata: "api/bbsim/bbsim.proto", |
| 2424 | } |