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) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 162 | return fileDescriptor_ef7750073d18011b, []int{17, 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"` |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 598 | HwAddress string `protobuf:"bytes,8,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"` // Deprecated: Do not use. |
| 599 | PortNo int32 `protobuf:"varint,9,opt,name=PortNo,proto3" json:"PortNo,omitempty"` // Deprecated: Do not use. |
| 600 | Services []*Service `protobuf:"bytes,10,rep,name=services,proto3" json:"services,omitempty"` // Deprecated: Do not use. |
Matteo Scandolo | cedde46 | 2021-03-09 17:37:16 -0800 | [diff] [blame] | 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"` |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 605 | Unis []*UNI `protobuf:"bytes,15,rep,name=unis,proto3" json:"unis,omitempty"` |
Matteo Scandolo | cedde46 | 2021-03-09 17:37:16 -0800 | [diff] [blame] | 606 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 607 | XXX_unrecognized []byte `json:"-"` |
| 608 | XXX_sizecache int32 `json:"-"` |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 609 | } |
| 610 | |
| 611 | func (m *ONU) Reset() { *m = ONU{} } |
| 612 | func (m *ONU) String() string { return proto.CompactTextString(m) } |
| 613 | func (*ONU) ProtoMessage() {} |
| 614 | func (*ONU) Descriptor() ([]byte, []int) { |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 615 | return fileDescriptor_ef7750073d18011b, []int{7} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 616 | } |
| 617 | |
| 618 | func (m *ONU) XXX_Unmarshal(b []byte) error { |
| 619 | return xxx_messageInfo_ONU.Unmarshal(m, b) |
| 620 | } |
| 621 | func (m *ONU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 622 | return xxx_messageInfo_ONU.Marshal(b, m, deterministic) |
| 623 | } |
| 624 | func (m *ONU) XXX_Merge(src proto.Message) { |
| 625 | xxx_messageInfo_ONU.Merge(m, src) |
| 626 | } |
| 627 | func (m *ONU) XXX_Size() int { |
| 628 | return xxx_messageInfo_ONU.Size(m) |
| 629 | } |
| 630 | func (m *ONU) XXX_DiscardUnknown() { |
| 631 | xxx_messageInfo_ONU.DiscardUnknown(m) |
| 632 | } |
| 633 | |
| 634 | var xxx_messageInfo_ONU proto.InternalMessageInfo |
| 635 | |
| 636 | func (m *ONU) GetID() int32 { |
| 637 | if m != nil { |
| 638 | return m.ID |
| 639 | } |
| 640 | return 0 |
| 641 | } |
| 642 | |
| 643 | func (m *ONU) GetSerialNumber() string { |
| 644 | if m != nil { |
| 645 | return m.SerialNumber |
| 646 | } |
| 647 | return "" |
| 648 | } |
| 649 | |
| 650 | func (m *ONU) GetOperState() string { |
| 651 | if m != nil { |
| 652 | return m.OperState |
| 653 | } |
| 654 | return "" |
| 655 | } |
| 656 | |
| 657 | func (m *ONU) GetInternalState() string { |
| 658 | if m != nil { |
| 659 | return m.InternalState |
| 660 | } |
| 661 | return "" |
| 662 | } |
| 663 | |
| 664 | func (m *ONU) GetPonPortID() int32 { |
| 665 | if m != nil { |
| 666 | return m.PonPortID |
| 667 | } |
| 668 | return 0 |
| 669 | } |
| 670 | |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 671 | // Deprecated: Do not use. |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 672 | func (m *ONU) GetHwAddress() string { |
| 673 | if m != nil { |
| 674 | return m.HwAddress |
| 675 | } |
| 676 | return "" |
| 677 | } |
| 678 | |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 679 | // Deprecated: Do not use. |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 680 | func (m *ONU) GetPortNo() int32 { |
| 681 | if m != nil { |
| 682 | return m.PortNo |
| 683 | } |
| 684 | return 0 |
| 685 | } |
| 686 | |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 687 | // Deprecated: Do not use. |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 688 | func (m *ONU) GetServices() []*Service { |
| 689 | if m != nil { |
| 690 | return m.Services |
| 691 | } |
| 692 | return nil |
| 693 | } |
| 694 | |
Matteo Scandolo | cedde46 | 2021-03-09 17:37:16 -0800 | [diff] [blame] | 695 | func (m *ONU) GetImageSoftwareExpectedSections() int32 { |
| 696 | if m != nil { |
| 697 | return m.ImageSoftwareExpectedSections |
| 698 | } |
| 699 | return 0 |
| 700 | } |
| 701 | |
| 702 | func (m *ONU) GetImageSoftwareReceivedSections() int32 { |
| 703 | if m != nil { |
| 704 | return m.ImageSoftwareReceivedSections |
| 705 | } |
| 706 | return 0 |
| 707 | } |
| 708 | |
| 709 | func (m *ONU) GetActiveImageEntityId() int32 { |
| 710 | if m != nil { |
| 711 | return m.ActiveImageEntityId |
| 712 | } |
| 713 | return 0 |
| 714 | } |
| 715 | |
| 716 | func (m *ONU) GetCommittedImageEntityId() int32 { |
| 717 | if m != nil { |
| 718 | return m.CommittedImageEntityId |
| 719 | } |
| 720 | return 0 |
| 721 | } |
| 722 | |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 723 | func (m *ONU) GetUnis() []*UNI { |
| 724 | if m != nil { |
| 725 | return m.Unis |
| 726 | } |
| 727 | return nil |
| 728 | } |
| 729 | |
| 730 | type UNI struct { |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 731 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 732 | OnuID int32 `protobuf:"varint,2,opt,name=OnuID,proto3" json:"OnuID,omitempty"` |
| 733 | OnuSn string `protobuf:"bytes,3,opt,name=OnuSn,proto3" json:"OnuSn,omitempty"` |
| 734 | MeID uint32 `protobuf:"varint,4,opt,name=MeID,proto3" json:"MeID,omitempty"` |
| 735 | OperState string `protobuf:"bytes,5,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 736 | PortNo int32 `protobuf:"varint,6,opt,name=PortNo,proto3" json:"PortNo,omitempty"` |
| 737 | Services []*Service `protobuf:"bytes,7,rep,name=services,proto3" json:"services,omitempty"` |
| 738 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 739 | XXX_unrecognized []byte `json:"-"` |
| 740 | XXX_sizecache int32 `json:"-"` |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 741 | } |
| 742 | |
| 743 | func (m *UNI) Reset() { *m = UNI{} } |
| 744 | func (m *UNI) String() string { return proto.CompactTextString(m) } |
| 745 | func (*UNI) ProtoMessage() {} |
| 746 | func (*UNI) Descriptor() ([]byte, []int) { |
| 747 | return fileDescriptor_ef7750073d18011b, []int{8} |
| 748 | } |
| 749 | |
| 750 | func (m *UNI) XXX_Unmarshal(b []byte) error { |
| 751 | return xxx_messageInfo_UNI.Unmarshal(m, b) |
| 752 | } |
| 753 | func (m *UNI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 754 | return xxx_messageInfo_UNI.Marshal(b, m, deterministic) |
| 755 | } |
| 756 | func (m *UNI) XXX_Merge(src proto.Message) { |
| 757 | xxx_messageInfo_UNI.Merge(m, src) |
| 758 | } |
| 759 | func (m *UNI) XXX_Size() int { |
| 760 | return xxx_messageInfo_UNI.Size(m) |
| 761 | } |
| 762 | func (m *UNI) XXX_DiscardUnknown() { |
| 763 | xxx_messageInfo_UNI.DiscardUnknown(m) |
| 764 | } |
| 765 | |
| 766 | var xxx_messageInfo_UNI proto.InternalMessageInfo |
| 767 | |
| 768 | func (m *UNI) GetID() int32 { |
| 769 | if m != nil { |
| 770 | return m.ID |
| 771 | } |
| 772 | return 0 |
| 773 | } |
| 774 | |
| 775 | func (m *UNI) GetOnuID() int32 { |
| 776 | if m != nil { |
| 777 | return m.OnuID |
| 778 | } |
| 779 | return 0 |
| 780 | } |
| 781 | |
| 782 | func (m *UNI) GetOnuSn() string { |
| 783 | if m != nil { |
| 784 | return m.OnuSn |
| 785 | } |
| 786 | return "" |
| 787 | } |
| 788 | |
| 789 | func (m *UNI) GetMeID() uint32 { |
| 790 | if m != nil { |
| 791 | return m.MeID |
| 792 | } |
| 793 | return 0 |
| 794 | } |
| 795 | |
| 796 | func (m *UNI) GetOperState() string { |
| 797 | if m != nil { |
| 798 | return m.OperState |
| 799 | } |
| 800 | return "" |
| 801 | } |
| 802 | |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 803 | func (m *UNI) GetPortNo() int32 { |
| 804 | if m != nil { |
| 805 | return m.PortNo |
| 806 | } |
| 807 | return 0 |
| 808 | } |
| 809 | |
| 810 | func (m *UNI) GetServices() []*Service { |
| 811 | if m != nil { |
| 812 | return m.Services |
| 813 | } |
| 814 | return nil |
| 815 | } |
| 816 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 817 | type Service struct { |
| 818 | Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` |
| 819 | HwAddress string `protobuf:"bytes,2,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"` |
| 820 | OnuSn string `protobuf:"bytes,3,opt,name=OnuSn,proto3" json:"OnuSn,omitempty"` |
| 821 | STag int32 `protobuf:"varint,4,opt,name=STag,proto3" json:"STag,omitempty"` |
| 822 | CTag int32 `protobuf:"varint,5,opt,name=CTag,proto3" json:"CTag,omitempty"` |
| 823 | NeedsEapol bool `protobuf:"varint,6,opt,name=NeedsEapol,proto3" json:"NeedsEapol,omitempty"` |
| 824 | NeedsDhcp bool `protobuf:"varint,7,opt,name=NeedsDhcp,proto3" json:"NeedsDhcp,omitempty"` |
| 825 | NeedsIgmp bool `protobuf:"varint,8,opt,name=NeedsIgmp,proto3" json:"NeedsIgmp,omitempty"` |
| 826 | GemPort int32 `protobuf:"varint,9,opt,name=GemPort,proto3" json:"GemPort,omitempty"` |
| 827 | EapolState string `protobuf:"bytes,10,opt,name=EapolState,proto3" json:"EapolState,omitempty"` |
| 828 | DhcpState string `protobuf:"bytes,11,opt,name=DhcpState,proto3" json:"DhcpState,omitempty"` |
Matteo Scandolo | 75ed5b9 | 2020-09-03 09:03:16 -0700 | [diff] [blame] | 829 | InternalState string `protobuf:"bytes,12,opt,name=InternalState,proto3" json:"InternalState,omitempty"` |
Matteo Scandolo | 618a658 | 2020-09-09 12:21:29 -0700 | [diff] [blame] | 830 | IGMPState string `protobuf:"bytes,13,opt,name=IGMPState,proto3" json:"IGMPState,omitempty"` |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 831 | UniId uint32 `protobuf:"varint,14,opt,name=UniId,proto3" json:"UniId,omitempty"` |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 832 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 833 | XXX_unrecognized []byte `json:"-"` |
| 834 | XXX_sizecache int32 `json:"-"` |
| 835 | } |
| 836 | |
| 837 | func (m *Service) Reset() { *m = Service{} } |
| 838 | func (m *Service) String() string { return proto.CompactTextString(m) } |
| 839 | func (*Service) ProtoMessage() {} |
| 840 | func (*Service) Descriptor() ([]byte, []int) { |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 841 | return fileDescriptor_ef7750073d18011b, []int{9} |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 842 | } |
| 843 | |
| 844 | func (m *Service) XXX_Unmarshal(b []byte) error { |
| 845 | return xxx_messageInfo_Service.Unmarshal(m, b) |
| 846 | } |
| 847 | func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 848 | return xxx_messageInfo_Service.Marshal(b, m, deterministic) |
| 849 | } |
| 850 | func (m *Service) XXX_Merge(src proto.Message) { |
| 851 | xxx_messageInfo_Service.Merge(m, src) |
| 852 | } |
| 853 | func (m *Service) XXX_Size() int { |
| 854 | return xxx_messageInfo_Service.Size(m) |
| 855 | } |
| 856 | func (m *Service) XXX_DiscardUnknown() { |
| 857 | xxx_messageInfo_Service.DiscardUnknown(m) |
| 858 | } |
| 859 | |
| 860 | var xxx_messageInfo_Service proto.InternalMessageInfo |
| 861 | |
| 862 | func (m *Service) GetName() string { |
| 863 | if m != nil { |
| 864 | return m.Name |
| 865 | } |
| 866 | return "" |
| 867 | } |
| 868 | |
| 869 | func (m *Service) GetHwAddress() string { |
| 870 | if m != nil { |
| 871 | return m.HwAddress |
| 872 | } |
| 873 | return "" |
| 874 | } |
| 875 | |
| 876 | func (m *Service) GetOnuSn() string { |
| 877 | if m != nil { |
| 878 | return m.OnuSn |
| 879 | } |
| 880 | return "" |
| 881 | } |
| 882 | |
| 883 | func (m *Service) GetSTag() int32 { |
| 884 | if m != nil { |
| 885 | return m.STag |
| 886 | } |
| 887 | return 0 |
| 888 | } |
| 889 | |
| 890 | func (m *Service) GetCTag() int32 { |
| 891 | if m != nil { |
| 892 | return m.CTag |
| 893 | } |
| 894 | return 0 |
| 895 | } |
| 896 | |
| 897 | func (m *Service) GetNeedsEapol() bool { |
| 898 | if m != nil { |
| 899 | return m.NeedsEapol |
| 900 | } |
| 901 | return false |
| 902 | } |
| 903 | |
| 904 | func (m *Service) GetNeedsDhcp() bool { |
| 905 | if m != nil { |
| 906 | return m.NeedsDhcp |
| 907 | } |
| 908 | return false |
| 909 | } |
| 910 | |
| 911 | func (m *Service) GetNeedsIgmp() bool { |
| 912 | if m != nil { |
| 913 | return m.NeedsIgmp |
| 914 | } |
| 915 | return false |
| 916 | } |
| 917 | |
| 918 | func (m *Service) GetGemPort() int32 { |
| 919 | if m != nil { |
| 920 | return m.GemPort |
| 921 | } |
| 922 | return 0 |
| 923 | } |
| 924 | |
| 925 | func (m *Service) GetEapolState() string { |
| 926 | if m != nil { |
| 927 | return m.EapolState |
| 928 | } |
| 929 | return "" |
| 930 | } |
| 931 | |
| 932 | func (m *Service) GetDhcpState() string { |
| 933 | if m != nil { |
| 934 | return m.DhcpState |
| 935 | } |
| 936 | return "" |
| 937 | } |
| 938 | |
Matteo Scandolo | 75ed5b9 | 2020-09-03 09:03:16 -0700 | [diff] [blame] | 939 | func (m *Service) GetInternalState() string { |
| 940 | if m != nil { |
| 941 | return m.InternalState |
| 942 | } |
| 943 | return "" |
| 944 | } |
| 945 | |
Matteo Scandolo | 618a658 | 2020-09-09 12:21:29 -0700 | [diff] [blame] | 946 | func (m *Service) GetIGMPState() string { |
| 947 | if m != nil { |
| 948 | return m.IGMPState |
| 949 | } |
| 950 | return "" |
| 951 | } |
| 952 | |
Matteo Scandolo | 8a57481 | 2021-05-20 15:18:53 -0700 | [diff] [blame] | 953 | func (m *Service) GetUniId() uint32 { |
| 954 | if m != nil { |
| 955 | return m.UniId |
| 956 | } |
| 957 | return 0 |
| 958 | } |
| 959 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 960 | type ONUTrafficSchedulers struct { |
| 961 | TraffSchedulers *tech_profile.TrafficSchedulers `protobuf:"bytes,1,opt,name=traffSchedulers,proto3" json:"traffSchedulers,omitempty"` |
| 962 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 963 | XXX_unrecognized []byte `json:"-"` |
| 964 | XXX_sizecache int32 `json:"-"` |
| 965 | } |
| 966 | |
| 967 | func (m *ONUTrafficSchedulers) Reset() { *m = ONUTrafficSchedulers{} } |
| 968 | func (m *ONUTrafficSchedulers) String() string { return proto.CompactTextString(m) } |
| 969 | func (*ONUTrafficSchedulers) ProtoMessage() {} |
| 970 | func (*ONUTrafficSchedulers) Descriptor() ([]byte, []int) { |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 971 | return fileDescriptor_ef7750073d18011b, []int{10} |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 972 | } |
| 973 | |
| 974 | func (m *ONUTrafficSchedulers) XXX_Unmarshal(b []byte) error { |
| 975 | return xxx_messageInfo_ONUTrafficSchedulers.Unmarshal(m, b) |
| 976 | } |
| 977 | func (m *ONUTrafficSchedulers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 978 | return xxx_messageInfo_ONUTrafficSchedulers.Marshal(b, m, deterministic) |
| 979 | } |
| 980 | func (m *ONUTrafficSchedulers) XXX_Merge(src proto.Message) { |
| 981 | xxx_messageInfo_ONUTrafficSchedulers.Merge(m, src) |
| 982 | } |
| 983 | func (m *ONUTrafficSchedulers) XXX_Size() int { |
| 984 | return xxx_messageInfo_ONUTrafficSchedulers.Size(m) |
| 985 | } |
| 986 | func (m *ONUTrafficSchedulers) XXX_DiscardUnknown() { |
| 987 | xxx_messageInfo_ONUTrafficSchedulers.DiscardUnknown(m) |
| 988 | } |
| 989 | |
| 990 | var xxx_messageInfo_ONUTrafficSchedulers proto.InternalMessageInfo |
| 991 | |
| 992 | func (m *ONUTrafficSchedulers) GetTraffSchedulers() *tech_profile.TrafficSchedulers { |
| 993 | if m != nil { |
| 994 | return m.TraffSchedulers |
| 995 | } |
| 996 | return nil |
| 997 | } |
| 998 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 999 | type ONUs struct { |
| 1000 | Items []*ONU `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 1001 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1002 | XXX_unrecognized []byte `json:"-"` |
| 1003 | XXX_sizecache int32 `json:"-"` |
| 1004 | } |
| 1005 | |
| 1006 | func (m *ONUs) Reset() { *m = ONUs{} } |
| 1007 | func (m *ONUs) String() string { return proto.CompactTextString(m) } |
| 1008 | func (*ONUs) ProtoMessage() {} |
| 1009 | func (*ONUs) Descriptor() ([]byte, []int) { |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 1010 | return fileDescriptor_ef7750073d18011b, []int{11} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1011 | } |
| 1012 | |
| 1013 | func (m *ONUs) XXX_Unmarshal(b []byte) error { |
| 1014 | return xxx_messageInfo_ONUs.Unmarshal(m, b) |
| 1015 | } |
| 1016 | func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1017 | return xxx_messageInfo_ONUs.Marshal(b, m, deterministic) |
| 1018 | } |
| 1019 | func (m *ONUs) XXX_Merge(src proto.Message) { |
| 1020 | xxx_messageInfo_ONUs.Merge(m, src) |
| 1021 | } |
| 1022 | func (m *ONUs) XXX_Size() int { |
| 1023 | return xxx_messageInfo_ONUs.Size(m) |
| 1024 | } |
| 1025 | func (m *ONUs) XXX_DiscardUnknown() { |
| 1026 | xxx_messageInfo_ONUs.DiscardUnknown(m) |
| 1027 | } |
| 1028 | |
| 1029 | var xxx_messageInfo_ONUs proto.InternalMessageInfo |
| 1030 | |
| 1031 | func (m *ONUs) GetItems() []*ONU { |
| 1032 | if m != nil { |
| 1033 | return m.Items |
| 1034 | } |
| 1035 | return nil |
| 1036 | } |
| 1037 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1038 | type Services struct { |
| 1039 | Items []*Service `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 1040 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1041 | XXX_unrecognized []byte `json:"-"` |
| 1042 | XXX_sizecache int32 `json:"-"` |
| 1043 | } |
| 1044 | |
| 1045 | func (m *Services) Reset() { *m = Services{} } |
| 1046 | func (m *Services) String() string { return proto.CompactTextString(m) } |
| 1047 | func (*Services) ProtoMessage() {} |
| 1048 | func (*Services) Descriptor() ([]byte, []int) { |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 1049 | return fileDescriptor_ef7750073d18011b, []int{12} |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1050 | } |
| 1051 | |
| 1052 | func (m *Services) XXX_Unmarshal(b []byte) error { |
| 1053 | return xxx_messageInfo_Services.Unmarshal(m, b) |
| 1054 | } |
| 1055 | func (m *Services) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1056 | return xxx_messageInfo_Services.Marshal(b, m, deterministic) |
| 1057 | } |
| 1058 | func (m *Services) XXX_Merge(src proto.Message) { |
| 1059 | xxx_messageInfo_Services.Merge(m, src) |
| 1060 | } |
| 1061 | func (m *Services) XXX_Size() int { |
| 1062 | return xxx_messageInfo_Services.Size(m) |
| 1063 | } |
| 1064 | func (m *Services) XXX_DiscardUnknown() { |
| 1065 | xxx_messageInfo_Services.DiscardUnknown(m) |
| 1066 | } |
| 1067 | |
| 1068 | var xxx_messageInfo_Services proto.InternalMessageInfo |
| 1069 | |
| 1070 | func (m *Services) GetItems() []*Service { |
| 1071 | if m != nil { |
| 1072 | return m.Items |
| 1073 | } |
| 1074 | return nil |
| 1075 | } |
| 1076 | |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 1077 | type UNIs struct { |
| 1078 | Items []*UNI `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 1079 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1080 | XXX_unrecognized []byte `json:"-"` |
| 1081 | XXX_sizecache int32 `json:"-"` |
| 1082 | } |
| 1083 | |
| 1084 | func (m *UNIs) Reset() { *m = UNIs{} } |
| 1085 | func (m *UNIs) String() string { return proto.CompactTextString(m) } |
| 1086 | func (*UNIs) ProtoMessage() {} |
| 1087 | func (*UNIs) Descriptor() ([]byte, []int) { |
| 1088 | return fileDescriptor_ef7750073d18011b, []int{13} |
| 1089 | } |
| 1090 | |
| 1091 | func (m *UNIs) XXX_Unmarshal(b []byte) error { |
| 1092 | return xxx_messageInfo_UNIs.Unmarshal(m, b) |
| 1093 | } |
| 1094 | func (m *UNIs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1095 | return xxx_messageInfo_UNIs.Marshal(b, m, deterministic) |
| 1096 | } |
| 1097 | func (m *UNIs) XXX_Merge(src proto.Message) { |
| 1098 | xxx_messageInfo_UNIs.Merge(m, src) |
| 1099 | } |
| 1100 | func (m *UNIs) XXX_Size() int { |
| 1101 | return xxx_messageInfo_UNIs.Size(m) |
| 1102 | } |
| 1103 | func (m *UNIs) XXX_DiscardUnknown() { |
| 1104 | xxx_messageInfo_UNIs.DiscardUnknown(m) |
| 1105 | } |
| 1106 | |
| 1107 | var xxx_messageInfo_UNIs proto.InternalMessageInfo |
| 1108 | |
| 1109 | func (m *UNIs) GetItems() []*UNI { |
| 1110 | if m != nil { |
| 1111 | return m.Items |
| 1112 | } |
| 1113 | return nil |
| 1114 | } |
| 1115 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1116 | type ONURequest struct { |
| 1117 | SerialNumber string `protobuf:"bytes,1,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 1118 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1119 | XXX_unrecognized []byte `json:"-"` |
| 1120 | XXX_sizecache int32 `json:"-"` |
| 1121 | } |
| 1122 | |
| 1123 | func (m *ONURequest) Reset() { *m = ONURequest{} } |
| 1124 | func (m *ONURequest) String() string { return proto.CompactTextString(m) } |
| 1125 | func (*ONURequest) ProtoMessage() {} |
| 1126 | func (*ONURequest) Descriptor() ([]byte, []int) { |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 1127 | return fileDescriptor_ef7750073d18011b, []int{14} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1128 | } |
| 1129 | |
| 1130 | func (m *ONURequest) XXX_Unmarshal(b []byte) error { |
| 1131 | return xxx_messageInfo_ONURequest.Unmarshal(m, b) |
| 1132 | } |
| 1133 | func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1134 | return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic) |
| 1135 | } |
| 1136 | func (m *ONURequest) XXX_Merge(src proto.Message) { |
| 1137 | xxx_messageInfo_ONURequest.Merge(m, src) |
| 1138 | } |
| 1139 | func (m *ONURequest) XXX_Size() int { |
| 1140 | return xxx_messageInfo_ONURequest.Size(m) |
| 1141 | } |
| 1142 | func (m *ONURequest) XXX_DiscardUnknown() { |
| 1143 | xxx_messageInfo_ONURequest.DiscardUnknown(m) |
| 1144 | } |
| 1145 | |
| 1146 | var xxx_messageInfo_ONURequest proto.InternalMessageInfo |
| 1147 | |
| 1148 | func (m *ONURequest) GetSerialNumber() string { |
| 1149 | if m != nil { |
| 1150 | return m.SerialNumber |
| 1151 | } |
| 1152 | return "" |
| 1153 | } |
| 1154 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1155 | type PONRequest struct { |
| 1156 | PonPortId uint32 `protobuf:"varint,1,opt,name=PonPortId,proto3" json:"PonPortId,omitempty"` |
| 1157 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1158 | XXX_unrecognized []byte `json:"-"` |
| 1159 | XXX_sizecache int32 `json:"-"` |
| 1160 | } |
| 1161 | |
| 1162 | func (m *PONRequest) Reset() { *m = PONRequest{} } |
| 1163 | func (m *PONRequest) String() string { return proto.CompactTextString(m) } |
| 1164 | func (*PONRequest) ProtoMessage() {} |
| 1165 | func (*PONRequest) Descriptor() ([]byte, []int) { |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 1166 | return fileDescriptor_ef7750073d18011b, []int{15} |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1167 | } |
| 1168 | |
| 1169 | func (m *PONRequest) XXX_Unmarshal(b []byte) error { |
| 1170 | return xxx_messageInfo_PONRequest.Unmarshal(m, b) |
| 1171 | } |
| 1172 | func (m *PONRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1173 | return xxx_messageInfo_PONRequest.Marshal(b, m, deterministic) |
| 1174 | } |
| 1175 | func (m *PONRequest) XXX_Merge(src proto.Message) { |
| 1176 | xxx_messageInfo_PONRequest.Merge(m, src) |
| 1177 | } |
| 1178 | func (m *PONRequest) XXX_Size() int { |
| 1179 | return xxx_messageInfo_PONRequest.Size(m) |
| 1180 | } |
| 1181 | func (m *PONRequest) XXX_DiscardUnknown() { |
| 1182 | xxx_messageInfo_PONRequest.DiscardUnknown(m) |
| 1183 | } |
| 1184 | |
| 1185 | var xxx_messageInfo_PONRequest proto.InternalMessageInfo |
| 1186 | |
| 1187 | func (m *PONRequest) GetPonPortId() uint32 { |
| 1188 | if m != nil { |
| 1189 | return m.PonPortId |
| 1190 | } |
| 1191 | return 0 |
| 1192 | } |
| 1193 | |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1194 | type UNIRequest struct { |
| 1195 | OnuSerialNumber string `protobuf:"bytes,1,opt,name=OnuSerialNumber,proto3" json:"OnuSerialNumber,omitempty"` |
| 1196 | UniID string `protobuf:"bytes,2,opt,name=UniID,proto3" json:"UniID,omitempty"` |
| 1197 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1198 | XXX_unrecognized []byte `json:"-"` |
| 1199 | XXX_sizecache int32 `json:"-"` |
| 1200 | } |
| 1201 | |
| 1202 | func (m *UNIRequest) Reset() { *m = UNIRequest{} } |
| 1203 | func (m *UNIRequest) String() string { return proto.CompactTextString(m) } |
| 1204 | func (*UNIRequest) ProtoMessage() {} |
| 1205 | func (*UNIRequest) Descriptor() ([]byte, []int) { |
| 1206 | return fileDescriptor_ef7750073d18011b, []int{16} |
| 1207 | } |
| 1208 | |
| 1209 | func (m *UNIRequest) XXX_Unmarshal(b []byte) error { |
| 1210 | return xxx_messageInfo_UNIRequest.Unmarshal(m, b) |
| 1211 | } |
| 1212 | func (m *UNIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1213 | return xxx_messageInfo_UNIRequest.Marshal(b, m, deterministic) |
| 1214 | } |
| 1215 | func (m *UNIRequest) XXX_Merge(src proto.Message) { |
| 1216 | xxx_messageInfo_UNIRequest.Merge(m, src) |
| 1217 | } |
| 1218 | func (m *UNIRequest) XXX_Size() int { |
| 1219 | return xxx_messageInfo_UNIRequest.Size(m) |
| 1220 | } |
| 1221 | func (m *UNIRequest) XXX_DiscardUnknown() { |
| 1222 | xxx_messageInfo_UNIRequest.DiscardUnknown(m) |
| 1223 | } |
| 1224 | |
| 1225 | var xxx_messageInfo_UNIRequest proto.InternalMessageInfo |
| 1226 | |
| 1227 | func (m *UNIRequest) GetOnuSerialNumber() string { |
| 1228 | if m != nil { |
| 1229 | return m.OnuSerialNumber |
| 1230 | } |
| 1231 | return "" |
| 1232 | } |
| 1233 | |
| 1234 | func (m *UNIRequest) GetUniID() string { |
| 1235 | if m != nil { |
| 1236 | return m.UniID |
| 1237 | } |
| 1238 | return "" |
| 1239 | } |
| 1240 | |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1241 | type AlarmType struct { |
| 1242 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1243 | XXX_unrecognized []byte `json:"-"` |
| 1244 | XXX_sizecache int32 `json:"-"` |
| 1245 | } |
| 1246 | |
| 1247 | func (m *AlarmType) Reset() { *m = AlarmType{} } |
| 1248 | func (m *AlarmType) String() string { return proto.CompactTextString(m) } |
| 1249 | func (*AlarmType) ProtoMessage() {} |
| 1250 | func (*AlarmType) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1251 | return fileDescriptor_ef7750073d18011b, []int{17} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1252 | } |
| 1253 | |
| 1254 | func (m *AlarmType) XXX_Unmarshal(b []byte) error { |
| 1255 | return xxx_messageInfo_AlarmType.Unmarshal(m, b) |
| 1256 | } |
| 1257 | func (m *AlarmType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1258 | return xxx_messageInfo_AlarmType.Marshal(b, m, deterministic) |
| 1259 | } |
| 1260 | func (m *AlarmType) XXX_Merge(src proto.Message) { |
| 1261 | xxx_messageInfo_AlarmType.Merge(m, src) |
| 1262 | } |
| 1263 | func (m *AlarmType) XXX_Size() int { |
| 1264 | return xxx_messageInfo_AlarmType.Size(m) |
| 1265 | } |
| 1266 | func (m *AlarmType) XXX_DiscardUnknown() { |
| 1267 | xxx_messageInfo_AlarmType.DiscardUnknown(m) |
| 1268 | } |
| 1269 | |
| 1270 | var xxx_messageInfo_AlarmType proto.InternalMessageInfo |
| 1271 | |
| 1272 | type AlarmParameter struct { |
| 1273 | Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` |
| 1274 | Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` |
| 1275 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1276 | XXX_unrecognized []byte `json:"-"` |
| 1277 | XXX_sizecache int32 `json:"-"` |
| 1278 | } |
| 1279 | |
| 1280 | func (m *AlarmParameter) Reset() { *m = AlarmParameter{} } |
| 1281 | func (m *AlarmParameter) String() string { return proto.CompactTextString(m) } |
| 1282 | func (*AlarmParameter) ProtoMessage() {} |
| 1283 | func (*AlarmParameter) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1284 | return fileDescriptor_ef7750073d18011b, []int{18} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1285 | } |
| 1286 | |
| 1287 | func (m *AlarmParameter) XXX_Unmarshal(b []byte) error { |
| 1288 | return xxx_messageInfo_AlarmParameter.Unmarshal(m, b) |
| 1289 | } |
| 1290 | func (m *AlarmParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1291 | return xxx_messageInfo_AlarmParameter.Marshal(b, m, deterministic) |
| 1292 | } |
| 1293 | func (m *AlarmParameter) XXX_Merge(src proto.Message) { |
| 1294 | xxx_messageInfo_AlarmParameter.Merge(m, src) |
| 1295 | } |
| 1296 | func (m *AlarmParameter) XXX_Size() int { |
| 1297 | return xxx_messageInfo_AlarmParameter.Size(m) |
| 1298 | } |
| 1299 | func (m *AlarmParameter) XXX_DiscardUnknown() { |
| 1300 | xxx_messageInfo_AlarmParameter.DiscardUnknown(m) |
| 1301 | } |
| 1302 | |
| 1303 | var xxx_messageInfo_AlarmParameter proto.InternalMessageInfo |
| 1304 | |
| 1305 | func (m *AlarmParameter) GetKey() string { |
| 1306 | if m != nil { |
| 1307 | return m.Key |
| 1308 | } |
| 1309 | return "" |
| 1310 | } |
| 1311 | |
| 1312 | func (m *AlarmParameter) GetValue() string { |
| 1313 | if m != nil { |
| 1314 | return m.Value |
| 1315 | } |
| 1316 | return "" |
| 1317 | } |
| 1318 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1319 | // ONUAlarmRequest includes fields common to every Onu alarm, |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1320 | // plus an optional list of AlarmParameter list that can be used |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1321 | // to set additional fields in alarms that support them. |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1322 | type ONUAlarmRequest struct { |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1323 | AlarmType string `protobuf:"bytes,1,opt,name=AlarmType,proto3" json:"AlarmType,omitempty"` |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1324 | SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 1325 | Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"` |
| 1326 | Parameters []*AlarmParameter `protobuf:"bytes,4,rep,name=Parameters,proto3" json:"Parameters,omitempty"` |
| 1327 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1328 | XXX_unrecognized []byte `json:"-"` |
| 1329 | XXX_sizecache int32 `json:"-"` |
| 1330 | } |
| 1331 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1332 | func (m *ONUAlarmRequest) Reset() { *m = ONUAlarmRequest{} } |
| 1333 | func (m *ONUAlarmRequest) String() string { return proto.CompactTextString(m) } |
| 1334 | func (*ONUAlarmRequest) ProtoMessage() {} |
| 1335 | func (*ONUAlarmRequest) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1336 | return fileDescriptor_ef7750073d18011b, []int{19} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1337 | } |
| 1338 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1339 | func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error { |
| 1340 | return xxx_messageInfo_ONUAlarmRequest.Unmarshal(m, b) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1341 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1342 | func (m *ONUAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1343 | return xxx_messageInfo_ONUAlarmRequest.Marshal(b, m, deterministic) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1344 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1345 | func (m *ONUAlarmRequest) XXX_Merge(src proto.Message) { |
| 1346 | xxx_messageInfo_ONUAlarmRequest.Merge(m, src) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1347 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1348 | func (m *ONUAlarmRequest) XXX_Size() int { |
| 1349 | return xxx_messageInfo_ONUAlarmRequest.Size(m) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1350 | } |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1351 | func (m *ONUAlarmRequest) XXX_DiscardUnknown() { |
| 1352 | xxx_messageInfo_ONUAlarmRequest.DiscardUnknown(m) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1353 | } |
| 1354 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1355 | var xxx_messageInfo_ONUAlarmRequest proto.InternalMessageInfo |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1356 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1357 | func (m *ONUAlarmRequest) GetAlarmType() string { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1358 | if m != nil { |
| 1359 | return m.AlarmType |
| 1360 | } |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 1361 | return "" |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1362 | } |
| 1363 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1364 | func (m *ONUAlarmRequest) GetSerialNumber() string { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1365 | if m != nil { |
| 1366 | return m.SerialNumber |
| 1367 | } |
| 1368 | return "" |
| 1369 | } |
| 1370 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1371 | func (m *ONUAlarmRequest) GetStatus() string { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1372 | if m != nil { |
| 1373 | return m.Status |
| 1374 | } |
| 1375 | return "" |
| 1376 | } |
| 1377 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1378 | func (m *ONUAlarmRequest) GetParameters() []*AlarmParameter { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1379 | if m != nil { |
| 1380 | return m.Parameters |
| 1381 | } |
| 1382 | return nil |
| 1383 | } |
| 1384 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1385 | // OLT alarm request |
| 1386 | type OLTAlarmRequest struct { |
| 1387 | InterfaceID uint32 `protobuf:"varint,1,opt,name=InterfaceID,proto3" json:"InterfaceID,omitempty"` |
| 1388 | InterfaceType string `protobuf:"bytes,2,opt,name=InterfaceType,proto3" json:"InterfaceType,omitempty"` |
| 1389 | Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"` |
| 1390 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1391 | XXX_unrecognized []byte `json:"-"` |
| 1392 | XXX_sizecache int32 `json:"-"` |
| 1393 | } |
| 1394 | |
| 1395 | func (m *OLTAlarmRequest) Reset() { *m = OLTAlarmRequest{} } |
| 1396 | func (m *OLTAlarmRequest) String() string { return proto.CompactTextString(m) } |
| 1397 | func (*OLTAlarmRequest) ProtoMessage() {} |
| 1398 | func (*OLTAlarmRequest) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1399 | return fileDescriptor_ef7750073d18011b, []int{20} |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1400 | } |
| 1401 | |
| 1402 | func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error { |
| 1403 | return xxx_messageInfo_OLTAlarmRequest.Unmarshal(m, b) |
| 1404 | } |
| 1405 | func (m *OLTAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1406 | return xxx_messageInfo_OLTAlarmRequest.Marshal(b, m, deterministic) |
| 1407 | } |
| 1408 | func (m *OLTAlarmRequest) XXX_Merge(src proto.Message) { |
| 1409 | xxx_messageInfo_OLTAlarmRequest.Merge(m, src) |
| 1410 | } |
| 1411 | func (m *OLTAlarmRequest) XXX_Size() int { |
| 1412 | return xxx_messageInfo_OLTAlarmRequest.Size(m) |
| 1413 | } |
| 1414 | func (m *OLTAlarmRequest) XXX_DiscardUnknown() { |
| 1415 | xxx_messageInfo_OLTAlarmRequest.DiscardUnknown(m) |
| 1416 | } |
| 1417 | |
| 1418 | var xxx_messageInfo_OLTAlarmRequest proto.InternalMessageInfo |
| 1419 | |
| 1420 | func (m *OLTAlarmRequest) GetInterfaceID() uint32 { |
| 1421 | if m != nil { |
| 1422 | return m.InterfaceID |
| 1423 | } |
| 1424 | return 0 |
| 1425 | } |
| 1426 | |
| 1427 | func (m *OLTAlarmRequest) GetInterfaceType() string { |
| 1428 | if m != nil { |
| 1429 | return m.InterfaceType |
| 1430 | } |
| 1431 | return "" |
| 1432 | } |
| 1433 | |
| 1434 | func (m *OLTAlarmRequest) GetStatus() string { |
| 1435 | if m != nil { |
| 1436 | return m.Status |
| 1437 | } |
| 1438 | return "" |
| 1439 | } |
| 1440 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1441 | type VersionNumber struct { |
| 1442 | Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| 1443 | BuildTime string `protobuf:"bytes,2,opt,name=buildTime,proto3" json:"buildTime,omitempty"` |
| 1444 | CommitHash string `protobuf:"bytes,3,opt,name=commitHash,proto3" json:"commitHash,omitempty"` |
| 1445 | GitStatus string `protobuf:"bytes,4,opt,name=gitStatus,proto3" json:"gitStatus,omitempty"` |
| 1446 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1447 | XXX_unrecognized []byte `json:"-"` |
| 1448 | XXX_sizecache int32 `json:"-"` |
| 1449 | } |
| 1450 | |
| 1451 | func (m *VersionNumber) Reset() { *m = VersionNumber{} } |
| 1452 | func (m *VersionNumber) String() string { return proto.CompactTextString(m) } |
| 1453 | func (*VersionNumber) ProtoMessage() {} |
| 1454 | func (*VersionNumber) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1455 | return fileDescriptor_ef7750073d18011b, []int{21} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1456 | } |
| 1457 | |
| 1458 | func (m *VersionNumber) XXX_Unmarshal(b []byte) error { |
| 1459 | return xxx_messageInfo_VersionNumber.Unmarshal(m, b) |
| 1460 | } |
| 1461 | func (m *VersionNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1462 | return xxx_messageInfo_VersionNumber.Marshal(b, m, deterministic) |
| 1463 | } |
| 1464 | func (m *VersionNumber) XXX_Merge(src proto.Message) { |
| 1465 | xxx_messageInfo_VersionNumber.Merge(m, src) |
| 1466 | } |
| 1467 | func (m *VersionNumber) XXX_Size() int { |
| 1468 | return xxx_messageInfo_VersionNumber.Size(m) |
| 1469 | } |
| 1470 | func (m *VersionNumber) XXX_DiscardUnknown() { |
| 1471 | xxx_messageInfo_VersionNumber.DiscardUnknown(m) |
| 1472 | } |
| 1473 | |
| 1474 | var xxx_messageInfo_VersionNumber proto.InternalMessageInfo |
| 1475 | |
| 1476 | func (m *VersionNumber) GetVersion() string { |
| 1477 | if m != nil { |
| 1478 | return m.Version |
| 1479 | } |
| 1480 | return "" |
| 1481 | } |
| 1482 | |
| 1483 | func (m *VersionNumber) GetBuildTime() string { |
| 1484 | if m != nil { |
| 1485 | return m.BuildTime |
| 1486 | } |
| 1487 | return "" |
| 1488 | } |
| 1489 | |
| 1490 | func (m *VersionNumber) GetCommitHash() string { |
| 1491 | if m != nil { |
| 1492 | return m.CommitHash |
| 1493 | } |
| 1494 | return "" |
| 1495 | } |
| 1496 | |
| 1497 | func (m *VersionNumber) GetGitStatus() string { |
| 1498 | if m != nil { |
| 1499 | return m.GitStatus |
| 1500 | } |
| 1501 | return "" |
| 1502 | } |
| 1503 | |
| 1504 | type LogLevel struct { |
| 1505 | Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` |
| 1506 | Caller bool `protobuf:"varint,2,opt,name=caller,proto3" json:"caller,omitempty"` |
| 1507 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1508 | XXX_unrecognized []byte `json:"-"` |
| 1509 | XXX_sizecache int32 `json:"-"` |
| 1510 | } |
| 1511 | |
| 1512 | func (m *LogLevel) Reset() { *m = LogLevel{} } |
| 1513 | func (m *LogLevel) String() string { return proto.CompactTextString(m) } |
| 1514 | func (*LogLevel) ProtoMessage() {} |
| 1515 | func (*LogLevel) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1516 | return fileDescriptor_ef7750073d18011b, []int{22} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1517 | } |
| 1518 | |
| 1519 | func (m *LogLevel) XXX_Unmarshal(b []byte) error { |
| 1520 | return xxx_messageInfo_LogLevel.Unmarshal(m, b) |
| 1521 | } |
| 1522 | func (m *LogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1523 | return xxx_messageInfo_LogLevel.Marshal(b, m, deterministic) |
| 1524 | } |
| 1525 | func (m *LogLevel) XXX_Merge(src proto.Message) { |
| 1526 | xxx_messageInfo_LogLevel.Merge(m, src) |
| 1527 | } |
| 1528 | func (m *LogLevel) XXX_Size() int { |
| 1529 | return xxx_messageInfo_LogLevel.Size(m) |
| 1530 | } |
| 1531 | func (m *LogLevel) XXX_DiscardUnknown() { |
| 1532 | xxx_messageInfo_LogLevel.DiscardUnknown(m) |
| 1533 | } |
| 1534 | |
| 1535 | var xxx_messageInfo_LogLevel proto.InternalMessageInfo |
| 1536 | |
| 1537 | func (m *LogLevel) GetLevel() string { |
| 1538 | if m != nil { |
| 1539 | return m.Level |
| 1540 | } |
| 1541 | return "" |
| 1542 | } |
| 1543 | |
| 1544 | func (m *LogLevel) GetCaller() bool { |
| 1545 | if m != nil { |
| 1546 | return m.Caller |
| 1547 | } |
| 1548 | return false |
| 1549 | } |
| 1550 | |
| 1551 | type Response struct { |
| 1552 | StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` |
| 1553 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` |
| 1554 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1555 | XXX_unrecognized []byte `json:"-"` |
| 1556 | XXX_sizecache int32 `json:"-"` |
| 1557 | } |
| 1558 | |
| 1559 | func (m *Response) Reset() { *m = Response{} } |
| 1560 | func (m *Response) String() string { return proto.CompactTextString(m) } |
| 1561 | func (*Response) ProtoMessage() {} |
| 1562 | func (*Response) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1563 | return fileDescriptor_ef7750073d18011b, []int{23} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1564 | } |
| 1565 | |
| 1566 | func (m *Response) XXX_Unmarshal(b []byte) error { |
| 1567 | return xxx_messageInfo_Response.Unmarshal(m, b) |
| 1568 | } |
| 1569 | func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1570 | return xxx_messageInfo_Response.Marshal(b, m, deterministic) |
| 1571 | } |
| 1572 | func (m *Response) XXX_Merge(src proto.Message) { |
| 1573 | xxx_messageInfo_Response.Merge(m, src) |
| 1574 | } |
| 1575 | func (m *Response) XXX_Size() int { |
| 1576 | return xxx_messageInfo_Response.Size(m) |
| 1577 | } |
| 1578 | func (m *Response) XXX_DiscardUnknown() { |
| 1579 | xxx_messageInfo_Response.DiscardUnknown(m) |
| 1580 | } |
| 1581 | |
| 1582 | var xxx_messageInfo_Response proto.InternalMessageInfo |
| 1583 | |
| 1584 | func (m *Response) GetStatusCode() int32 { |
| 1585 | if m != nil { |
| 1586 | return m.StatusCode |
| 1587 | } |
| 1588 | return 0 |
| 1589 | } |
| 1590 | |
| 1591 | func (m *Response) GetMessage() string { |
| 1592 | if m != nil { |
| 1593 | return m.Message |
| 1594 | } |
| 1595 | return "" |
| 1596 | } |
| 1597 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1598 | type IgmpRequest struct { |
| 1599 | OnuReq *ONURequest `protobuf:"bytes,1,opt,name=OnuReq,proto3" json:"OnuReq,omitempty"` |
| 1600 | 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] | 1601 | 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] | 1602 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1603 | XXX_unrecognized []byte `json:"-"` |
| 1604 | XXX_sizecache int32 `json:"-"` |
| 1605 | } |
| 1606 | |
| 1607 | func (m *IgmpRequest) Reset() { *m = IgmpRequest{} } |
| 1608 | func (m *IgmpRequest) String() string { return proto.CompactTextString(m) } |
| 1609 | func (*IgmpRequest) ProtoMessage() {} |
| 1610 | func (*IgmpRequest) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1611 | return fileDescriptor_ef7750073d18011b, []int{24} |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1612 | } |
| 1613 | |
| 1614 | func (m *IgmpRequest) XXX_Unmarshal(b []byte) error { |
| 1615 | return xxx_messageInfo_IgmpRequest.Unmarshal(m, b) |
| 1616 | } |
| 1617 | func (m *IgmpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1618 | return xxx_messageInfo_IgmpRequest.Marshal(b, m, deterministic) |
| 1619 | } |
| 1620 | func (m *IgmpRequest) XXX_Merge(src proto.Message) { |
| 1621 | xxx_messageInfo_IgmpRequest.Merge(m, src) |
| 1622 | } |
| 1623 | func (m *IgmpRequest) XXX_Size() int { |
| 1624 | return xxx_messageInfo_IgmpRequest.Size(m) |
| 1625 | } |
| 1626 | func (m *IgmpRequest) XXX_DiscardUnknown() { |
| 1627 | xxx_messageInfo_IgmpRequest.DiscardUnknown(m) |
| 1628 | } |
| 1629 | |
| 1630 | var xxx_messageInfo_IgmpRequest proto.InternalMessageInfo |
| 1631 | |
| 1632 | func (m *IgmpRequest) GetOnuReq() *ONURequest { |
| 1633 | if m != nil { |
| 1634 | return m.OnuReq |
| 1635 | } |
| 1636 | return nil |
| 1637 | } |
| 1638 | |
| 1639 | func (m *IgmpRequest) GetSubActionVal() SubActionTypes { |
| 1640 | if m != nil { |
| 1641 | return m.SubActionVal |
| 1642 | } |
| 1643 | return SubActionTypes_JOIN |
| 1644 | } |
| 1645 | |
Onur Kalinagac | 9f9faca | 2021-01-21 14:04:34 +0000 | [diff] [blame] | 1646 | func (m *IgmpRequest) GetGroupAddress() string { |
| 1647 | if m != nil { |
| 1648 | return m.GroupAddress |
| 1649 | } |
| 1650 | return "" |
| 1651 | } |
| 1652 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1653 | type Flows struct { |
| 1654 | FlowCount uint32 `protobuf:"varint,1,opt,name=flow_count,json=flowCount,proto3" json:"flow_count,omitempty"` |
| 1655 | Flows []*openolt.Flow `protobuf:"bytes,2,rep,name=flows,proto3" json:"flows,omitempty"` |
| 1656 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1657 | XXX_unrecognized []byte `json:"-"` |
| 1658 | XXX_sizecache int32 `json:"-"` |
| 1659 | } |
| 1660 | |
| 1661 | func (m *Flows) Reset() { *m = Flows{} } |
| 1662 | func (m *Flows) String() string { return proto.CompactTextString(m) } |
| 1663 | func (*Flows) ProtoMessage() {} |
| 1664 | func (*Flows) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1665 | return fileDescriptor_ef7750073d18011b, []int{25} |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1666 | } |
| 1667 | |
| 1668 | func (m *Flows) XXX_Unmarshal(b []byte) error { |
| 1669 | return xxx_messageInfo_Flows.Unmarshal(m, b) |
| 1670 | } |
| 1671 | func (m *Flows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1672 | return xxx_messageInfo_Flows.Marshal(b, m, deterministic) |
| 1673 | } |
| 1674 | func (m *Flows) XXX_Merge(src proto.Message) { |
| 1675 | xxx_messageInfo_Flows.Merge(m, src) |
| 1676 | } |
| 1677 | func (m *Flows) XXX_Size() int { |
| 1678 | return xxx_messageInfo_Flows.Size(m) |
| 1679 | } |
| 1680 | func (m *Flows) XXX_DiscardUnknown() { |
| 1681 | xxx_messageInfo_Flows.DiscardUnknown(m) |
| 1682 | } |
| 1683 | |
| 1684 | var xxx_messageInfo_Flows proto.InternalMessageInfo |
| 1685 | |
| 1686 | func (m *Flows) GetFlowCount() uint32 { |
| 1687 | if m != nil { |
| 1688 | return m.FlowCount |
| 1689 | } |
| 1690 | return 0 |
| 1691 | } |
| 1692 | |
| 1693 | func (m *Flows) GetFlows() []*openolt.Flow { |
| 1694 | if m != nil { |
| 1695 | return m.Flows |
| 1696 | } |
| 1697 | return nil |
| 1698 | } |
| 1699 | |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 1700 | type Timeout struct { |
| 1701 | Delay uint32 `protobuf:"varint,1,opt,name=delay,proto3" json:"delay,omitempty"` |
| 1702 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1703 | XXX_unrecognized []byte `json:"-"` |
| 1704 | XXX_sizecache int32 `json:"-"` |
| 1705 | } |
| 1706 | |
| 1707 | func (m *Timeout) Reset() { *m = Timeout{} } |
| 1708 | func (m *Timeout) String() string { return proto.CompactTextString(m) } |
| 1709 | func (*Timeout) ProtoMessage() {} |
| 1710 | func (*Timeout) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1711 | return fileDescriptor_ef7750073d18011b, []int{26} |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 1712 | } |
| 1713 | |
| 1714 | func (m *Timeout) XXX_Unmarshal(b []byte) error { |
| 1715 | return xxx_messageInfo_Timeout.Unmarshal(m, b) |
| 1716 | } |
| 1717 | func (m *Timeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1718 | return xxx_messageInfo_Timeout.Marshal(b, m, deterministic) |
| 1719 | } |
| 1720 | func (m *Timeout) XXX_Merge(src proto.Message) { |
| 1721 | xxx_messageInfo_Timeout.Merge(m, src) |
| 1722 | } |
| 1723 | func (m *Timeout) XXX_Size() int { |
| 1724 | return xxx_messageInfo_Timeout.Size(m) |
| 1725 | } |
| 1726 | func (m *Timeout) XXX_DiscardUnknown() { |
| 1727 | xxx_messageInfo_Timeout.DiscardUnknown(m) |
| 1728 | } |
| 1729 | |
| 1730 | var xxx_messageInfo_Timeout proto.InternalMessageInfo |
| 1731 | |
| 1732 | func (m *Timeout) GetDelay() uint32 { |
| 1733 | if m != nil { |
| 1734 | return m.Delay |
| 1735 | } |
| 1736 | return 0 |
| 1737 | } |
| 1738 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1739 | type Empty struct { |
| 1740 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1741 | XXX_unrecognized []byte `json:"-"` |
| 1742 | XXX_sizecache int32 `json:"-"` |
| 1743 | } |
| 1744 | |
| 1745 | func (m *Empty) Reset() { *m = Empty{} } |
| 1746 | func (m *Empty) String() string { return proto.CompactTextString(m) } |
| 1747 | func (*Empty) ProtoMessage() {} |
| 1748 | func (*Empty) Descriptor() ([]byte, []int) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1749 | return fileDescriptor_ef7750073d18011b, []int{27} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1750 | } |
| 1751 | |
| 1752 | func (m *Empty) XXX_Unmarshal(b []byte) error { |
| 1753 | return xxx_messageInfo_Empty.Unmarshal(m, b) |
| 1754 | } |
| 1755 | func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1756 | return xxx_messageInfo_Empty.Marshal(b, m, deterministic) |
| 1757 | } |
| 1758 | func (m *Empty) XXX_Merge(src proto.Message) { |
| 1759 | xxx_messageInfo_Empty.Merge(m, src) |
| 1760 | } |
| 1761 | func (m *Empty) XXX_Size() int { |
| 1762 | return xxx_messageInfo_Empty.Size(m) |
| 1763 | } |
| 1764 | func (m *Empty) XXX_DiscardUnknown() { |
| 1765 | xxx_messageInfo_Empty.DiscardUnknown(m) |
| 1766 | } |
| 1767 | |
| 1768 | var xxx_messageInfo_Empty proto.InternalMessageInfo |
| 1769 | |
| 1770 | func init() { |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1771 | proto.RegisterEnum("bbsim.SubActionTypes", SubActionTypes_name, SubActionTypes_value) |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 1772 | proto.RegisterEnum("bbsim.OltAllocatedResourceType_Type", OltAllocatedResourceType_Type_name, OltAllocatedResourceType_Type_value) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1773 | proto.RegisterEnum("bbsim.AlarmType_Types", AlarmType_Types_name, AlarmType_Types_value) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1774 | proto.RegisterType((*PONPort)(nil), "bbsim.PONPort") |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 1775 | proto.RegisterType((*PonAllocatedResources)(nil), "bbsim.PonAllocatedResources") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1776 | proto.RegisterType((*NNIPort)(nil), "bbsim.NNIPort") |
| 1777 | proto.RegisterType((*Olt)(nil), "bbsim.Olt") |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 1778 | proto.RegisterType((*OltAllocatedResourceType)(nil), "bbsim.OltAllocatedResourceType") |
| 1779 | proto.RegisterType((*OltAllocatedResource)(nil), "bbsim.OltAllocatedResource") |
| 1780 | proto.RegisterType((*OltAllocatedResources)(nil), "bbsim.OltAllocatedResources") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1781 | proto.RegisterType((*ONU)(nil), "bbsim.ONU") |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 1782 | proto.RegisterType((*UNI)(nil), "bbsim.UNI") |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1783 | proto.RegisterType((*Service)(nil), "bbsim.Service") |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 1784 | proto.RegisterType((*ONUTrafficSchedulers)(nil), "bbsim.ONUTrafficSchedulers") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1785 | proto.RegisterType((*ONUs)(nil), "bbsim.ONUs") |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 1786 | proto.RegisterType((*Services)(nil), "bbsim.Services") |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 1787 | proto.RegisterType((*UNIs)(nil), "bbsim.UNIs") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1788 | proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest") |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1789 | proto.RegisterType((*PONRequest)(nil), "bbsim.PONRequest") |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1790 | proto.RegisterType((*UNIRequest)(nil), "bbsim.UNIRequest") |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1791 | proto.RegisterType((*AlarmType)(nil), "bbsim.AlarmType") |
| 1792 | proto.RegisterType((*AlarmParameter)(nil), "bbsim.AlarmParameter") |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1793 | proto.RegisterType((*ONUAlarmRequest)(nil), "bbsim.ONUAlarmRequest") |
| 1794 | proto.RegisterType((*OLTAlarmRequest)(nil), "bbsim.OLTAlarmRequest") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1795 | proto.RegisterType((*VersionNumber)(nil), "bbsim.VersionNumber") |
| 1796 | proto.RegisterType((*LogLevel)(nil), "bbsim.LogLevel") |
| 1797 | proto.RegisterType((*Response)(nil), "bbsim.Response") |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1798 | proto.RegisterType((*IgmpRequest)(nil), "bbsim.IgmpRequest") |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 1799 | proto.RegisterType((*Flows)(nil), "bbsim.Flows") |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 1800 | proto.RegisterType((*Timeout)(nil), "bbsim.Timeout") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1801 | proto.RegisterType((*Empty)(nil), "bbsim.Empty") |
| 1802 | } |
| 1803 | |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1804 | func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) } |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1805 | |
| 1806 | var fileDescriptor_ef7750073d18011b = []byte{ |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 1807 | // 2092 bytes of a gzipped FileDescriptorProto |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1808 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcb, 0x6e, 0xdb, 0xd8, |
| 1809 | 0xf9, 0xb7, 0xee, 0xd2, 0x27, 0x4b, 0xa2, 0x4f, 0x62, 0x0f, 0xe1, 0x78, 0x26, 0x02, 0x27, 0xf3, |
| 1810 | 0x87, 0x13, 0xfc, 0xc7, 0x99, 0x24, 0xed, 0x34, 0x59, 0xd2, 0x92, 0xac, 0x70, 0x2c, 0x93, 0xc2, |
| 1811 | 0xa1, 0xe4, 0x20, 0xed, 0x42, 0xa0, 0xc5, 0x63, 0x9b, 0x28, 0x45, 0x2a, 0x24, 0x65, 0xd7, 0x0f, |
| 1812 | 0x50, 0xf4, 0x11, 0xba, 0x2c, 0xd0, 0x07, 0xe8, 0xb6, 0xaf, 0xd1, 0x27, 0x68, 0x57, 0x05, 0xfa, |
| 1813 | 0x18, 0xc5, 0x39, 0x3c, 0xbc, 0x49, 0x74, 0xe2, 0xac, 0xba, 0x11, 0xf8, 0xfd, 0xbe, 0xfb, 0xe5, |
| 1814 | 0xdc, 0x04, 0xbb, 0xc6, 0xd2, 0x7a, 0x79, 0x71, 0xe1, 0x5b, 0x8b, 0xf0, 0xf7, 0x68, 0xe9, 0xb9, |
| 1815 | 0x81, 0x8b, 0x2a, 0x8c, 0xd8, 0x7f, 0x72, 0xe3, 0xda, 0xc1, 0xb5, 0x31, 0x63, 0xa0, 0xff, 0xd2, |
| 1816 | 0x5d, 0x12, 0xc7, 0xb5, 0x83, 0x50, 0x66, 0xbf, 0x9b, 0x65, 0x06, 0x64, 0x7e, 0x4d, 0xbf, 0x2f, |
| 1817 | 0x2d, 0x9b, 0x84, 0x12, 0xd2, 0xbf, 0x8a, 0x50, 0x1b, 0x6b, 0xea, 0xd8, 0xf5, 0x02, 0xd4, 0x86, |
| 1818 | 0xa2, 0xd2, 0x17, 0x0b, 0xdd, 0xc2, 0x61, 0x05, 0x17, 0x95, 0x3e, 0x3a, 0x80, 0x86, 0xb6, 0x24, |
| 1819 | 0x9e, 0x1e, 0x18, 0x01, 0x11, 0x8b, 0xdd, 0xc2, 0x61, 0x03, 0x27, 0x00, 0x7a, 0x06, 0x2d, 0xc5, |
| 1820 | 0x09, 0x88, 0xe7, 0x18, 0x76, 0x28, 0x51, 0x62, 0x12, 0x59, 0x10, 0x75, 0xa1, 0x39, 0x36, 0xe6, |
| 1821 | 0xbf, 0x27, 0x41, 0xcf, 0x5d, 0x39, 0x81, 0x58, 0xee, 0x16, 0x0e, 0xcb, 0x38, 0x0d, 0xa1, 0x13, |
| 1822 | 0xe8, 0xc8, 0xb6, 0xed, 0xce, 0x8d, 0x80, 0x98, 0x9a, 0xb3, 0x52, 0x4c, 0x5f, 0xac, 0x74, 0x4b, |
| 1823 | 0x87, 0xcd, 0xd7, 0x07, 0x47, 0x61, 0xba, 0x63, 0xd7, 0x89, 0x05, 0x30, 0xf1, 0xdd, 0x95, 0x37, |
| 1824 | 0x27, 0x3e, 0x5e, 0x57, 0x42, 0xbf, 0xc0, 0x4e, 0x0c, 0x0d, 0xc9, 0x82, 0x66, 0xe4, 0x8b, 0xd5, |
| 1825 | 0x07, 0x58, 0xda, 0x54, 0xcb, 0xd8, 0x62, 0x1f, 0x34, 0xaa, 0xda, 0x57, 0xd9, 0x8a, 0xd4, 0xa4, |
| 1826 | 0x53, 0xd8, 0xcd, 0x95, 0x45, 0x12, 0x6c, 0xeb, 0xc4, 0xb3, 0x0c, 0x5b, 0x5d, 0x2d, 0x2e, 0x88, |
| 1827 | 0xc7, 0x0a, 0xdf, 0xc0, 0x19, 0x8c, 0xb5, 0xc4, 0x64, 0xb5, 0xa7, 0x2d, 0x31, 0xa5, 0xdf, 0x40, |
| 1828 | 0x4d, 0x55, 0x95, 0xaf, 0xef, 0x96, 0xf4, 0xef, 0x02, 0x94, 0x34, 0x7b, 0x53, 0x6b, 0x3d, 0x88, |
| 1829 | 0x62, 0x4e, 0x10, 0x19, 0xcb, 0xa5, 0x2f, 0xce, 0x41, 0x39, 0x6f, 0x0e, 0xa8, 0xdf, 0xb1, 0x58, |
| 1830 | 0x63, 0xac, 0xa2, 0x32, 0x46, 0x2f, 0xa0, 0xce, 0x13, 0x89, 0xda, 0xdd, 0xe6, 0x85, 0xe5, 0x30, |
| 1831 | 0x8e, 0xf9, 0x54, 0x96, 0x8f, 0x68, 0xd4, 0xd0, 0x48, 0x96, 0xc3, 0x38, 0xe6, 0x4b, 0x7f, 0x2c, |
| 1832 | 0x80, 0xa8, 0xd9, 0xc1, 0x46, 0xb9, 0x27, 0x77, 0x4b, 0x82, 0xde, 0x42, 0x39, 0xb8, 0x5b, 0x12, |
| 1833 | 0x96, 0x7e, 0xfb, 0xf5, 0x33, 0x6e, 0xe4, 0x3e, 0xf1, 0x23, 0xfa, 0x83, 0x99, 0x86, 0xf4, 0x12, |
| 1834 | 0xca, 0xcc, 0x42, 0x13, 0x6a, 0x53, 0xf5, 0x54, 0xd5, 0x3e, 0xa8, 0xc2, 0x16, 0xda, 0x86, 0xba, |
| 1835 | 0x3c, 0x1a, 0x69, 0xbd, 0x99, 0xd2, 0x17, 0x0a, 0x94, 0x1a, 0x0e, 0xce, 0x66, 0x63, 0x0d, 0x4f, |
| 1836 | 0x84, 0xa2, 0xf4, 0xb7, 0x02, 0x3c, 0xce, 0x33, 0x8c, 0x50, 0x68, 0x89, 0x77, 0x3b, 0xb4, 0x7a, |
| 1837 | 0x00, 0x8d, 0xb1, 0xeb, 0xd0, 0x04, 0x78, 0xb3, 0x5b, 0x38, 0x01, 0xd0, 0x63, 0xa8, 0xb0, 0x11, |
| 1838 | 0x67, 0xa5, 0x6f, 0xe1, 0x90, 0x40, 0x7b, 0x50, 0xa5, 0x7c, 0xd5, 0x65, 0xf5, 0x6e, 0x61, 0x4e, |
| 1839 | 0xa1, 0xef, 0x00, 0x22, 0x5f, 0x8a, 0x29, 0x56, 0x58, 0xa3, 0x53, 0x08, 0xd5, 0x3b, 0xb1, 0xdd, |
| 1840 | 0x5b, 0xc5, 0x14, 0xab, 0x6c, 0x2d, 0x72, 0x4a, 0xc2, 0xb0, 0x9b, 0x17, 0xaf, 0x8f, 0xde, 0x41, |
| 1841 | 0xc3, 0x8b, 0x08, 0xb1, 0xc0, 0xca, 0xff, 0xe4, 0x33, 0x95, 0xc3, 0x89, 0xb4, 0xf4, 0x97, 0x32, |
| 1842 | 0x94, 0x34, 0x75, 0xfa, 0x3f, 0x1b, 0xba, 0x54, 0x5d, 0xfb, 0xbc, 0x14, 0x09, 0x80, 0xba, 0xd0, |
| 1843 | 0x78, 0x7f, 0x2b, 0x9b, 0xa6, 0x47, 0x7c, 0x5f, 0xac, 0x53, 0xfd, 0xe3, 0xa2, 0x58, 0xc0, 0x09, |
| 1844 | 0x88, 0xf6, 0xe3, 0x1a, 0x37, 0xa8, 0x32, 0x63, 0x47, 0x75, 0x3e, 0x82, 0xba, 0x4f, 0xbc, 0x1b, |
| 1845 | 0x8b, 0x56, 0x05, 0x32, 0x43, 0xa9, 0x87, 0x30, 0x93, 0x8e, 0x65, 0x50, 0x1f, 0xbe, 0x55, 0x16, |
| 1846 | 0xc6, 0x15, 0xd1, 0xdd, 0xcb, 0xe0, 0xd6, 0xf0, 0xc8, 0xe0, 0x0f, 0x4b, 0x32, 0x0f, 0x88, 0xa9, |
| 1847 | 0x93, 0x79, 0x60, 0xb9, 0x8e, 0x2f, 0x36, 0x59, 0x7c, 0x9f, 0x17, 0xda, 0xb0, 0x82, 0xc9, 0x9c, |
| 1848 | 0x58, 0x37, 0x29, 0x2b, 0xdb, 0x39, 0x56, 0xd6, 0x85, 0xd0, 0x4f, 0xf0, 0x48, 0x9e, 0x07, 0xd6, |
| 1849 | 0x0d, 0x61, 0x62, 0x03, 0x27, 0xb0, 0x82, 0x3b, 0xc5, 0x14, 0x5b, 0x4c, 0x37, 0x8f, 0x85, 0x7e, |
| 1850 | 0x86, 0xbd, 0x9e, 0xbb, 0x58, 0x58, 0x41, 0x40, 0xcc, 0xac, 0x52, 0x9b, 0x29, 0xdd, 0xc3, 0x45, |
| 1851 | 0xdf, 0x41, 0x79, 0xe5, 0x58, 0xbe, 0xd8, 0x61, 0x15, 0x02, 0x5e, 0xa1, 0xa9, 0xaa, 0x60, 0x86, |
| 1852 | 0x4b, 0x7f, 0x2f, 0x40, 0x69, 0xaa, 0x2a, 0x1b, 0x13, 0xc2, 0x67, 0xbe, 0xcf, 0xb7, 0xbe, 0x90, |
| 1853 | 0xe0, 0xa8, 0xee, 0xf0, 0x79, 0x08, 0x09, 0xba, 0xa2, 0xce, 0x88, 0xd2, 0xe7, 0xeb, 0x80, 0x7d, |
| 1854 | 0x67, 0xa7, 0xa7, 0xb2, 0x3e, 0x3d, 0xc9, 0xda, 0xa9, 0x32, 0xf3, 0x51, 0x4f, 0x5f, 0xa4, 0x7a, |
| 1855 | 0x5a, 0xcb, 0xeb, 0x69, 0xd2, 0x4f, 0xe9, 0x4f, 0x25, 0xa8, 0x71, 0x94, 0x46, 0xa0, 0x1a, 0x8b, |
| 1856 | 0x78, 0x4d, 0xd3, 0x6f, 0x1a, 0x41, 0x32, 0x5d, 0x7c, 0x3b, 0x4e, 0x26, 0xeb, 0xde, 0x4c, 0xf4, |
| 1857 | 0x89, 0x71, 0xc5, 0x32, 0xa9, 0x60, 0xf6, 0x4d, 0xb1, 0x1e, 0xc5, 0xc2, 0xf1, 0x65, 0xdf, 0x74, |
| 1858 | 0x8d, 0xab, 0x84, 0x98, 0xfe, 0xc0, 0x58, 0xba, 0x36, 0xcb, 0xa1, 0x8e, 0x53, 0x08, 0xf5, 0xcd, |
| 1859 | 0xa8, 0xfe, 0xf5, 0x7c, 0xc9, 0xf6, 0xdc, 0x3a, 0x4e, 0x80, 0x98, 0xab, 0x5c, 0x2d, 0x96, 0x6c, |
| 1860 | 0xee, 0x23, 0x2e, 0x05, 0x90, 0x08, 0x35, 0x7e, 0x0c, 0x86, 0x43, 0x8f, 0x23, 0x92, 0x7a, 0x65, |
| 1861 | 0xe6, 0xc3, 0xa2, 0x02, 0x0b, 0x3c, 0x85, 0x50, 0xbb, 0xd4, 0x7e, 0xc8, 0x6e, 0x86, 0x19, 0xc7, |
| 1862 | 0xc0, 0xe6, 0x8a, 0xdd, 0xbe, 0x67, 0xc5, 0x2a, 0xc3, 0xb3, 0x71, 0x28, 0xd1, 0x0a, 0x6d, 0xc4, |
| 1863 | 0x00, 0xad, 0xda, 0xd4, 0xb1, 0xf8, 0xd0, 0xb5, 0x70, 0x48, 0x48, 0x06, 0x3c, 0xd6, 0xd4, 0xe9, |
| 1864 | 0xc4, 0x33, 0x2e, 0x2f, 0xad, 0xb9, 0x3e, 0xbf, 0x26, 0xe6, 0xca, 0x26, 0x9e, 0x8f, 0x14, 0xe8, |
| 1865 | 0x04, 0x14, 0x4c, 0x20, 0xd6, 0xa0, 0xe6, 0xeb, 0xa7, 0x47, 0x99, 0x8b, 0xd0, 0x86, 0x26, 0x5e, |
| 1866 | 0xd7, 0x93, 0x0e, 0xa1, 0xac, 0xa9, 0x53, 0x1f, 0x75, 0xa1, 0x62, 0x05, 0x64, 0x11, 0xed, 0x83, |
| 1867 | 0xd1, 0x3c, 0x6b, 0xea, 0x14, 0x87, 0x0c, 0xe9, 0x27, 0xa8, 0xeb, 0xd1, 0x92, 0x7f, 0x96, 0x95, |
| 1868 | 0x5e, 0x9f, 0x25, 0xae, 0x71, 0x08, 0xe5, 0xa9, 0xaa, 0xdc, 0x6b, 0x9b, 0xae, 0x95, 0xd8, 0x36, |
| 1869 | 0x50, 0x4f, 0xe4, 0xd3, 0x8a, 0xf8, 0xc1, 0x43, 0xae, 0x0f, 0xd2, 0x0b, 0x80, 0xb1, 0xa6, 0x46, |
| 1870 | 0x1a, 0x99, 0x63, 0xa6, 0xb0, 0x76, 0xcc, 0x48, 0x23, 0x00, 0xea, 0x8b, 0xcb, 0x1e, 0x42, 0x87, |
| 1871 | 0xce, 0xe4, 0xa6, 0x83, 0x75, 0x38, 0x6a, 0x4a, 0x9f, 0x0f, 0x79, 0x48, 0x48, 0xff, 0x2c, 0x41, |
| 1872 | 0x43, 0xb6, 0x0d, 0x6f, 0x41, 0x0f, 0x38, 0xe9, 0x1f, 0x25, 0xa8, 0xd0, 0x0f, 0x1f, 0xd5, 0xa0, |
| 1873 | 0x34, 0xd2, 0x74, 0x61, 0x0b, 0xb5, 0x01, 0xfa, 0x1f, 0x15, 0x75, 0x38, 0x1b, 0xca, 0xfa, 0x58, |
| 1874 | 0x28, 0xa0, 0x16, 0x34, 0x34, 0x75, 0x3a, 0x93, 0x47, 0x32, 0x3e, 0x13, 0x8a, 0xe8, 0x1b, 0x78, |
| 1875 | 0x44, 0x49, 0x7d, 0x22, 0xe3, 0xc9, 0x74, 0x3c, 0x3b, 0x91, 0x95, 0xd1, 0x14, 0x0f, 0x84, 0x12, |
| 1876 | 0xda, 0x03, 0xc4, 0x18, 0xca, 0x50, 0x95, 0x47, 0xb3, 0xfe, 0x60, 0x88, 0xe5, 0xfe, 0x40, 0x28, |
| 1877 | 0x47, 0x0a, 0x7d, 0xac, 0x9c, 0x4c, 0x66, 0xda, 0xc9, 0xec, 0x83, 0xa2, 0xf6, 0xb5, 0x0f, 0x42, |
| 1878 | 0x05, 0x1d, 0x80, 0x48, 0x19, 0x23, 0x4d, 0xd7, 0x29, 0xae, 0x9d, 0xf5, 0x94, 0x59, 0xef, 0xbd, |
| 1879 | 0xac, 0xaa, 0x83, 0x91, 0x50, 0x8d, 0xfd, 0x30, 0x73, 0x7a, 0xec, 0xa7, 0x86, 0x9e, 0xc3, 0x0f, |
| 1880 | 0x94, 0x31, 0xc1, 0xb2, 0xaa, 0x9f, 0x29, 0xba, 0xae, 0x68, 0xea, 0x4c, 0x51, 0x27, 0x03, 0x7c, |
| 1881 | 0x32, 0xc0, 0x03, 0xb5, 0x37, 0x98, 0x7d, 0x90, 0xb1, 0xaa, 0xa8, 0x43, 0xa1, 0x8e, 0xf6, 0x61, |
| 1882 | 0x8f, 0x85, 0xde, 0x9b, 0x28, 0xe7, 0xf2, 0x84, 0x0a, 0x46, 0x66, 0x1a, 0x48, 0x64, 0xc3, 0x39, |
| 1883 | 0x1b, 0x63, 0xad, 0x37, 0xd0, 0x75, 0x9a, 0xef, 0x00, 0x63, 0x0d, 0x0b, 0x80, 0xba, 0x70, 0x90, |
| 1884 | 0x8e, 0xeb, 0x74, 0xf0, 0x71, 0xa6, 0x7f, 0x54, 0x7b, 0xb1, 0x6e, 0x13, 0xed, 0xc2, 0x0e, 0x95, |
| 1885 | 0x50, 0x26, 0xd3, 0xd9, 0x58, 0x53, 0x69, 0x2d, 0x26, 0xba, 0xb0, 0x8d, 0x76, 0xa0, 0x15, 0x57, |
| 1886 | 0x8a, 0xaa, 0x0b, 0xad, 0x75, 0xe8, 0x58, 0x68, 0x47, 0x89, 0x45, 0xd0, 0xb8, 0x37, 0xa3, 0x59, |
| 1887 | 0x08, 0x9d, 0xa8, 0x1e, 0x19, 0x46, 0x8f, 0x47, 0x25, 0x20, 0x04, 0xed, 0x34, 0xf7, 0x44, 0x11, |
| 1888 | 0x76, 0xd0, 0x23, 0xe8, 0xa4, 0x31, 0xf9, 0x4c, 0x11, 0x90, 0xf4, 0x16, 0xda, 0xac, 0xbf, 0x63, |
| 1889 | 0xc3, 0x33, 0x16, 0x24, 0x20, 0x1e, 0x12, 0xa0, 0x74, 0x4a, 0xee, 0xf8, 0x98, 0xd0, 0x4f, 0x3a, |
| 1890 | 0x1a, 0xe7, 0x86, 0xbd, 0x8a, 0xae, 0xa3, 0x21, 0x21, 0xfd, 0xb5, 0xc0, 0xec, 0x31, 0xed, 0xd4, |
| 1891 | 0x68, 0xc6, 0xd3, 0xc2, 0x2d, 0x24, 0xc0, 0x83, 0xee, 0x0b, 0x7b, 0x50, 0xa5, 0x9b, 0xc4, 0xca, |
| 1892 | 0xe7, 0x5b, 0x2a, 0xa7, 0xd0, 0xaf, 0x01, 0xe2, 0x10, 0x7d, 0xb1, 0xcc, 0xd6, 0xd6, 0x2e, 0x5f, |
| 1893 | 0x5b, 0xd9, 0x04, 0x70, 0x4a, 0x50, 0xfa, 0x04, 0x1d, 0x6d, 0x34, 0xc9, 0xc4, 0xd8, 0x85, 0x26, |
| 1894 | 0xdb, 0xac, 0x2e, 0x8d, 0x39, 0xe1, 0x87, 0x55, 0x0b, 0xa7, 0xa1, 0x78, 0x8f, 0xa3, 0x24, 0xcb, |
| 1895 | 0xa4, 0x98, 0xda, 0xe3, 0x22, 0xf0, 0xbe, 0x48, 0xe9, 0xd5, 0xb5, 0x75, 0x4e, 0x3c, 0xdf, 0x72, |
| 1896 | 0x1d, 0x9e, 0x93, 0x08, 0xb5, 0x9b, 0x10, 0xe0, 0x35, 0x89, 0x48, 0x5a, 0xaf, 0x8b, 0x95, 0x65, |
| 1897 | 0x9b, 0x13, 0x6b, 0x11, 0x5f, 0xf6, 0x63, 0x80, 0xee, 0xd4, 0x73, 0x76, 0x1e, 0xbf, 0x37, 0xfc, |
| 1898 | 0x6b, 0xee, 0x25, 0x85, 0x50, 0xed, 0x2b, 0x2b, 0xe0, 0x41, 0x84, 0x37, 0xa7, 0x04, 0x90, 0xde, |
| 1899 | 0x42, 0x7d, 0xe4, 0x5e, 0x8d, 0xc8, 0x0d, 0xb1, 0x69, 0x07, 0x6d, 0xfa, 0xc1, 0xfd, 0x87, 0x04, |
| 1900 | 0xcd, 0x60, 0x6e, 0xd8, 0x36, 0xef, 0x44, 0x1d, 0x73, 0x4a, 0x1a, 0x40, 0x1d, 0x13, 0x7f, 0xe9, |
| 1901 | 0x3a, 0x3e, 0x41, 0x4f, 0xa1, 0xe9, 0x33, 0x7b, 0xb3, 0xb9, 0x6b, 0x12, 0x7e, 0xb4, 0x43, 0x08, |
| 1902 | 0xf5, 0x5c, 0x93, 0xd0, 0xe4, 0x16, 0xc4, 0xf7, 0x8d, 0xab, 0x28, 0x81, 0x88, 0x94, 0xfe, 0x5c, |
| 1903 | 0x80, 0x26, 0x3d, 0x8b, 0xa2, 0xc2, 0x3f, 0x87, 0xaa, 0xe6, 0xac, 0x30, 0xf9, 0xc4, 0xf7, 0xef, |
| 1904 | 0x9d, 0xd4, 0xb6, 0x1b, 0x8a, 0x60, 0x2e, 0x80, 0xde, 0xc1, 0xb6, 0xbe, 0xba, 0x90, 0xd9, 0x3d, |
| 1905 | 0xe7, 0xdc, 0xb0, 0x99, 0xe5, 0x76, 0xdc, 0xef, 0x98, 0xc5, 0xf6, 0x22, 0x9c, 0x11, 0xa5, 0x43, |
| 1906 | 0x36, 0xf4, 0xdc, 0xd5, 0x32, 0x3a, 0xb3, 0xc3, 0xb2, 0x65, 0x30, 0xe9, 0x14, 0x2a, 0xf4, 0xba, |
| 1907 | 0xec, 0xa3, 0x6f, 0x01, 0x2e, 0x6d, 0xf7, 0x76, 0x36, 0x67, 0xaf, 0x5a, 0xbe, 0x97, 0x52, 0x24, |
| 1908 | 0x7c, 0xd3, 0x7e, 0x0f, 0x15, 0x4a, 0xd0, 0x83, 0x9f, 0xce, 0x5b, 0xeb, 0x28, 0x7a, 0x96, 0x53, |
| 1909 | 0x6d, 0x1c, 0xf2, 0xa4, 0xa7, 0x50, 0xa3, 0xdd, 0x72, 0x57, 0x01, 0x2d, 0xb3, 0x49, 0x6c, 0xe3, |
| 1910 | 0x8e, 0x5b, 0x0a, 0x09, 0xa9, 0x06, 0x95, 0xc1, 0x62, 0x19, 0xdc, 0xbd, 0x78, 0x05, 0xed, 0x6c, |
| 1911 | 0xe8, 0xa8, 0x0e, 0xe5, 0x5f, 0x34, 0x85, 0x3e, 0x42, 0x1a, 0x50, 0x19, 0x0d, 0xe4, 0xf3, 0x81, |
| 1912 | 0x50, 0x40, 0x00, 0x55, 0x0a, 0x9e, 0xbf, 0x11, 0x8a, 0xaf, 0xff, 0xd3, 0x84, 0xca, 0xf1, 0xb1, |
| 1913 | 0x6e, 0x2d, 0xd0, 0x4b, 0xa8, 0xf1, 0xa9, 0x42, 0xdb, 0xbc, 0x0e, 0xcc, 0xea, 0xfe, 0x63, 0x4e, |
| 1914 | 0x65, 0x66, 0x4e, 0xda, 0x42, 0xaf, 0xa0, 0xa9, 0x93, 0x20, 0x1e, 0x81, 0x0e, 0x17, 0x8b, 0x80, |
| 1915 | 0xfd, 0x75, 0x40, 0xda, 0x42, 0xcf, 0xa0, 0x3a, 0x24, 0x01, 0x7d, 0x5f, 0x66, 0x5d, 0x40, 0xf2, |
| 1916 | 0x50, 0x90, 0xb6, 0xd0, 0xef, 0x40, 0x0c, 0xa5, 0x72, 0x5e, 0x19, 0x4f, 0xbf, 0xf0, 0x18, 0xdb, |
| 1917 | 0x3f, 0xf8, 0x8c, 0x80, 0x2f, 0x6d, 0xa1, 0x1f, 0x01, 0xc6, 0xee, 0x2d, 0xf1, 0x5c, 0x67, 0x33, |
| 1918 | 0x8c, 0x28, 0xe2, 0x68, 0x38, 0xa5, 0x2d, 0x74, 0x04, 0x4d, 0xfd, 0x7a, 0x15, 0x98, 0xee, 0xed, |
| 1919 | 0xc3, 0xe4, 0xff, 0x1f, 0x1a, 0x98, 0x5c, 0xb8, 0x6e, 0xf0, 0x20, 0x69, 0xda, 0xb0, 0xc0, 0x5d, |
| 1920 | 0x5e, 0xe1, 0x71, 0x8f, 0x9e, 0xf6, 0xc4, 0xfb, 0xb2, 0xca, 0x6b, 0xe8, 0xe8, 0x81, 0xe1, 0x05, |
| 1921 | 0x5f, 0xa3, 0xf3, 0x33, 0xec, 0x60, 0xe2, 0xaf, 0x69, 0x45, 0xd7, 0x0c, 0x3e, 0x5b, 0x79, 0x7a, |
| 1922 | 0xcf, 0xc3, 0x76, 0xa9, 0x53, 0xb4, 0xb9, 0x94, 0xf6, 0x53, 0x97, 0x1a, 0x69, 0x0b, 0xfd, 0x1f, |
| 1923 | 0xbd, 0x0e, 0x06, 0xec, 0xf2, 0x93, 0x0d, 0xa7, 0x99, 0x88, 0xd1, 0xf2, 0xbf, 0x81, 0xe6, 0x90, |
| 1924 | 0x04, 0xf1, 0xd5, 0x67, 0x27, 0x75, 0x7b, 0xe1, 0x76, 0x3b, 0xd9, 0xeb, 0x8f, 0xcf, 0x9a, 0x00, |
| 1925 | 0xd4, 0xb8, 0xb3, 0x9a, 0x3a, 0x96, 0x9f, 0x17, 0x4b, 0x33, 0x31, 0xc3, 0x9d, 0xc4, 0x4d, 0xcb, |
| 1926 | 0x0f, 0xfe, 0x9e, 0xc2, 0x72, 0x25, 0xd9, 0xb6, 0x73, 0x32, 0xc9, 0xd1, 0x79, 0x07, 0x3b, 0x29, |
| 1927 | 0x47, 0xbe, 0xe6, 0x8c, 0x35, 0x35, 0x76, 0x97, 0xdc, 0xa8, 0xf2, 0xdd, 0xc5, 0x73, 0xf8, 0xe0, |
| 1928 | 0x10, 0x5f, 0x41, 0x9b, 0xeb, 0x3c, 0x38, 0xc2, 0xb7, 0x20, 0x24, 0x6e, 0xbe, 0x2a, 0xc0, 0x5f, |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 1929 | 0xc1, 0x36, 0x1f, 0x9a, 0xf0, 0xb1, 0xf0, 0x99, 0x56, 0xa5, 0xb4, 0xde, 0x40, 0x93, 0x6b, 0xb1, |
| 1930 | 0x37, 0xc4, 0xc3, 0x94, 0x8e, 0x61, 0x57, 0x67, 0xfd, 0x65, 0xe7, 0xa8, 0xe2, 0x98, 0xd6, 0xdc, |
| 1931 | 0xa0, 0x7b, 0x18, 0xda, 0x4b, 0xca, 0x92, 0x3e, 0x62, 0x3f, 0x63, 0x83, 0xae, 0xfa, 0x7b, 0x6c, |
| 1932 | 0x64, 0x8f, 0xe9, 0x3c, 0x1b, 0x3f, 0x42, 0x7d, 0x48, 0x82, 0x70, 0xe7, 0xce, 0xe9, 0x48, 0x54, |
| 1933 | 0x6c, 0x26, 0xc0, 0x6a, 0xdb, 0xe9, 0x5d, 0x1b, 0xce, 0x15, 0xa1, 0x87, 0x50, 0xf8, 0xf2, 0x40, |
| 1934 | 0x5c, 0x24, 0x75, 0x2c, 0xe5, 0x39, 0x3a, 0x85, 0x6f, 0xc2, 0x81, 0xde, 0x7c, 0x8d, 0xe4, 0xf8, |
| 1935 | 0x7d, 0x92, 0x40, 0x1b, 0xf2, 0xf1, 0xd2, 0x63, 0x4b, 0x23, 0x7f, 0xe9, 0x85, 0xab, 0xe2, 0xf8, |
| 1936 | 0x87, 0xdf, 0x7e, 0x7f, 0x65, 0x05, 0xd7, 0xab, 0x8b, 0xa3, 0xb9, 0xbb, 0x60, 0x7f, 0x00, 0xcf, |
| 1937 | 0x5d, 0xcf, 0xe4, 0xff, 0x18, 0xc7, 0xff, 0x1d, 0x5f, 0x54, 0xd9, 0x1f, 0xbe, 0x6f, 0xfe, 0x1b, |
| 1938 | 0x00, 0x00, 0xff, 0xff, 0x2d, 0xf0, 0xfb, 0x77, 0x4f, 0x16, 0x00, 0x00, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1939 | } |
| 1940 | |
| 1941 | // Reference imports to suppress errors if they are not otherwise used. |
| 1942 | var _ context.Context |
Kent Hagerman | 60d6230 | 2020-03-10 17:02:36 -0400 | [diff] [blame] | 1943 | var _ grpc.ClientConn |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1944 | |
| 1945 | // This is a compile-time assertion to ensure that this generated file |
| 1946 | // is compatible with the grpc package it is being compiled against. |
Kent Hagerman | 60d6230 | 2020-03-10 17:02:36 -0400 | [diff] [blame] | 1947 | const _ = grpc.SupportPackageIsVersion4 |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1948 | |
| 1949 | // BBSimClient is the client API for BBSim service. |
| 1950 | // |
| 1951 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 1952 | type BBSimClient interface { |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1953 | // Get BBSim version |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1954 | Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1955 | // Set BBSim log level |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1956 | SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1957 | // Get current status of OLT |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1958 | GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 1959 | GetOltAllocatedResources(ctx context.Context, in *OltAllocatedResourceType, opts ...grpc.CallOption) (*OltAllocatedResources, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1960 | // Poweron OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1961 | PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1962 | // Shutdown OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1963 | ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1964 | // Reboot OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1965 | RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 1966 | // Closes the Openolt gRPC server |
| 1967 | StopgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
| 1968 | // Start the Openolt gRPC server |
| 1969 | StartgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 1970 | // Restart the Openolt gRPC server after the given timeout |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 1971 | RestartgRPCServer(ctx context.Context, in *Timeout, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1972 | // Get status of an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1973 | GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1974 | // Get status of all ONUs |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1975 | GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 1976 | // Get all the Services by Uni ID |
| 1977 | GetServices(ctx context.Context, in *UNIRequest, opts ...grpc.CallOption) (*Services, error) |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 1978 | // Get all the UNIs of an ONU by serial number |
| 1979 | GetOnuUnis(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*UNIs, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1980 | // Shutdown an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1981 | ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1982 | // Shutdown all ONUs in OLT |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1983 | ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1984 | // Shutdown all ONUs under a PON by pon-port-ID |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1985 | ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1986 | // Poweron an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1987 | PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1988 | // Poweron all ONUs in OLT |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1989 | PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1990 | // Poweron all ONUs under a PON by pon-port-ID |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 1991 | PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1992 | // Restart EAPOL for ONU |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 1993 | RestartEapol(ctx context.Context, in *UNIRequest, opts ...grpc.CallOption) (*Response, error) |
Onur Kalinagac | 9f9faca | 2021-01-21 14:04:34 +0000 | [diff] [blame] | 1994 | // Restart DHCP for ONU |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 1995 | RestartDhcp(ctx context.Context, in *UNIRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1996 | // Send ONU alarm indication |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1997 | SetOnuAlarmIndication(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 1998 | // Send OLT alarm indication for Interface type NNI or PON |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 1999 | SetOltAlarmIndication(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2000 | // Get all flows or ONU specific flows |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 2001 | GetFlows(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Flows, error) |
Onur Kalinagac | 9f9faca | 2021-01-21 14:04:34 +0000 | [diff] [blame] | 2002 | // Change IGMP state |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 2003 | ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2004 | // Get Traffic scheduler information for ONU |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 2005 | GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error) |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2006 | //Return all the UNIs for all the ONUs |
| 2007 | GetUnis(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UNIs, error) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2008 | } |
| 2009 | |
| 2010 | type bBSimClient struct { |
Kent Hagerman | 60d6230 | 2020-03-10 17:02:36 -0400 | [diff] [blame] | 2011 | cc *grpc.ClientConn |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2012 | } |
| 2013 | |
Kent Hagerman | 60d6230 | 2020-03-10 17:02:36 -0400 | [diff] [blame] | 2014 | func NewBBSimClient(cc *grpc.ClientConn) BBSimClient { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2015 | return &bBSimClient{cc} |
| 2016 | } |
| 2017 | |
| 2018 | func (c *bBSimClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) { |
| 2019 | out := new(VersionNumber) |
| 2020 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/Version", in, out, opts...) |
| 2021 | if err != nil { |
| 2022 | return nil, err |
| 2023 | } |
| 2024 | return out, nil |
| 2025 | } |
| 2026 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2027 | func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) { |
| 2028 | out := new(LogLevel) |
| 2029 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...) |
| 2030 | if err != nil { |
| 2031 | return nil, err |
| 2032 | } |
| 2033 | return out, nil |
| 2034 | } |
| 2035 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2036 | func (c *bBSimClient) GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) { |
| 2037 | out := new(Olt) |
| 2038 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOlt", in, out, opts...) |
| 2039 | if err != nil { |
| 2040 | return nil, err |
| 2041 | } |
| 2042 | return out, nil |
| 2043 | } |
| 2044 | |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 2045 | func (c *bBSimClient) GetOltAllocatedResources(ctx context.Context, in *OltAllocatedResourceType, opts ...grpc.CallOption) (*OltAllocatedResources, error) { |
| 2046 | out := new(OltAllocatedResources) |
| 2047 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOltAllocatedResources", in, out, opts...) |
| 2048 | if err != nil { |
| 2049 | return nil, err |
| 2050 | } |
| 2051 | return out, nil |
| 2052 | } |
| 2053 | |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 2054 | func (c *bBSimClient) PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 2055 | out := new(Response) |
| 2056 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronOlt", in, out, opts...) |
| 2057 | if err != nil { |
| 2058 | return nil, err |
| 2059 | } |
| 2060 | return out, nil |
| 2061 | } |
| 2062 | |
| 2063 | func (c *bBSimClient) ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 2064 | out := new(Response) |
| 2065 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownOlt", in, out, opts...) |
| 2066 | if err != nil { |
| 2067 | return nil, err |
| 2068 | } |
| 2069 | return out, nil |
| 2070 | } |
| 2071 | |
| 2072 | func (c *bBSimClient) RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 2073 | out := new(Response) |
| 2074 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RebootOlt", in, out, opts...) |
| 2075 | if err != nil { |
| 2076 | return nil, err |
| 2077 | } |
| 2078 | return out, nil |
| 2079 | } |
| 2080 | |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 2081 | func (c *bBSimClient) StopgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 2082 | out := new(Response) |
| 2083 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/StopgRPCServer", in, out, opts...) |
| 2084 | if err != nil { |
| 2085 | return nil, err |
| 2086 | } |
| 2087 | return out, nil |
| 2088 | } |
| 2089 | |
| 2090 | func (c *bBSimClient) StartgRPCServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 2091 | out := new(Response) |
| 2092 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/StartgRPCServer", in, out, opts...) |
| 2093 | if err != nil { |
| 2094 | return nil, err |
| 2095 | } |
| 2096 | return out, nil |
| 2097 | } |
| 2098 | |
| 2099 | func (c *bBSimClient) RestartgRPCServer(ctx context.Context, in *Timeout, opts ...grpc.CallOption) (*Response, error) { |
| 2100 | out := new(Response) |
| 2101 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartgRPCServer", in, out, opts...) |
| 2102 | if err != nil { |
| 2103 | return nil, err |
| 2104 | } |
| 2105 | return out, nil |
| 2106 | } |
| 2107 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2108 | func (c *bBSimClient) GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) { |
| 2109 | out := new(ONU) |
| 2110 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONU", in, out, opts...) |
| 2111 | if err != nil { |
| 2112 | return nil, err |
| 2113 | } |
| 2114 | return out, nil |
| 2115 | } |
| 2116 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2117 | func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) { |
| 2118 | out := new(ONUs) |
| 2119 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", in, out, opts...) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2120 | if err != nil { |
| 2121 | return nil, err |
| 2122 | } |
| 2123 | return out, nil |
| 2124 | } |
| 2125 | |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2126 | func (c *bBSimClient) GetServices(ctx context.Context, in *UNIRequest, opts ...grpc.CallOption) (*Services, error) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 2127 | out := new(Services) |
| 2128 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetServices", in, out, opts...) |
| 2129 | if err != nil { |
| 2130 | return nil, err |
| 2131 | } |
| 2132 | return out, nil |
| 2133 | } |
| 2134 | |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 2135 | func (c *bBSimClient) GetOnuUnis(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*UNIs, error) { |
| 2136 | out := new(UNIs) |
| 2137 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOnuUnis", in, out, opts...) |
| 2138 | if err != nil { |
| 2139 | return nil, err |
| 2140 | } |
| 2141 | return out, nil |
| 2142 | } |
| 2143 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2144 | func (c *bBSimClient) ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 2145 | out := new(Response) |
| 2146 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONU", in, out, opts...) |
| 2147 | if err != nil { |
| 2148 | return nil, err |
| 2149 | } |
| 2150 | return out, nil |
| 2151 | } |
| 2152 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2153 | func (c *bBSimClient) ShutdownAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 2154 | out := new(Response) |
| 2155 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownAllONUs", in, out, opts...) |
| 2156 | if err != nil { |
| 2157 | return nil, err |
| 2158 | } |
| 2159 | return out, nil |
| 2160 | } |
| 2161 | |
| 2162 | func (c *bBSimClient) ShutdownONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) { |
| 2163 | out := new(Response) |
| 2164 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONUsOnPON", in, out, opts...) |
| 2165 | if err != nil { |
| 2166 | return nil, err |
| 2167 | } |
| 2168 | return out, nil |
| 2169 | } |
| 2170 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2171 | func (c *bBSimClient) PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 2172 | out := new(Response) |
| 2173 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONU", in, out, opts...) |
| 2174 | if err != nil { |
| 2175 | return nil, err |
| 2176 | } |
| 2177 | return out, nil |
| 2178 | } |
| 2179 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2180 | func (c *bBSimClient) PoweronAllONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 2181 | out := new(Response) |
| 2182 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronAllONUs", in, out, opts...) |
| 2183 | if err != nil { |
| 2184 | return nil, err |
| 2185 | } |
| 2186 | return out, nil |
| 2187 | } |
| 2188 | |
| 2189 | func (c *bBSimClient) PoweronONUsOnPON(ctx context.Context, in *PONRequest, opts ...grpc.CallOption) (*Response, error) { |
| 2190 | out := new(Response) |
| 2191 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONUsOnPON", in, out, opts...) |
| 2192 | if err != nil { |
| 2193 | return nil, err |
| 2194 | } |
| 2195 | return out, nil |
| 2196 | } |
| 2197 | |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2198 | func (c *bBSimClient) RestartEapol(ctx context.Context, in *UNIRequest, opts ...grpc.CallOption) (*Response, error) { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2199 | out := new(Response) |
| 2200 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartEapol", in, out, opts...) |
| 2201 | if err != nil { |
| 2202 | return nil, err |
| 2203 | } |
| 2204 | return out, nil |
| 2205 | } |
| 2206 | |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2207 | func (c *bBSimClient) RestartDhcp(ctx context.Context, in *UNIRequest, opts ...grpc.CallOption) (*Response, error) { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2208 | out := new(Response) |
| 2209 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartDhcp", in, out, opts...) |
| 2210 | if err != nil { |
| 2211 | return nil, err |
| 2212 | } |
| 2213 | return out, nil |
| 2214 | } |
| 2215 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2216 | 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] | 2217 | out := new(Response) |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2218 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetOnuAlarmIndication", in, out, opts...) |
| 2219 | if err != nil { |
| 2220 | return nil, err |
| 2221 | } |
| 2222 | return out, nil |
| 2223 | } |
| 2224 | |
| 2225 | func (c *bBSimClient) SetOltAlarmIndication(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*Response, error) { |
| 2226 | out := new(Response) |
| 2227 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetOltAlarmIndication", in, out, opts...) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2228 | if err != nil { |
| 2229 | return nil, err |
| 2230 | } |
| 2231 | return out, nil |
| 2232 | } |
| 2233 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 2234 | func (c *bBSimClient) GetFlows(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Flows, error) { |
| 2235 | out := new(Flows) |
| 2236 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetFlows", in, out, opts...) |
| 2237 | if err != nil { |
| 2238 | return nil, err |
| 2239 | } |
| 2240 | return out, nil |
| 2241 | } |
| 2242 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 2243 | func (c *bBSimClient) ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error) { |
| 2244 | out := new(Response) |
| 2245 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ChangeIgmpState", in, out, opts...) |
| 2246 | if err != nil { |
| 2247 | return nil, err |
| 2248 | } |
| 2249 | return out, nil |
| 2250 | } |
| 2251 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 2252 | func (c *bBSimClient) GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error) { |
| 2253 | out := new(ONUTrafficSchedulers) |
| 2254 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOnuTrafficSchedulers", in, out, opts...) |
| 2255 | if err != nil { |
| 2256 | return nil, err |
| 2257 | } |
| 2258 | return out, nil |
| 2259 | } |
| 2260 | |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2261 | func (c *bBSimClient) GetUnis(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UNIs, error) { |
| 2262 | out := new(UNIs) |
| 2263 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetUnis", in, out, opts...) |
| 2264 | if err != nil { |
| 2265 | return nil, err |
| 2266 | } |
| 2267 | return out, nil |
| 2268 | } |
| 2269 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2270 | // BBSimServer is the server API for BBSim service. |
| 2271 | type BBSimServer interface { |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2272 | // Get BBSim version |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2273 | Version(context.Context, *Empty) (*VersionNumber, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2274 | // Set BBSim log level |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2275 | SetLogLevel(context.Context, *LogLevel) (*LogLevel, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2276 | // Get current status of OLT |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2277 | GetOlt(context.Context, *Empty) (*Olt, error) |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 2278 | GetOltAllocatedResources(context.Context, *OltAllocatedResourceType) (*OltAllocatedResources, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2279 | // Poweron OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 2280 | PoweronOlt(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2281 | // Shutdown OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 2282 | ShutdownOlt(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2283 | // Reboot OLT |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 2284 | RebootOlt(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 2285 | // Closes the Openolt gRPC server |
| 2286 | StopgRPCServer(context.Context, *Empty) (*Response, error) |
| 2287 | // Start the Openolt gRPC server |
| 2288 | StartgRPCServer(context.Context, *Empty) (*Response, error) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 2289 | // Restart the Openolt gRPC server after the given timeout |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 2290 | RestartgRPCServer(context.Context, *Timeout) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2291 | // Get status of an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2292 | GetONU(context.Context, *ONURequest) (*ONU, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2293 | // Get status of all ONUs |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2294 | GetONUs(context.Context, *Empty) (*ONUs, error) |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2295 | // Get all the Services by Uni ID |
| 2296 | GetServices(context.Context, *UNIRequest) (*Services, error) |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 2297 | // Get all the UNIs of an ONU by serial number |
| 2298 | GetOnuUnis(context.Context, *ONURequest) (*UNIs, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2299 | // Shutdown an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2300 | ShutdownONU(context.Context, *ONURequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2301 | // Shutdown all ONUs in OLT |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2302 | ShutdownAllONUs(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2303 | // Shutdown all ONUs under a PON by pon-port-ID |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2304 | ShutdownONUsOnPON(context.Context, *PONRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2305 | // Poweron an ONU by serial number |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2306 | PoweronONU(context.Context, *ONURequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2307 | // Poweron all ONUs in OLT |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2308 | PoweronAllONUs(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2309 | // Poweron all ONUs under a PON by pon-port-ID |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2310 | PoweronONUsOnPON(context.Context, *PONRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2311 | // Restart EAPOL for ONU |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2312 | RestartEapol(context.Context, *UNIRequest) (*Response, error) |
Onur Kalinagac | 9f9faca | 2021-01-21 14:04:34 +0000 | [diff] [blame] | 2313 | // Restart DHCP for ONU |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2314 | RestartDhcp(context.Context, *UNIRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2315 | // Send ONU alarm indication |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2316 | SetOnuAlarmIndication(context.Context, *ONUAlarmRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2317 | // Send OLT alarm indication for Interface type NNI or PON |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2318 | SetOltAlarmIndication(context.Context, *OLTAlarmRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2319 | // Get all flows or ONU specific flows |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 2320 | GetFlows(context.Context, *ONURequest) (*Flows, error) |
Onur Kalinagac | 9f9faca | 2021-01-21 14:04:34 +0000 | [diff] [blame] | 2321 | // Change IGMP state |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 2322 | ChangeIgmpState(context.Context, *IgmpRequest) (*Response, error) |
Matteo Scandolo | f65e687 | 2020-04-15 15:18:43 -0700 | [diff] [blame] | 2323 | // Get Traffic scheduler information for ONU |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 2324 | GetOnuTrafficSchedulers(context.Context, *ONURequest) (*ONUTrafficSchedulers, error) |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2325 | //Return all the UNIs for all the ONUs |
| 2326 | GetUnis(context.Context, *Empty) (*UNIs, error) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2327 | } |
| 2328 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2329 | // UnimplementedBBSimServer can be embedded to have forward compatible implementations. |
| 2330 | type UnimplementedBBSimServer struct { |
| 2331 | } |
| 2332 | |
| 2333 | func (*UnimplementedBBSimServer) Version(ctx context.Context, req *Empty) (*VersionNumber, error) { |
| 2334 | return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") |
| 2335 | } |
| 2336 | func (*UnimplementedBBSimServer) SetLogLevel(ctx context.Context, req *LogLevel) (*LogLevel, error) { |
| 2337 | return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented") |
| 2338 | } |
| 2339 | func (*UnimplementedBBSimServer) GetOlt(ctx context.Context, req *Empty) (*Olt, error) { |
| 2340 | return nil, status.Errorf(codes.Unimplemented, "method GetOlt not implemented") |
| 2341 | } |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 2342 | func (*UnimplementedBBSimServer) GetOltAllocatedResources(ctx context.Context, req *OltAllocatedResourceType) (*OltAllocatedResources, error) { |
| 2343 | return nil, status.Errorf(codes.Unimplemented, "method GetOltAllocatedResources not implemented") |
| 2344 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2345 | func (*UnimplementedBBSimServer) PoweronOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 2346 | return nil, status.Errorf(codes.Unimplemented, "method PoweronOlt not implemented") |
| 2347 | } |
| 2348 | func (*UnimplementedBBSimServer) ShutdownOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 2349 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownOlt not implemented") |
| 2350 | } |
| 2351 | func (*UnimplementedBBSimServer) RebootOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 2352 | return nil, status.Errorf(codes.Unimplemented, "method RebootOlt not implemented") |
| 2353 | } |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 2354 | func (*UnimplementedBBSimServer) StopgRPCServer(ctx context.Context, req *Empty) (*Response, error) { |
| 2355 | return nil, status.Errorf(codes.Unimplemented, "method StopgRPCServer not implemented") |
| 2356 | } |
| 2357 | func (*UnimplementedBBSimServer) StartgRPCServer(ctx context.Context, req *Empty) (*Response, error) { |
| 2358 | return nil, status.Errorf(codes.Unimplemented, "method StartgRPCServer not implemented") |
| 2359 | } |
| 2360 | func (*UnimplementedBBSimServer) RestartgRPCServer(ctx context.Context, req *Timeout) (*Response, error) { |
| 2361 | return nil, status.Errorf(codes.Unimplemented, "method RestartgRPCServer not implemented") |
| 2362 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2363 | func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) { |
| 2364 | return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented") |
| 2365 | } |
| 2366 | func (*UnimplementedBBSimServer) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) { |
| 2367 | return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented") |
| 2368 | } |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2369 | func (*UnimplementedBBSimServer) GetServices(ctx context.Context, req *UNIRequest) (*Services, error) { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 2370 | return nil, status.Errorf(codes.Unimplemented, "method GetServices not implemented") |
| 2371 | } |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 2372 | func (*UnimplementedBBSimServer) GetOnuUnis(ctx context.Context, req *ONURequest) (*UNIs, error) { |
| 2373 | return nil, status.Errorf(codes.Unimplemented, "method GetOnuUnis not implemented") |
| 2374 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2375 | func (*UnimplementedBBSimServer) ShutdownONU(ctx context.Context, req *ONURequest) (*Response, error) { |
| 2376 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownONU not implemented") |
| 2377 | } |
| 2378 | func (*UnimplementedBBSimServer) ShutdownAllONUs(ctx context.Context, req *Empty) (*Response, error) { |
| 2379 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownAllONUs not implemented") |
| 2380 | } |
| 2381 | func (*UnimplementedBBSimServer) ShutdownONUsOnPON(ctx context.Context, req *PONRequest) (*Response, error) { |
| 2382 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownONUsOnPON not implemented") |
| 2383 | } |
| 2384 | func (*UnimplementedBBSimServer) PoweronONU(ctx context.Context, req *ONURequest) (*Response, error) { |
| 2385 | return nil, status.Errorf(codes.Unimplemented, "method PoweronONU not implemented") |
| 2386 | } |
| 2387 | func (*UnimplementedBBSimServer) PoweronAllONUs(ctx context.Context, req *Empty) (*Response, error) { |
| 2388 | return nil, status.Errorf(codes.Unimplemented, "method PoweronAllONUs not implemented") |
| 2389 | } |
| 2390 | func (*UnimplementedBBSimServer) PoweronONUsOnPON(ctx context.Context, req *PONRequest) (*Response, error) { |
| 2391 | return nil, status.Errorf(codes.Unimplemented, "method PoweronONUsOnPON not implemented") |
| 2392 | } |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2393 | func (*UnimplementedBBSimServer) RestartEapol(ctx context.Context, req *UNIRequest) (*Response, error) { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2394 | return nil, status.Errorf(codes.Unimplemented, "method RestartEapol not implemented") |
| 2395 | } |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2396 | func (*UnimplementedBBSimServer) RestartDhcp(ctx context.Context, req *UNIRequest) (*Response, error) { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2397 | return nil, status.Errorf(codes.Unimplemented, "method RestartDhcp not implemented") |
| 2398 | } |
| 2399 | func (*UnimplementedBBSimServer) SetOnuAlarmIndication(ctx context.Context, req *ONUAlarmRequest) (*Response, error) { |
| 2400 | return nil, status.Errorf(codes.Unimplemented, "method SetOnuAlarmIndication not implemented") |
| 2401 | } |
| 2402 | func (*UnimplementedBBSimServer) SetOltAlarmIndication(ctx context.Context, req *OLTAlarmRequest) (*Response, error) { |
| 2403 | return nil, status.Errorf(codes.Unimplemented, "method SetOltAlarmIndication not implemented") |
| 2404 | } |
| 2405 | func (*UnimplementedBBSimServer) GetFlows(ctx context.Context, req *ONURequest) (*Flows, error) { |
| 2406 | return nil, status.Errorf(codes.Unimplemented, "method GetFlows not implemented") |
| 2407 | } |
| 2408 | func (*UnimplementedBBSimServer) ChangeIgmpState(ctx context.Context, req *IgmpRequest) (*Response, error) { |
| 2409 | return nil, status.Errorf(codes.Unimplemented, "method ChangeIgmpState not implemented") |
| 2410 | } |
| 2411 | func (*UnimplementedBBSimServer) GetOnuTrafficSchedulers(ctx context.Context, req *ONURequest) (*ONUTrafficSchedulers, error) { |
| 2412 | return nil, status.Errorf(codes.Unimplemented, "method GetOnuTrafficSchedulers not implemented") |
| 2413 | } |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2414 | func (*UnimplementedBBSimServer) GetUnis(ctx context.Context, req *Empty) (*UNIs, error) { |
| 2415 | return nil, status.Errorf(codes.Unimplemented, "method GetUnis not implemented") |
| 2416 | } |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2417 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2418 | func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) { |
| 2419 | s.RegisterService(&_BBSim_serviceDesc, srv) |
| 2420 | } |
| 2421 | |
| 2422 | func _BBSim_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2423 | in := new(Empty) |
| 2424 | if err := dec(in); err != nil { |
| 2425 | return nil, err |
| 2426 | } |
| 2427 | if interceptor == nil { |
| 2428 | return srv.(BBSimServer).Version(ctx, in) |
| 2429 | } |
| 2430 | info := &grpc.UnaryServerInfo{ |
| 2431 | Server: srv, |
| 2432 | FullMethod: "/bbsim.BBSim/Version", |
| 2433 | } |
| 2434 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2435 | return srv.(BBSimServer).Version(ctx, req.(*Empty)) |
| 2436 | } |
| 2437 | return interceptor(ctx, in, info, handler) |
| 2438 | } |
| 2439 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2440 | func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2441 | in := new(LogLevel) |
| 2442 | if err := dec(in); err != nil { |
| 2443 | return nil, err |
| 2444 | } |
| 2445 | if interceptor == nil { |
| 2446 | return srv.(BBSimServer).SetLogLevel(ctx, in) |
| 2447 | } |
| 2448 | info := &grpc.UnaryServerInfo{ |
| 2449 | Server: srv, |
| 2450 | FullMethod: "/bbsim.BBSim/SetLogLevel", |
| 2451 | } |
| 2452 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2453 | return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel)) |
| 2454 | } |
| 2455 | return interceptor(ctx, in, info, handler) |
| 2456 | } |
| 2457 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2458 | func _BBSim_GetOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2459 | in := new(Empty) |
| 2460 | if err := dec(in); err != nil { |
| 2461 | return nil, err |
| 2462 | } |
| 2463 | if interceptor == nil { |
| 2464 | return srv.(BBSimServer).GetOlt(ctx, in) |
| 2465 | } |
| 2466 | info := &grpc.UnaryServerInfo{ |
| 2467 | Server: srv, |
| 2468 | FullMethod: "/bbsim.BBSim/GetOlt", |
| 2469 | } |
| 2470 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2471 | return srv.(BBSimServer).GetOlt(ctx, req.(*Empty)) |
| 2472 | } |
| 2473 | return interceptor(ctx, in, info, handler) |
| 2474 | } |
| 2475 | |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 2476 | func _BBSim_GetOltAllocatedResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2477 | in := new(OltAllocatedResourceType) |
| 2478 | if err := dec(in); err != nil { |
| 2479 | return nil, err |
| 2480 | } |
| 2481 | if interceptor == nil { |
| 2482 | return srv.(BBSimServer).GetOltAllocatedResources(ctx, in) |
| 2483 | } |
| 2484 | info := &grpc.UnaryServerInfo{ |
| 2485 | Server: srv, |
| 2486 | FullMethod: "/bbsim.BBSim/GetOltAllocatedResources", |
| 2487 | } |
| 2488 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2489 | return srv.(BBSimServer).GetOltAllocatedResources(ctx, req.(*OltAllocatedResourceType)) |
| 2490 | } |
| 2491 | return interceptor(ctx, in, info, handler) |
| 2492 | } |
| 2493 | |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 2494 | func _BBSim_PoweronOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2495 | in := new(Empty) |
| 2496 | if err := dec(in); err != nil { |
| 2497 | return nil, err |
| 2498 | } |
| 2499 | if interceptor == nil { |
| 2500 | return srv.(BBSimServer).PoweronOlt(ctx, in) |
| 2501 | } |
| 2502 | info := &grpc.UnaryServerInfo{ |
| 2503 | Server: srv, |
| 2504 | FullMethod: "/bbsim.BBSim/PoweronOlt", |
| 2505 | } |
| 2506 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2507 | return srv.(BBSimServer).PoweronOlt(ctx, req.(*Empty)) |
| 2508 | } |
| 2509 | return interceptor(ctx, in, info, handler) |
| 2510 | } |
| 2511 | |
| 2512 | func _BBSim_ShutdownOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2513 | in := new(Empty) |
| 2514 | if err := dec(in); err != nil { |
| 2515 | return nil, err |
| 2516 | } |
| 2517 | if interceptor == nil { |
| 2518 | return srv.(BBSimServer).ShutdownOlt(ctx, in) |
| 2519 | } |
| 2520 | info := &grpc.UnaryServerInfo{ |
| 2521 | Server: srv, |
| 2522 | FullMethod: "/bbsim.BBSim/ShutdownOlt", |
| 2523 | } |
| 2524 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2525 | return srv.(BBSimServer).ShutdownOlt(ctx, req.(*Empty)) |
| 2526 | } |
| 2527 | return interceptor(ctx, in, info, handler) |
| 2528 | } |
| 2529 | |
| 2530 | func _BBSim_RebootOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2531 | in := new(Empty) |
| 2532 | if err := dec(in); err != nil { |
| 2533 | return nil, err |
| 2534 | } |
| 2535 | if interceptor == nil { |
| 2536 | return srv.(BBSimServer).RebootOlt(ctx, in) |
| 2537 | } |
| 2538 | info := &grpc.UnaryServerInfo{ |
| 2539 | Server: srv, |
| 2540 | FullMethod: "/bbsim.BBSim/RebootOlt", |
| 2541 | } |
| 2542 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2543 | return srv.(BBSimServer).RebootOlt(ctx, req.(*Empty)) |
| 2544 | } |
| 2545 | return interceptor(ctx, in, info, handler) |
| 2546 | } |
| 2547 | |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 2548 | func _BBSim_StopgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2549 | in := new(Empty) |
| 2550 | if err := dec(in); err != nil { |
| 2551 | return nil, err |
| 2552 | } |
| 2553 | if interceptor == nil { |
| 2554 | return srv.(BBSimServer).StopgRPCServer(ctx, in) |
| 2555 | } |
| 2556 | info := &grpc.UnaryServerInfo{ |
| 2557 | Server: srv, |
| 2558 | FullMethod: "/bbsim.BBSim/StopgRPCServer", |
| 2559 | } |
| 2560 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2561 | return srv.(BBSimServer).StopgRPCServer(ctx, req.(*Empty)) |
| 2562 | } |
| 2563 | return interceptor(ctx, in, info, handler) |
| 2564 | } |
| 2565 | |
| 2566 | func _BBSim_StartgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2567 | in := new(Empty) |
| 2568 | if err := dec(in); err != nil { |
| 2569 | return nil, err |
| 2570 | } |
| 2571 | if interceptor == nil { |
| 2572 | return srv.(BBSimServer).StartgRPCServer(ctx, in) |
| 2573 | } |
| 2574 | info := &grpc.UnaryServerInfo{ |
| 2575 | Server: srv, |
| 2576 | FullMethod: "/bbsim.BBSim/StartgRPCServer", |
| 2577 | } |
| 2578 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2579 | return srv.(BBSimServer).StartgRPCServer(ctx, req.(*Empty)) |
| 2580 | } |
| 2581 | return interceptor(ctx, in, info, handler) |
| 2582 | } |
| 2583 | |
| 2584 | func _BBSim_RestartgRPCServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2585 | in := new(Timeout) |
| 2586 | if err := dec(in); err != nil { |
| 2587 | return nil, err |
| 2588 | } |
| 2589 | if interceptor == nil { |
| 2590 | return srv.(BBSimServer).RestartgRPCServer(ctx, in) |
| 2591 | } |
| 2592 | info := &grpc.UnaryServerInfo{ |
| 2593 | Server: srv, |
| 2594 | FullMethod: "/bbsim.BBSim/RestartgRPCServer", |
| 2595 | } |
| 2596 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2597 | return srv.(BBSimServer).RestartgRPCServer(ctx, req.(*Timeout)) |
| 2598 | } |
| 2599 | return interceptor(ctx, in, info, handler) |
| 2600 | } |
| 2601 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2602 | func _BBSim_GetONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2603 | in := new(ONURequest) |
| 2604 | if err := dec(in); err != nil { |
| 2605 | return nil, err |
| 2606 | } |
| 2607 | if interceptor == nil { |
| 2608 | return srv.(BBSimServer).GetONU(ctx, in) |
| 2609 | } |
| 2610 | info := &grpc.UnaryServerInfo{ |
| 2611 | Server: srv, |
| 2612 | FullMethod: "/bbsim.BBSim/GetONU", |
| 2613 | } |
| 2614 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2615 | return srv.(BBSimServer).GetONU(ctx, req.(*ONURequest)) |
| 2616 | } |
| 2617 | return interceptor(ctx, in, info, handler) |
| 2618 | } |
| 2619 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2620 | func _BBSim_GetONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2621 | in := new(Empty) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2622 | if err := dec(in); err != nil { |
| 2623 | return nil, err |
| 2624 | } |
| 2625 | if interceptor == nil { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2626 | return srv.(BBSimServer).GetONUs(ctx, in) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2627 | } |
| 2628 | info := &grpc.UnaryServerInfo{ |
| 2629 | Server: srv, |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2630 | FullMethod: "/bbsim.BBSim/GetONUs", |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2631 | } |
| 2632 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2633 | return srv.(BBSimServer).GetONUs(ctx, req.(*Empty)) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2634 | } |
| 2635 | return interceptor(ctx, in, info, handler) |
| 2636 | } |
| 2637 | |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 2638 | func _BBSim_GetServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2639 | in := new(UNIRequest) |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 2640 | if err := dec(in); err != nil { |
| 2641 | return nil, err |
| 2642 | } |
| 2643 | if interceptor == nil { |
| 2644 | return srv.(BBSimServer).GetServices(ctx, in) |
| 2645 | } |
| 2646 | info := &grpc.UnaryServerInfo{ |
| 2647 | Server: srv, |
| 2648 | FullMethod: "/bbsim.BBSim/GetServices", |
| 2649 | } |
| 2650 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2651 | return srv.(BBSimServer).GetServices(ctx, req.(*UNIRequest)) |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 2652 | } |
| 2653 | return interceptor(ctx, in, info, handler) |
| 2654 | } |
| 2655 | |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 2656 | func _BBSim_GetOnuUnis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2657 | in := new(ONURequest) |
| 2658 | if err := dec(in); err != nil { |
| 2659 | return nil, err |
| 2660 | } |
| 2661 | if interceptor == nil { |
| 2662 | return srv.(BBSimServer).GetOnuUnis(ctx, in) |
| 2663 | } |
| 2664 | info := &grpc.UnaryServerInfo{ |
| 2665 | Server: srv, |
| 2666 | FullMethod: "/bbsim.BBSim/GetOnuUnis", |
| 2667 | } |
| 2668 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2669 | return srv.(BBSimServer).GetOnuUnis(ctx, req.(*ONURequest)) |
| 2670 | } |
| 2671 | return interceptor(ctx, in, info, handler) |
| 2672 | } |
| 2673 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2674 | func _BBSim_ShutdownONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2675 | in := new(ONURequest) |
| 2676 | if err := dec(in); err != nil { |
| 2677 | return nil, err |
| 2678 | } |
| 2679 | if interceptor == nil { |
| 2680 | return srv.(BBSimServer).ShutdownONU(ctx, in) |
| 2681 | } |
| 2682 | info := &grpc.UnaryServerInfo{ |
| 2683 | Server: srv, |
| 2684 | FullMethod: "/bbsim.BBSim/ShutdownONU", |
| 2685 | } |
| 2686 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2687 | return srv.(BBSimServer).ShutdownONU(ctx, req.(*ONURequest)) |
| 2688 | } |
| 2689 | return interceptor(ctx, in, info, handler) |
| 2690 | } |
| 2691 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2692 | func _BBSim_ShutdownAllONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2693 | in := new(Empty) |
| 2694 | if err := dec(in); err != nil { |
| 2695 | return nil, err |
| 2696 | } |
| 2697 | if interceptor == nil { |
| 2698 | return srv.(BBSimServer).ShutdownAllONUs(ctx, in) |
| 2699 | } |
| 2700 | info := &grpc.UnaryServerInfo{ |
| 2701 | Server: srv, |
| 2702 | FullMethod: "/bbsim.BBSim/ShutdownAllONUs", |
| 2703 | } |
| 2704 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2705 | return srv.(BBSimServer).ShutdownAllONUs(ctx, req.(*Empty)) |
| 2706 | } |
| 2707 | return interceptor(ctx, in, info, handler) |
| 2708 | } |
| 2709 | |
| 2710 | func _BBSim_ShutdownONUsOnPON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2711 | in := new(PONRequest) |
| 2712 | if err := dec(in); err != nil { |
| 2713 | return nil, err |
| 2714 | } |
| 2715 | if interceptor == nil { |
| 2716 | return srv.(BBSimServer).ShutdownONUsOnPON(ctx, in) |
| 2717 | } |
| 2718 | info := &grpc.UnaryServerInfo{ |
| 2719 | Server: srv, |
| 2720 | FullMethod: "/bbsim.BBSim/ShutdownONUsOnPON", |
| 2721 | } |
| 2722 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2723 | return srv.(BBSimServer).ShutdownONUsOnPON(ctx, req.(*PONRequest)) |
| 2724 | } |
| 2725 | return interceptor(ctx, in, info, handler) |
| 2726 | } |
| 2727 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2728 | func _BBSim_PoweronONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2729 | in := new(ONURequest) |
| 2730 | if err := dec(in); err != nil { |
| 2731 | return nil, err |
| 2732 | } |
| 2733 | if interceptor == nil { |
| 2734 | return srv.(BBSimServer).PoweronONU(ctx, in) |
| 2735 | } |
| 2736 | info := &grpc.UnaryServerInfo{ |
| 2737 | Server: srv, |
| 2738 | FullMethod: "/bbsim.BBSim/PoweronONU", |
| 2739 | } |
| 2740 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2741 | return srv.(BBSimServer).PoweronONU(ctx, req.(*ONURequest)) |
| 2742 | } |
| 2743 | return interceptor(ctx, in, info, handler) |
| 2744 | } |
| 2745 | |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2746 | func _BBSim_PoweronAllONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2747 | in := new(Empty) |
| 2748 | if err := dec(in); err != nil { |
| 2749 | return nil, err |
| 2750 | } |
| 2751 | if interceptor == nil { |
| 2752 | return srv.(BBSimServer).PoweronAllONUs(ctx, in) |
| 2753 | } |
| 2754 | info := &grpc.UnaryServerInfo{ |
| 2755 | Server: srv, |
| 2756 | FullMethod: "/bbsim.BBSim/PoweronAllONUs", |
| 2757 | } |
| 2758 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2759 | return srv.(BBSimServer).PoweronAllONUs(ctx, req.(*Empty)) |
| 2760 | } |
| 2761 | return interceptor(ctx, in, info, handler) |
| 2762 | } |
| 2763 | |
| 2764 | func _BBSim_PoweronONUsOnPON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2765 | in := new(PONRequest) |
| 2766 | if err := dec(in); err != nil { |
| 2767 | return nil, err |
| 2768 | } |
| 2769 | if interceptor == nil { |
| 2770 | return srv.(BBSimServer).PoweronONUsOnPON(ctx, in) |
| 2771 | } |
| 2772 | info := &grpc.UnaryServerInfo{ |
| 2773 | Server: srv, |
| 2774 | FullMethod: "/bbsim.BBSim/PoweronONUsOnPON", |
| 2775 | } |
| 2776 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2777 | return srv.(BBSimServer).PoweronONUsOnPON(ctx, req.(*PONRequest)) |
| 2778 | } |
| 2779 | return interceptor(ctx, in, info, handler) |
| 2780 | } |
| 2781 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2782 | func _BBSim_RestartEapol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2783 | in := new(UNIRequest) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2784 | if err := dec(in); err != nil { |
| 2785 | return nil, err |
| 2786 | } |
| 2787 | if interceptor == nil { |
| 2788 | return srv.(BBSimServer).RestartEapol(ctx, in) |
| 2789 | } |
| 2790 | info := &grpc.UnaryServerInfo{ |
| 2791 | Server: srv, |
| 2792 | FullMethod: "/bbsim.BBSim/RestartEapol", |
| 2793 | } |
| 2794 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2795 | return srv.(BBSimServer).RestartEapol(ctx, req.(*UNIRequest)) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2796 | } |
| 2797 | return interceptor(ctx, in, info, handler) |
| 2798 | } |
| 2799 | |
| 2800 | func _BBSim_RestartDhcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2801 | in := new(UNIRequest) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2802 | if err := dec(in); err != nil { |
| 2803 | return nil, err |
| 2804 | } |
| 2805 | if interceptor == nil { |
| 2806 | return srv.(BBSimServer).RestartDhcp(ctx, in) |
| 2807 | } |
| 2808 | info := &grpc.UnaryServerInfo{ |
| 2809 | Server: srv, |
| 2810 | FullMethod: "/bbsim.BBSim/RestartDhcp", |
| 2811 | } |
| 2812 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
Nitin Subramanian | 150f1bb | 2021-08-02 12:04:05 -0700 | [diff] [blame^] | 2813 | return srv.(BBSimServer).RestartDhcp(ctx, req.(*UNIRequest)) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2814 | } |
| 2815 | return interceptor(ctx, in, info, handler) |
| 2816 | } |
| 2817 | |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2818 | func _BBSim_SetOnuAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2819 | in := new(ONUAlarmRequest) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2820 | if err := dec(in); err != nil { |
| 2821 | return nil, err |
| 2822 | } |
| 2823 | if interceptor == nil { |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2824 | return srv.(BBSimServer).SetOnuAlarmIndication(ctx, in) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2825 | } |
| 2826 | info := &grpc.UnaryServerInfo{ |
| 2827 | Server: srv, |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2828 | FullMethod: "/bbsim.BBSim/SetOnuAlarmIndication", |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2829 | } |
| 2830 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 2831 | return srv.(BBSimServer).SetOnuAlarmIndication(ctx, req.(*ONUAlarmRequest)) |
| 2832 | } |
| 2833 | return interceptor(ctx, in, info, handler) |
| 2834 | } |
| 2835 | |
| 2836 | func _BBSim_SetOltAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2837 | in := new(OLTAlarmRequest) |
| 2838 | if err := dec(in); err != nil { |
| 2839 | return nil, err |
| 2840 | } |
| 2841 | if interceptor == nil { |
| 2842 | return srv.(BBSimServer).SetOltAlarmIndication(ctx, in) |
| 2843 | } |
| 2844 | info := &grpc.UnaryServerInfo{ |
| 2845 | Server: srv, |
| 2846 | FullMethod: "/bbsim.BBSim/SetOltAlarmIndication", |
| 2847 | } |
| 2848 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2849 | return srv.(BBSimServer).SetOltAlarmIndication(ctx, req.(*OLTAlarmRequest)) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 2850 | } |
| 2851 | return interceptor(ctx, in, info, handler) |
| 2852 | } |
| 2853 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 2854 | func _BBSim_GetFlows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2855 | in := new(ONURequest) |
| 2856 | if err := dec(in); err != nil { |
| 2857 | return nil, err |
| 2858 | } |
| 2859 | if interceptor == nil { |
| 2860 | return srv.(BBSimServer).GetFlows(ctx, in) |
| 2861 | } |
| 2862 | info := &grpc.UnaryServerInfo{ |
| 2863 | Server: srv, |
| 2864 | FullMethod: "/bbsim.BBSim/GetFlows", |
| 2865 | } |
| 2866 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2867 | return srv.(BBSimServer).GetFlows(ctx, req.(*ONURequest)) |
| 2868 | } |
| 2869 | return interceptor(ctx, in, info, handler) |
| 2870 | } |
| 2871 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 2872 | func _BBSim_ChangeIgmpState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2873 | in := new(IgmpRequest) |
| 2874 | if err := dec(in); err != nil { |
| 2875 | return nil, err |
| 2876 | } |
| 2877 | if interceptor == nil { |
| 2878 | return srv.(BBSimServer).ChangeIgmpState(ctx, in) |
| 2879 | } |
| 2880 | info := &grpc.UnaryServerInfo{ |
| 2881 | Server: srv, |
| 2882 | FullMethod: "/bbsim.BBSim/ChangeIgmpState", |
| 2883 | } |
| 2884 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2885 | return srv.(BBSimServer).ChangeIgmpState(ctx, req.(*IgmpRequest)) |
| 2886 | } |
| 2887 | return interceptor(ctx, in, info, handler) |
| 2888 | } |
| 2889 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 2890 | func _BBSim_GetOnuTrafficSchedulers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2891 | in := new(ONURequest) |
| 2892 | if err := dec(in); err != nil { |
| 2893 | return nil, err |
| 2894 | } |
| 2895 | if interceptor == nil { |
| 2896 | return srv.(BBSimServer).GetOnuTrafficSchedulers(ctx, in) |
| 2897 | } |
| 2898 | info := &grpc.UnaryServerInfo{ |
| 2899 | Server: srv, |
| 2900 | FullMethod: "/bbsim.BBSim/GetOnuTrafficSchedulers", |
| 2901 | } |
| 2902 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2903 | return srv.(BBSimServer).GetOnuTrafficSchedulers(ctx, req.(*ONURequest)) |
| 2904 | } |
| 2905 | return interceptor(ctx, in, info, handler) |
| 2906 | } |
| 2907 | |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 2908 | func _BBSim_GetUnis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2909 | in := new(Empty) |
| 2910 | if err := dec(in); err != nil { |
| 2911 | return nil, err |
| 2912 | } |
| 2913 | if interceptor == nil { |
| 2914 | return srv.(BBSimServer).GetUnis(ctx, in) |
| 2915 | } |
| 2916 | info := &grpc.UnaryServerInfo{ |
| 2917 | Server: srv, |
| 2918 | FullMethod: "/bbsim.BBSim/GetUnis", |
| 2919 | } |
| 2920 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2921 | return srv.(BBSimServer).GetUnis(ctx, req.(*Empty)) |
| 2922 | } |
| 2923 | return interceptor(ctx, in, info, handler) |
| 2924 | } |
| 2925 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2926 | var _BBSim_serviceDesc = grpc.ServiceDesc{ |
| 2927 | ServiceName: "bbsim.BBSim", |
| 2928 | HandlerType: (*BBSimServer)(nil), |
| 2929 | Methods: []grpc.MethodDesc{ |
| 2930 | { |
| 2931 | MethodName: "Version", |
| 2932 | Handler: _BBSim_Version_Handler, |
| 2933 | }, |
| 2934 | { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2935 | MethodName: "SetLogLevel", |
| 2936 | Handler: _BBSim_SetLogLevel_Handler, |
| 2937 | }, |
| 2938 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2939 | MethodName: "GetOlt", |
| 2940 | Handler: _BBSim_GetOlt_Handler, |
| 2941 | }, |
| 2942 | { |
Matteo Scandolo | 4b077aa | 2021-02-16 17:33:37 -0800 | [diff] [blame] | 2943 | MethodName: "GetOltAllocatedResources", |
| 2944 | Handler: _BBSim_GetOltAllocatedResources_Handler, |
| 2945 | }, |
| 2946 | { |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 2947 | MethodName: "PoweronOlt", |
| 2948 | Handler: _BBSim_PoweronOlt_Handler, |
| 2949 | }, |
| 2950 | { |
| 2951 | MethodName: "ShutdownOlt", |
| 2952 | Handler: _BBSim_ShutdownOlt_Handler, |
| 2953 | }, |
| 2954 | { |
| 2955 | MethodName: "RebootOlt", |
| 2956 | Handler: _BBSim_RebootOlt_Handler, |
| 2957 | }, |
| 2958 | { |
Matteo Scandolo | 88c204a | 2020-11-03 10:34:24 -0800 | [diff] [blame] | 2959 | MethodName: "StopgRPCServer", |
| 2960 | Handler: _BBSim_StopgRPCServer_Handler, |
| 2961 | }, |
| 2962 | { |
| 2963 | MethodName: "StartgRPCServer", |
| 2964 | Handler: _BBSim_StartgRPCServer_Handler, |
| 2965 | }, |
| 2966 | { |
| 2967 | MethodName: "RestartgRPCServer", |
| 2968 | Handler: _BBSim_RestartgRPCServer_Handler, |
| 2969 | }, |
| 2970 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2971 | MethodName: "GetONU", |
| 2972 | Handler: _BBSim_GetONU_Handler, |
| 2973 | }, |
| 2974 | { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2975 | MethodName: "GetONUs", |
| 2976 | Handler: _BBSim_GetONUs_Handler, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2977 | }, |
| 2978 | { |
Matteo Scandolo | 4a03626 | 2020-08-17 15:56:13 -0700 | [diff] [blame] | 2979 | MethodName: "GetServices", |
| 2980 | Handler: _BBSim_GetServices_Handler, |
| 2981 | }, |
| 2982 | { |
Matteo Scandolo | ef4e8f8 | 2021-05-17 11:20:49 -0700 | [diff] [blame] | 2983 | MethodName: "GetOnuUnis", |
| 2984 | Handler: _BBSim_GetOnuUnis_Handler, |
| 2985 | }, |
| 2986 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2987 | MethodName: "ShutdownONU", |
| 2988 | Handler: _BBSim_ShutdownONU_Handler, |
| 2989 | }, |
| 2990 | { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 2991 | MethodName: "ShutdownAllONUs", |
| 2992 | Handler: _BBSim_ShutdownAllONUs_Handler, |
| 2993 | }, |
| 2994 | { |
| 2995 | MethodName: "ShutdownONUsOnPON", |
| 2996 | Handler: _BBSim_ShutdownONUsOnPON_Handler, |
| 2997 | }, |
| 2998 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 2999 | MethodName: "PoweronONU", |
| 3000 | Handler: _BBSim_PoweronONU_Handler, |
| 3001 | }, |
| 3002 | { |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 3003 | MethodName: "PoweronAllONUs", |
| 3004 | Handler: _BBSim_PoweronAllONUs_Handler, |
| 3005 | }, |
| 3006 | { |
| 3007 | MethodName: "PoweronONUsOnPON", |
| 3008 | Handler: _BBSim_PoweronONUsOnPON_Handler, |
| 3009 | }, |
| 3010 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 3011 | MethodName: "RestartEapol", |
| 3012 | Handler: _BBSim_RestartEapol_Handler, |
| 3013 | }, |
| 3014 | { |
| 3015 | MethodName: "RestartDhcp", |
| 3016 | Handler: _BBSim_RestartDhcp_Handler, |
| 3017 | }, |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 3018 | { |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 3019 | MethodName: "SetOnuAlarmIndication", |
| 3020 | Handler: _BBSim_SetOnuAlarmIndication_Handler, |
| 3021 | }, |
| 3022 | { |
| 3023 | MethodName: "SetOltAlarmIndication", |
| 3024 | Handler: _BBSim_SetOltAlarmIndication_Handler, |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 3025 | }, |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 3026 | { |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 3027 | MethodName: "GetFlows", |
| 3028 | Handler: _BBSim_GetFlows_Handler, |
| 3029 | }, |
| 3030 | { |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 3031 | MethodName: "ChangeIgmpState", |
| 3032 | Handler: _BBSim_ChangeIgmpState_Handler, |
| 3033 | }, |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 3034 | { |
| 3035 | MethodName: "GetOnuTrafficSchedulers", |
| 3036 | Handler: _BBSim_GetOnuTrafficSchedulers_Handler, |
| 3037 | }, |
Nitin Subramanian | b0a333a | 2021-07-08 15:01:41 -0700 | [diff] [blame] | 3038 | { |
| 3039 | MethodName: "GetUnis", |
| 3040 | Handler: _BBSim_GetUnis_Handler, |
| 3041 | }, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 3042 | }, |
| 3043 | Streams: []grpc.StreamDesc{}, |
| 3044 | Metadata: "api/bbsim/bbsim.proto", |
| 3045 | } |