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