blob: 44e256754418c43c572f0890ca64e125bbc5db3c [file] [log] [blame]
khenaidood948f772021-08-11 17:49:24 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/voltha.proto
3
4package voltha
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 empty "github.com/golang/protobuf/ptypes/empty"
11 common "github.com/opencord/voltha-protos/v5/go/common"
khenaidoo9beaaf12021-10-19 17:32:01 -040012 extension "github.com/opencord/voltha-protos/v5/go/extension"
13 health "github.com/opencord/voltha-protos/v5/go/health"
khenaidood948f772021-08-11 17:49:24 -040014 omci "github.com/opencord/voltha-protos/v5/go/omci"
15 openflow_13 "github.com/opencord/voltha-protos/v5/go/openflow_13"
16 _ "google.golang.org/genproto/googleapis/api/annotations"
17 grpc "google.golang.org/grpc"
18 codes "google.golang.org/grpc/codes"
19 status "google.golang.org/grpc/status"
20 math "math"
21)
22
23// Reference imports to suppress errors if they are not otherwise used.
24var _ = proto.Marshal
25var _ = fmt.Errorf
26var _ = math.Inf
27
28// This is a compile-time assertion to ensure that this generated file
29// is compatible with the proto package it is being compiled against.
30// A compilation error at this line likely means your copy of the
31// proto package needs to be updated.
32const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
33
khenaidood948f772021-08-11 17:49:24 -040034// ID from public import voltha_protos/common.proto
35type ID = common.ID
36
37// IDs from public import voltha_protos/common.proto
38type IDs = common.IDs
39
40// AdminState from public import voltha_protos/common.proto
41type AdminState = common.AdminState
42
43// OperStatus from public import voltha_protos/common.proto
44type OperStatus = common.OperStatus
45
46// ConnectStatus from public import voltha_protos/common.proto
47type ConnectStatus = common.ConnectStatus
48
49// OperationResp from public import voltha_protos/common.proto
50type OperationResp = common.OperationResp
51
khenaidood948f772021-08-11 17:49:24 -040052// TestModeKeys from public import voltha_protos/common.proto
53type TestModeKeys = common.TestModeKeys
54
55var TestModeKeys_name = common.TestModeKeys_name
56var TestModeKeys_value = common.TestModeKeys_value
57
58const TestModeKeys_api_test = TestModeKeys(common.TestModeKeys_api_test)
59
60// AdminState_Types from public import voltha_protos/common.proto
61type AdminState_Types = common.AdminState_Types
62
63var AdminState_Types_name = common.AdminState_Types_name
64var AdminState_Types_value = common.AdminState_Types_value
65
66const AdminState_UNKNOWN = AdminState_Types(common.AdminState_UNKNOWN)
67const AdminState_PREPROVISIONED = AdminState_Types(common.AdminState_PREPROVISIONED)
68const AdminState_ENABLED = AdminState_Types(common.AdminState_ENABLED)
69const AdminState_DISABLED = AdminState_Types(common.AdminState_DISABLED)
70const AdminState_DOWNLOADING_IMAGE = AdminState_Types(common.AdminState_DOWNLOADING_IMAGE)
71
72// OperStatus_Types from public import voltha_protos/common.proto
73type OperStatus_Types = common.OperStatus_Types
74
75var OperStatus_Types_name = common.OperStatus_Types_name
76var OperStatus_Types_value = common.OperStatus_Types_value
77
78const OperStatus_UNKNOWN = OperStatus_Types(common.OperStatus_UNKNOWN)
79const OperStatus_DISCOVERED = OperStatus_Types(common.OperStatus_DISCOVERED)
80const OperStatus_ACTIVATING = OperStatus_Types(common.OperStatus_ACTIVATING)
81const OperStatus_TESTING = OperStatus_Types(common.OperStatus_TESTING)
82const OperStatus_ACTIVE = OperStatus_Types(common.OperStatus_ACTIVE)
83const OperStatus_FAILED = OperStatus_Types(common.OperStatus_FAILED)
84const OperStatus_RECONCILING = OperStatus_Types(common.OperStatus_RECONCILING)
85const OperStatus_RECONCILING_FAILED = OperStatus_Types(common.OperStatus_RECONCILING_FAILED)
86
87// ConnectStatus_Types from public import voltha_protos/common.proto
88type ConnectStatus_Types = common.ConnectStatus_Types
89
90var ConnectStatus_Types_name = common.ConnectStatus_Types_name
91var ConnectStatus_Types_value = common.ConnectStatus_Types_value
92
93const ConnectStatus_UNKNOWN = ConnectStatus_Types(common.ConnectStatus_UNKNOWN)
94const ConnectStatus_UNREACHABLE = ConnectStatus_Types(common.ConnectStatus_UNREACHABLE)
95const ConnectStatus_REACHABLE = ConnectStatus_Types(common.ConnectStatus_REACHABLE)
96
97// OperationResp_OperationReturnCode from public import voltha_protos/common.proto
98type OperationResp_OperationReturnCode = common.OperationResp_OperationReturnCode
99
100var OperationResp_OperationReturnCode_name = common.OperationResp_OperationReturnCode_name
101var OperationResp_OperationReturnCode_value = common.OperationResp_OperationReturnCode_value
102
103const OperationResp_OPERATION_SUCCESS = OperationResp_OperationReturnCode(common.OperationResp_OPERATION_SUCCESS)
104const OperationResp_OPERATION_FAILURE = OperationResp_OperationReturnCode(common.OperationResp_OPERATION_FAILURE)
105const OperationResp_OPERATION_UNSUPPORTED = OperationResp_OperationReturnCode(common.OperationResp_OPERATION_UNSUPPORTED)
106const OperationResp_OPERATION_IN_PROGRESS = OperationResp_OperationReturnCode(common.OperationResp_OPERATION_IN_PROGRESS)
107
khenaidood948f772021-08-11 17:49:24 -0400108// CoreInstance represents a core instance. It is data held in memory when a core
109// is running. This data is not persistent.
110type CoreInstance struct {
khenaidoo9beaaf12021-10-19 17:32:01 -0400111 InstanceId string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
112 Health *health.HealthStatus `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"`
113 XXX_NoUnkeyedLiteral struct{} `json:"-"`
114 XXX_unrecognized []byte `json:"-"`
115 XXX_sizecache int32 `json:"-"`
khenaidood948f772021-08-11 17:49:24 -0400116}
117
118func (m *CoreInstance) Reset() { *m = CoreInstance{} }
119func (m *CoreInstance) String() string { return proto.CompactTextString(m) }
120func (*CoreInstance) ProtoMessage() {}
121func (*CoreInstance) Descriptor() ([]byte, []int) {
khenaidoo9beaaf12021-10-19 17:32:01 -0400122 return fileDescriptor_e084f1a60ce7016c, []int{0}
khenaidood948f772021-08-11 17:49:24 -0400123}
124
125func (m *CoreInstance) XXX_Unmarshal(b []byte) error {
126 return xxx_messageInfo_CoreInstance.Unmarshal(m, b)
127}
128func (m *CoreInstance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
129 return xxx_messageInfo_CoreInstance.Marshal(b, m, deterministic)
130}
131func (m *CoreInstance) XXX_Merge(src proto.Message) {
132 xxx_messageInfo_CoreInstance.Merge(m, src)
133}
134func (m *CoreInstance) XXX_Size() int {
135 return xxx_messageInfo_CoreInstance.Size(m)
136}
137func (m *CoreInstance) XXX_DiscardUnknown() {
138 xxx_messageInfo_CoreInstance.DiscardUnknown(m)
139}
140
141var xxx_messageInfo_CoreInstance proto.InternalMessageInfo
142
143func (m *CoreInstance) GetInstanceId() string {
144 if m != nil {
145 return m.InstanceId
146 }
147 return ""
148}
149
khenaidoo9beaaf12021-10-19 17:32:01 -0400150func (m *CoreInstance) GetHealth() *health.HealthStatus {
khenaidood948f772021-08-11 17:49:24 -0400151 if m != nil {
152 return m.Health
153 }
154 return nil
155}
156
157type CoreInstances struct {
158 Items []*CoreInstance `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
159 XXX_NoUnkeyedLiteral struct{} `json:"-"`
160 XXX_unrecognized []byte `json:"-"`
161 XXX_sizecache int32 `json:"-"`
162}
163
164func (m *CoreInstances) Reset() { *m = CoreInstances{} }
165func (m *CoreInstances) String() string { return proto.CompactTextString(m) }
166func (*CoreInstances) ProtoMessage() {}
167func (*CoreInstances) Descriptor() ([]byte, []int) {
khenaidoo9beaaf12021-10-19 17:32:01 -0400168 return fileDescriptor_e084f1a60ce7016c, []int{1}
khenaidood948f772021-08-11 17:49:24 -0400169}
170
171func (m *CoreInstances) XXX_Unmarshal(b []byte) error {
172 return xxx_messageInfo_CoreInstances.Unmarshal(m, b)
173}
174func (m *CoreInstances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
175 return xxx_messageInfo_CoreInstances.Marshal(b, m, deterministic)
176}
177func (m *CoreInstances) XXX_Merge(src proto.Message) {
178 xxx_messageInfo_CoreInstances.Merge(m, src)
179}
180func (m *CoreInstances) XXX_Size() int {
181 return xxx_messageInfo_CoreInstances.Size(m)
182}
183func (m *CoreInstances) XXX_DiscardUnknown() {
184 xxx_messageInfo_CoreInstances.DiscardUnknown(m)
185}
186
187var xxx_messageInfo_CoreInstances proto.InternalMessageInfo
188
189func (m *CoreInstances) GetItems() []*CoreInstance {
190 if m != nil {
191 return m.Items
192 }
193 return nil
194}
195
khenaidood948f772021-08-11 17:49:24 -0400196// Voltha represents the Voltha cluster data. Each Core instance will hold a subset of
197// the entire cluster. However, some items (e.g. adapters) will be held by all cores
198// for better performance
199type Voltha struct {
200 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
201 Adapters []*Adapter `protobuf:"bytes,2,rep,name=adapters,proto3" json:"adapters,omitempty"`
202 LogicalDevices []*LogicalDevice `protobuf:"bytes,3,rep,name=logical_devices,json=logicalDevices,proto3" json:"logical_devices,omitempty"`
203 Devices []*Device `protobuf:"bytes,4,rep,name=devices,proto3" json:"devices,omitempty"`
204 DeviceTypes []*DeviceType `protobuf:"bytes,5,rep,name=device_types,json=deviceTypes,proto3" json:"device_types,omitempty"`
khenaidood948f772021-08-11 17:49:24 -0400205 EventFilters []*EventFilter `protobuf:"bytes,7,rep,name=event_filters,json=eventFilters,proto3" json:"event_filters,omitempty"`
206 OmciMibDatabase []*omci.MibDeviceData `protobuf:"bytes,28,rep,name=omci_mib_database,json=omciMibDatabase,proto3" json:"omci_mib_database,omitempty"`
207 OmciAlarmDatabase []*omci.AlarmDeviceData `protobuf:"bytes,29,rep,name=omci_alarm_database,json=omciAlarmDatabase,proto3" json:"omci_alarm_database,omitempty"`
208 XXX_NoUnkeyedLiteral struct{} `json:"-"`
209 XXX_unrecognized []byte `json:"-"`
210 XXX_sizecache int32 `json:"-"`
211}
212
213func (m *Voltha) Reset() { *m = Voltha{} }
214func (m *Voltha) String() string { return proto.CompactTextString(m) }
215func (*Voltha) ProtoMessage() {}
216func (*Voltha) Descriptor() ([]byte, []int) {
khenaidoo9beaaf12021-10-19 17:32:01 -0400217 return fileDescriptor_e084f1a60ce7016c, []int{2}
khenaidood948f772021-08-11 17:49:24 -0400218}
219
220func (m *Voltha) XXX_Unmarshal(b []byte) error {
221 return xxx_messageInfo_Voltha.Unmarshal(m, b)
222}
223func (m *Voltha) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
224 return xxx_messageInfo_Voltha.Marshal(b, m, deterministic)
225}
226func (m *Voltha) XXX_Merge(src proto.Message) {
227 xxx_messageInfo_Voltha.Merge(m, src)
228}
229func (m *Voltha) XXX_Size() int {
230 return xxx_messageInfo_Voltha.Size(m)
231}
232func (m *Voltha) XXX_DiscardUnknown() {
233 xxx_messageInfo_Voltha.DiscardUnknown(m)
234}
235
236var xxx_messageInfo_Voltha proto.InternalMessageInfo
237
238func (m *Voltha) GetVersion() string {
239 if m != nil {
240 return m.Version
241 }
242 return ""
243}
244
245func (m *Voltha) GetAdapters() []*Adapter {
246 if m != nil {
247 return m.Adapters
248 }
249 return nil
250}
251
252func (m *Voltha) GetLogicalDevices() []*LogicalDevice {
253 if m != nil {
254 return m.LogicalDevices
255 }
256 return nil
257}
258
259func (m *Voltha) GetDevices() []*Device {
260 if m != nil {
261 return m.Devices
262 }
263 return nil
264}
265
266func (m *Voltha) GetDeviceTypes() []*DeviceType {
267 if m != nil {
268 return m.DeviceTypes
269 }
270 return nil
271}
272
khenaidood948f772021-08-11 17:49:24 -0400273func (m *Voltha) GetEventFilters() []*EventFilter {
274 if m != nil {
275 return m.EventFilters
276 }
277 return nil
278}
279
280func (m *Voltha) GetOmciMibDatabase() []*omci.MibDeviceData {
281 if m != nil {
282 return m.OmciMibDatabase
283 }
284 return nil
285}
286
287func (m *Voltha) GetOmciAlarmDatabase() []*omci.AlarmDeviceData {
288 if m != nil {
289 return m.OmciAlarmDatabase
290 }
291 return nil
292}
293
khenaidood948f772021-08-11 17:49:24 -0400294func init() {
khenaidood948f772021-08-11 17:49:24 -0400295 proto.RegisterType((*CoreInstance)(nil), "voltha.CoreInstance")
296 proto.RegisterType((*CoreInstances)(nil), "voltha.CoreInstances")
khenaidood948f772021-08-11 17:49:24 -0400297 proto.RegisterType((*Voltha)(nil), "voltha.Voltha")
khenaidood948f772021-08-11 17:49:24 -0400298}
299
300func init() { proto.RegisterFile("voltha_protos/voltha.proto", fileDescriptor_e084f1a60ce7016c) }
301
302var fileDescriptor_e084f1a60ce7016c = []byte{
khenaidoo9beaaf12021-10-19 17:32:01 -0400303 // 2130 bytes of a gzipped FileDescriptorProto
304 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xeb, 0x6e, 0x1b, 0xb9,
305 0x15, 0xde, 0x71, 0x76, 0x73, 0xa1, 0x25, 0xdb, 0xa2, 0x7c, 0x91, 0x25, 0xf9, 0xc6, 0x64, 0xb3,
306 0x5e, 0x25, 0x91, 0x92, 0x38, 0xd9, 0xb6, 0xd9, 0x2e, 0x0a, 0xaf, 0x6f, 0xf5, 0x36, 0x81, 0x0d,
307 0x29, 0x71, 0xda, 0x62, 0xb3, 0xc2, 0x48, 0x43, 0xcb, 0x83, 0x8e, 0x66, 0xd4, 0x21, 0x65, 0x27,
308 0x30, 0xf6, 0x4f, 0x2f, 0x40, 0x8a, 0xa2, 0xe8, 0x8f, 0x7d, 0x8b, 0x3e, 0x45, 0xff, 0xf5, 0x01,
309 0xfa, 0x0a, 0x7d, 0x90, 0x82, 0x87, 0xa4, 0x3c, 0xd4, 0xcc, 0xc8, 0x56, 0xba, 0x40, 0xff, 0x58,
310 0x26, 0x0f, 0xf9, 0x7d, 0x1f, 0xcf, 0x39, 0xbc, 0x0e, 0x2a, 0x9e, 0x06, 0x1e, 0x3f, 0xb1, 0x9b,
311 0xbd, 0x30, 0xe0, 0x01, 0xab, 0xc9, 0x52, 0x15, 0x4a, 0xf8, 0xba, 0x2c, 0x15, 0xcb, 0x9d, 0x20,
312 0xe8, 0x78, 0xb4, 0x66, 0xf7, 0xdc, 0x9a, 0xed, 0xfb, 0x01, 0xb7, 0xb9, 0x1b, 0xf8, 0x4c, 0xb6,
313 0x2a, 0x96, 0x94, 0x15, 0x4a, 0xad, 0xfe, 0x71, 0x8d, 0x76, 0x7b, 0xfc, 0x9d, 0x32, 0x0e, 0xc1,
314 0xb7, 0x83, 0x6e, 0x37, 0xf0, 0x93, 0x6d, 0x27, 0xd4, 0xf6, 0xf8, 0x89, 0xb2, 0x11, 0xd3, 0xe6,
315 0x05, 0x1d, 0xb7, 0x6d, 0x7b, 0x4d, 0x87, 0x9e, 0xba, 0x6d, 0x9a, 0xdc, 0xdf, 0xb0, 0x95, 0x4c,
316 0x9b, 0xed, 0xd8, 0x3d, 0x4e, 0x43, 0x65, 0x5c, 0x31, 0x8d, 0x41, 0x8f, 0xfa, 0xc7, 0x5e, 0x70,
317 0xd6, 0x7c, 0xb4, 0x91, 0x8c, 0x4c, 0x4f, 0xa9, 0xcf, 0xf5, 0x70, 0x97, 0x87, 0x6c, 0x6f, 0x39,
318 0xf5, 0x59, 0xc4, 0x1d, 0xc3, 0xe0, 0xdd, 0xb6, 0xdb, 0xec, 0xba, 0xad, 0xa6, 0xd3, 0x52, 0x0d,
319 0xd6, 0x12, 0x1a, 0xd8, 0x9e, 0x1d, 0x76, 0x2f, 0x9a, 0x2c, 0x25, 0x34, 0xe1, 0x94, 0x71, 0x69,
320 0x26, 0x6f, 0x50, 0x66, 0x2b, 0x08, 0xe9, 0xbe, 0xcf, 0xb8, 0xed, 0xb7, 0x29, 0x5e, 0x41, 0x93,
321 0xae, 0xfa, 0xbf, 0xe9, 0x3a, 0x05, 0x6b, 0xd5, 0x5a, 0xbf, 0x55, 0x47, 0xba, 0x6a, 0xdf, 0xc1,
322 0xf7, 0xd1, 0x75, 0xe9, 0xdd, 0xc2, 0xc4, 0xaa, 0xb5, 0x3e, 0xf9, 0x78, 0xb6, 0xaa, 0x9c, 0xfd,
323 0x4b, 0xf8, 0x69, 0x70, 0x9b, 0xf7, 0x59, 0x5d, 0xb5, 0x21, 0x5f, 0xa2, 0x6c, 0x14, 0x9e, 0xe1,
324 0x0a, 0xfa, 0xc4, 0xe5, 0xb4, 0xcb, 0x0a, 0xd6, 0xea, 0x35, 0xe8, 0xad, 0xb2, 0x24, 0xda, 0xaa,
325 0x2e, 0x9b, 0x90, 0x7f, 0x5e, 0x43, 0xd7, 0x8f, 0xc0, 0x8c, 0x0b, 0xe8, 0xc6, 0x29, 0x0d, 0x85,
326 0x6f, 0x94, 0x24, 0x5d, 0xc4, 0xf7, 0xd1, 0x4d, 0x15, 0x11, 0x56, 0x98, 0x00, 0xcc, 0x99, 0xaa,
327 0x0e, 0xd1, 0xa6, 0xfc, 0xad, 0x0f, 0x5a, 0xe0, 0x5d, 0x34, 0x6d, 0xc6, 0x9f, 0x15, 0xae, 0x41,
328 0xa7, 0xa5, 0xea, 0x50, 0x5e, 0x3c, 0x97, 0xc5, 0x6d, 0x28, 0xd5, 0xa7, 0xbc, 0x68, 0x91, 0xe1,
329 0x75, 0x74, 0x43, 0xf7, 0xff, 0x18, 0xfa, 0x4f, 0x55, 0x55, 0x3f, 0xd5, 0x41, 0x9b, 0xf1, 0x53,
330 0x94, 0x91, 0xff, 0x36, 0xf9, 0xbb, 0x1e, 0x65, 0x85, 0x4f, 0xa0, 0x39, 0x36, 0x9b, 0xbf, 0x7c,
331 0xd7, 0xa3, 0xf5, 0x49, 0x67, 0xf0, 0x3f, 0xc3, 0x3f, 0x41, 0x59, 0x48, 0x95, 0xe6, 0xb1, 0xeb,
332 0xc1, 0xd8, 0x6e, 0xa8, 0x7e, 0x50, 0x5b, 0xdd, 0x11, 0x7f, 0x77, 0xc1, 0x54, 0xcf, 0xd0, 0x8b,
333 0x02, 0xc3, 0xbf, 0x40, 0xb9, 0x8b, 0x3c, 0xb1, 0xb9, 0xdd, 0xb2, 0x19, 0x2d, 0x94, 0xa1, 0x73,
334 0xbe, 0x2a, 0x2c, 0xd5, 0x17, 0x6e, 0x4b, 0xb2, 0x6e, 0xdb, 0xdc, 0xae, 0x4f, 0x8b, 0x3a, 0x51,
335 0xa5, 0xda, 0xe2, 0x1d, 0x94, 0x8f, 0xe6, 0x91, 0x86, 0x58, 0x02, 0x88, 0x39, 0x09, 0xb1, 0x29,
336 0x6c, 0x11, 0x10, 0xa0, 0x94, 0x95, 0xaa, 0xfd, 0x37, 0x1f, 0xdf, 0xbc, 0x3e, 0x73, 0xe3, 0xf1,
337 0xbf, 0x36, 0x50, 0x56, 0x86, 0xb0, 0x41, 0x43, 0xd1, 0x1c, 0x6f, 0xa3, 0x5b, 0x7b, 0x94, 0xab,
338 0xb0, 0xce, 0x57, 0xe5, 0x84, 0xaf, 0xea, 0x09, 0x5f, 0xdd, 0x11, 0x13, 0xbe, 0x38, 0xa5, 0xd3,
339 0x42, 0xb6, 0x23, 0xd3, 0x7f, 0xf8, 0xf7, 0x7f, 0x7e, 0x98, 0xb8, 0x85, 0x6f, 0xc0, 0xba, 0x71,
340 0xfa, 0x08, 0xbf, 0x41, 0xb9, 0xe7, 0x2e, 0xe3, 0x66, 0x6e, 0xa5, 0xa1, 0xcd, 0x25, 0x25, 0x19,
341 0x23, 0x8b, 0x00, 0x9a, 0xc7, 0x39, 0x05, 0x5a, 0x73, 0x07, 0x48, 0x0d, 0x34, 0xbd, 0x47, 0x0d,
342 0x74, 0x8c, 0xaa, 0x6a, 0xc1, 0xd9, 0xdf, 0x2e, 0x26, 0x66, 0x2d, 0x59, 0x06, 0xbc, 0x02, 0x9e,
343 0x8f, 0xe1, 0xd5, 0xce, 0x5d, 0xe7, 0x7b, 0xdc, 0x40, 0x19, 0xa1, 0x79, 0x53, 0xe7, 0x62, 0x9a,
344 0xdc, 0xdc, 0x70, 0xfe, 0x32, 0x52, 0x00, 0x68, 0x8c, 0x67, 0x34, 0xf4, 0x20, 0xa1, 0xbb, 0x08,
345 0x0b, 0xd0, 0xe7, 0x66, 0x7a, 0xa6, 0x41, 0x2f, 0x8f, 0xcc, 0x72, 0x46, 0x56, 0x80, 0x67, 0x11,
346 0x2f, 0x68, 0x9e, 0xa1, 0xc9, 0x82, 0xdb, 0x68, 0x66, 0x8f, 0x9a, 0x6c, 0x86, 0x67, 0x46, 0x4f,
347 0x23, 0x72, 0x07, 0xf0, 0x97, 0x71, 0x39, 0x05, 0x5f, 0x3a, 0xca, 0x47, 0xf3, 0xb1, 0x31, 0x1d,
348 0x06, 0x21, 0x67, 0x06, 0x55, 0x39, 0x85, 0x0a, 0x5a, 0x92, 0x0a, 0x30, 0xdd, 0xc1, 0x64, 0x14,
349 0x53, 0xad, 0x07, 0xa8, 0xef, 0x2d, 0x34, 0x3b, 0x3c, 0x2a, 0x81, 0x82, 0x97, 0x46, 0x50, 0xec,
350 0x3b, 0xc5, 0xd2, 0x08, 0x33, 0x79, 0x02, 0x02, 0xaa, 0xf8, 0xfe, 0xe5, 0x02, 0x6a, 0xe7, 0xe2,
351 0xa7, 0x29, 0x86, 0xfe, 0x37, 0x0b, 0x2d, 0xec, 0xf8, 0x76, 0xcb, 0xa3, 0x63, 0xab, 0x49, 0x89,
352 0x39, 0xf9, 0x12, 0x84, 0x3c, 0x25, 0x1b, 0xe3, 0x08, 0xa9, 0x51, 0x10, 0x81, 0xff, 0x6e, 0xa1,
353 0xc2, 0xb6, 0xcb, 0x7e, 0x54, 0x41, 0x3f, 0x07, 0x41, 0x5f, 0x90, 0x27, 0x63, 0x09, 0x72, 0xa4,
354 0x0a, 0xec, 0x24, 0x24, 0xc7, 0xae, 0x17, 0x9c, 0x99, 0xc9, 0x81, 0xab, 0xd1, 0x9d, 0x18, 0xec,
355 0x57, 0x4c, 0x89, 0x63, 0xc0, 0xfa, 0xa3, 0x85, 0xca, 0xaf, 0x7a, 0x8e, 0xcd, 0x69, 0x8c, 0xe8,
356 0x25, 0xc8, 0x28, 0xc7, 0x08, 0xa0, 0x5e, 0xf6, 0x49, 0x1d, 0xfa, 0x03, 0x90, 0xf0, 0x19, 0xb9,
357 0x82, 0x84, 0x67, 0x56, 0x05, 0xff, 0xc9, 0x42, 0x4b, 0x09, 0x2a, 0x5e, 0x50, 0x4e, 0x43, 0x29,
358 0xa3, 0x64, 0xc8, 0x00, 0xc3, 0x8b, 0xc0, 0xb9, 0x44, 0x45, 0x15, 0x54, 0xac, 0x93, 0xdb, 0x23,
359 0x55, 0x74, 0x05, 0x18, 0xc8, 0xe8, 0xa0, 0x85, 0x98, 0xcb, 0x81, 0xca, 0xf4, 0x79, 0x3e, 0xae,
360 0x85, 0x91, 0x7b, 0xc0, 0xf5, 0x29, 0xbe, 0x0a, 0x17, 0xe6, 0xa8, 0x94, 0x18, 0xdb, 0xbd, 0x30,
361 0xe8, 0xf7, 0x4c, 0xb2, 0x85, 0x98, 0xff, 0x65, 0x23, 0xf2, 0x10, 0x08, 0x2b, 0x78, 0xfd, 0x52,
362 0x17, 0x37, 0x3b, 0x12, 0xf6, 0x07, 0x0b, 0xad, 0xa5, 0xc4, 0x1a, 0x30, 0xa5, 0xa7, 0xd7, 0x92,
363 0x09, 0xaf, 0x12, 0xf5, 0x0d, 0x90, 0xf4, 0x80, 0x5c, 0x59, 0x92, 0x70, 0xfa, 0x01, 0x9a, 0x14,
364 0xbe, 0xb8, 0x6c, 0x45, 0x9f, 0x36, 0x0f, 0x12, 0x8c, 0x2c, 0x00, 0x59, 0x0e, 0x4f, 0x6b, 0x32,
365 0xbd, 0x74, 0x1f, 0xa0, 0xec, 0x05, 0xe0, 0xbe, 0x93, 0x0e, 0x39, 0x79, 0xe1, 0xe6, 0x84, 0x4d,
366 0x52, 0xc2, 0xb9, 0x0e, 0xc3, 0xaf, 0xd0, 0x4c, 0x9d, 0xb6, 0x03, 0xbf, 0xed, 0x7a, 0x54, 0xcb,
367 0x8c, 0xf6, 0x4d, 0xf5, 0x47, 0x19, 0x30, 0xe7, 0x49, 0x1c, 0x53, 0x0c, 0x7c, 0x07, 0x0e, 0x08,
368 0x09, 0x7b, 0xcb, 0xd0, 0x11, 0x4b, 0xc3, 0xe0, 0xd9, 0xa1, 0x91, 0xca, 0x4d, 0xe4, 0x1b, 0x94,
369 0xd9, 0x0a, 0xa9, 0xcd, 0x95, 0x34, 0x3c, 0xd4, 0x3b, 0x86, 0x56, 0x04, 0xb4, 0x59, 0x32, 0xec,
370 0x37, 0x21, 0xe9, 0x35, 0xca, 0xc8, 0x45, 0x39, 0x41, 0x55, 0xda, 0x20, 0x6f, 0x03, 0xde, 0x12,
371 0x29, 0x25, 0xa9, 0xd3, 0xcb, 0xeb, 0x6f, 0x50, 0x56, 0xad, 0xae, 0x63, 0x20, 0xab, 0x4d, 0x94,
372 0x94, 0x13, 0x91, 0xf5, 0x3a, 0xf9, 0x1a, 0x65, 0xea, 0xb4, 0x15, 0x04, 0xfc, 0x47, 0xd3, 0x1c,
373 0x02, 0x9c, 0x00, 0xde, 0xa6, 0x1e, 0xe5, 0x1f, 0xe0, 0x8c, 0x4a, 0x32, 0xb0, 0x03, 0x70, 0xb8,
374 0x85, 0x72, 0xbb, 0x41, 0xd8, 0xa6, 0x63, 0xa3, 0x7f, 0x0e, 0xe8, 0xb7, 0x2b, 0x6b, 0x89, 0xe8,
375 0xc7, 0x02, 0xb3, 0xa9, 0x38, 0xde, 0xa2, 0xec, 0x76, 0x70, 0xe6, 0x7b, 0x81, 0xed, 0xec, 0x77,
376 0xed, 0x0e, 0xc5, 0x73, 0x3a, 0x0d, 0xa0, 0xa8, 0x6d, 0xc5, 0x39, 0x4d, 0x7b, 0xd0, 0xa3, 0x21,
377 0x5c, 0x51, 0xeb, 0x94, 0xf5, 0xc8, 0xcf, 0x80, 0xe9, 0x21, 0xb9, 0x97, 0xc8, 0xe4, 0x0a, 0x88,
378 0xa6, 0xa3, 0x30, 0x58, 0xed, 0xdc, 0xb7, 0xbb, 0xf4, 0xfb, 0x67, 0x56, 0xe5, 0xfd, 0x84, 0x85,
379 0xff, 0x6c, 0xa1, 0xf9, 0x3d, 0xca, 0x0d, 0x1a, 0x79, 0x59, 0x4a, 0xd7, 0x90, 0x54, 0x4d, 0xbe,
380 0x02, 0x0d, 0x4f, 0xf0, 0xe3, 0x31, 0x34, 0xd4, 0x18, 0x30, 0x09, 0x1d, 0x6f, 0xe1, 0x04, 0x67,
381 0x40, 0x8e, 0x29, 0xe0, 0x0b, 0xb9, 0x9c, 0xe1, 0x71, 0x9c, 0x20, 0x98, 0x5d, 0x79, 0x54, 0x35,
382 0xc0, 0xd8, 0x50, 0x80, 0x93, 0x08, 0x19, 0xa9, 0x01, 0xe3, 0x5d, 0x7c, 0xe7, 0x2a, 0x8c, 0x82,
383 0xea, 0x1c, 0xe5, 0xb7, 0xc4, 0xc9, 0xdb, 0xbb, 0xe2, 0x38, 0x13, 0x83, 0xad, 0xc6, 0x59, 0x19,
384 0x77, 0x9c, 0x7f, 0xb5, 0x50, 0x7e, 0xb3, 0xcd, 0xdd, 0x53, 0x9b, 0x53, 0x20, 0x92, 0xdb, 0xc3,
385 0x98, 0xec, 0xbb, 0xc0, 0xfe, 0x15, 0xf9, 0xe9, 0x38, 0x61, 0x96, 0xd5, 0x7d, 0xe0, 0x53, 0x79,
386 0xf7, 0x17, 0x0b, 0xe5, 0xea, 0xf4, 0x94, 0x86, 0xfc, 0xff, 0xa2, 0x25, 0x04, 0x6a, 0xa5, 0xe5,
387 0xbd, 0x85, 0xe6, 0x8c, 0xe9, 0xf7, 0x32, 0x50, 0xd3, 0x9c, 0x98, 0xab, 0xb1, 0xa1, 0xaa, 0x4e,
388 0x7f, 0xdf, 0xa7, 0x8c, 0x17, 0x4b, 0x09, 0x6d, 0x84, 0xbc, 0xc0, 0x67, 0x54, 0x9f, 0x69, 0xf0,
389 0xdd, 0x61, 0x89, 0x20, 0x83, 0xd5, 0xb4, 0xbc, 0xa6, 0x2c, 0xe3, 0x33, 0x34, 0xa5, 0xa7, 0x81,
390 0x9a, 0x85, 0xc5, 0x44, 0xf8, 0x2b, 0x50, 0xdf, 0x4f, 0xcb, 0x4e, 0x45, 0x2d, 0x7f, 0x9a, 0x72,
391 0x0a, 0x8a, 0x78, 0x2c, 0x6e, 0xb6, 0x82, 0x41, 0x38, 0x3a, 0xa1, 0xed, 0x5c, 0xf8, 0xe1, 0x83,
392 0x45, 0x6c, 0xa4, 0x4d, 0x4a, 0x25, 0xc2, 0x16, 0x94, 0xcd, 0xbe, 0xa4, 0xd3, 0x4e, 0x38, 0x42,
393 0x99, 0x3d, 0xca, 0x0f, 0xfc, 0xfe, 0xbe, 0x2c, 0x47, 0xe7, 0x62, 0x4e, 0xb3, 0x0d, 0xcc, 0xe4,
394 0x33, 0xe0, 0x58, 0xc3, 0x2b, 0x89, 0x69, 0x10, 0xf8, 0x7d, 0x8d, 0x7b, 0x8e, 0xb2, 0xc6, 0x04,
395 0xf8, 0xf0, 0x61, 0x3d, 0x02, 0xca, 0x7b, 0x24, 0x2d, 0xac, 0xb6, 0xa2, 0x51, 0xcc, 0x62, 0xb3,
396 0x3e, 0x43, 0x93, 0x5b, 0x41, 0xb7, 0xeb, 0xf2, 0xff, 0x91, 0x5a, 0x2e, 0x3a, 0x9f, 0x93, 0xb4,
397 0xb0, 0xb6, 0x81, 0x24, 0x42, 0x7c, 0x88, 0xa6, 0x2f, 0x0e, 0x58, 0xf1, 0xfb, 0x6a, 0x56, 0x93,
398 0xc9, 0x0b, 0x2a, 0x01, 0xf8, 0x32, 0x2e, 0x26, 0x3a, 0x53, 0x5e, 0x4c, 0xdf, 0xa0, 0x7c, 0x04,
399 0xb1, 0xbb, 0x15, 0xf8, 0xc7, 0x6e, 0x27, 0x25, 0x4c, 0x03, 0xf3, 0x25, 0x61, 0xea, 0x75, 0x9b,
400 0x6d, 0x85, 0xe3, 0xa3, 0x39, 0xb9, 0x1c, 0x0c, 0x13, 0xc4, 0x41, 0x53, 0xf7, 0x5e, 0x75, 0xa9,
401 0x22, 0x97, 0x91, 0x09, 0x07, 0xbd, 0x8a, 0x3a, 0xe8, 0x6a, 0x77, 0xb6, 0xd1, 0x5e, 0x92, 0x77,
402 0x35, 0x8a, 0x66, 0x4d, 0xd8, 0x71, 0xae, 0x0b, 0xeb, 0x40, 0x40, 0xf0, 0x6a, 0x2a, 0x81, 0xbe,
403 0x26, 0x7c, 0x1b, 0x55, 0x2f, 0x1f, 0xe9, 0xd2, 0x4e, 0xd0, 0xf9, 0xf8, 0xeb, 0x1e, 0x4b, 0x3b,
404 0xae, 0xca, 0x67, 0x41, 0x5c, 0x47, 0xd9, 0xc1, 0xa9, 0x57, 0xb4, 0x1f, 0xf2, 0x4c, 0x0c, 0x8f,
405 0xac, 0x01, 0x5c, 0x09, 0x2f, 0x26, 0xc1, 0xc9, 0x23, 0xf0, 0x2e, 0x9a, 0x69, 0xf0, 0x90, 0xda,
406 0xdd, 0x43, 0xbb, 0xfd, 0x3b, 0xca, 0xd9, 0x41, 0x9f, 0xe3, 0x79, 0xc3, 0x11, 0xd2, 0x70, 0xd0,
407 0xe7, 0xa9, 0xf1, 0xfd, 0x68, 0xdd, 0xc2, 0x3b, 0x70, 0xd0, 0xa7, 0xee, 0x29, 0x55, 0x40, 0xfb,
408 0xfe, 0x88, 0xb7, 0xb6, 0x38, 0xfe, 0xbe, 0x4f, 0x3e, 0x7a, 0x68, 0xe1, 0x5f, 0xa1, 0xbc, 0x82,
409 0xd9, 0x3a, 0xb1, 0xfd, 0x0e, 0x85, 0x37, 0xcc, 0x74, 0x27, 0x16, 0x0c, 0xa4, 0x48, 0x17, 0x00,
410 0x7b, 0x83, 0x72, 0xf2, 0x78, 0x1f, 0x79, 0x09, 0xc5, 0x09, 0xaf, 0xa3, 0xc5, 0x84, 0x3a, 0xb2,
411 0x0a, 0xbe, 0x2b, 0x92, 0x39, 0xed, 0x3b, 0xe3, 0xa9, 0x55, 0xa6, 0xaa, 0xd8, 0x1e, 0xa2, 0xd8,
412 0xe6, 0x4d, 0x37, 0x86, 0x99, 0x90, 0xaa, 0x06, 0xa8, 0x8c, 0x48, 0x0b, 0xe5, 0xe4, 0x8c, 0xfb,
413 0x10, 0xd5, 0x9f, 0x02, 0xc1, 0x4a, 0x71, 0x04, 0x81, 0x90, 0xde, 0x46, 0x39, 0x79, 0x82, 0xbe,
414 0x8c, 0x23, 0x2d, 0xe4, 0x6a, 0x20, 0x95, 0x51, 0x03, 0xf9, 0x0e, 0xcd, 0x88, 0xc9, 0x10, 0x75,
415 0xc0, 0x88, 0xd9, 0x90, 0xe0, 0xad, 0x25, 0x20, 0x59, 0xc0, 0xc9, 0x21, 0xc0, 0xcf, 0xe1, 0x12,
416 0x98, 0xb0, 0x2d, 0x4d, 0x19, 0x07, 0x17, 0xa6, 0x6f, 0x16, 0xb8, 0x94, 0x7e, 0x34, 0x61, 0xf8,
417 0xd7, 0xe8, 0x66, 0x83, 0x7a, 0xc7, 0x2f, 0x29, 0xe3, 0x06, 0x58, 0x41, 0x83, 0x69, 0xeb, 0x60,
418 0xf1, 0xbf, 0x0b, 0xb0, 0xab, 0x64, 0x39, 0x11, 0x96, 0x51, 0xef, 0x18, 0x3e, 0xa2, 0xe0, 0x23,
419 0x38, 0x4d, 0x1b, 0x2f, 0xea, 0xc3, 0x6f, 0x22, 0xb1, 0x27, 0xf7, 0xf8, 0xd4, 0x15, 0x89, 0x2e,
420 0xda, 0xa9, 0xc7, 0x10, 0xb7, 0x85, 0xbf, 0x45, 0x78, 0x8f, 0xf2, 0xa1, 0x67, 0x76, 0x03, 0x39,
421 0xf9, 0x25, 0x3e, 0xee, 0x0f, 0x13, 0x1b, 0x1e, 0xf5, 0x31, 0x43, 0xd9, 0x86, 0xdb, 0xed, 0x7b,
422 0x36, 0xa7, 0xd0, 0x1f, 0x97, 0x07, 0x8e, 0x88, 0x56, 0xeb, 0x6d, 0x32, 0xe5, 0x54, 0x18, 0x7b,
423 0xcc, 0x32, 0x7d, 0xa4, 0x90, 0x9a, 0x02, 0x49, 0xe4, 0xe5, 0x0b, 0x84, 0xe4, 0x25, 0x1a, 0xde,
424 0x0e, 0x33, 0xd1, 0xdd, 0x30, 0x35, 0x15, 0xd5, 0xeb, 0x03, 0x99, 0x12, 0xf0, 0x17, 0xbd, 0xd5,
425 0xfb, 0x88, 0xba, 0x3a, 0x8f, 0x81, 0x77, 0x71, 0xc9, 0x3f, 0x7d, 0x54, 0x8b, 0x74, 0x17, 0x80,
426 0xdf, 0xa1, 0x49, 0x31, 0xe5, 0xdf, 0xf2, 0x23, 0xdb, 0xeb, 0x53, 0xbc, 0x58, 0x1d, 0x7c, 0x8e,
427 0xab, 0x42, 0x4d, 0xa3, 0x47, 0xdb, 0xee, 0xb1, 0x4b, 0xc3, 0xe2, 0x42, 0xc4, 0x54, 0xa7, 0xbc,
428 0x1f, 0xfa, 0xd0, 0x80, 0x91, 0x12, 0xc0, 0xcf, 0xe1, 0xbc, 0xf6, 0x48, 0x14, 0xf0, 0x35, 0x9a,
429 0x6c, 0x44, 0x8a, 0xf9, 0x18, 0x3e, 0x4d, 0xd7, 0x1d, 0x03, 0x8e, 0x22, 0x39, 0x28, 0xdf, 0xe0,
430 0x76, 0xc8, 0x0f, 0xba, 0x6d, 0x57, 0x24, 0xb1, 0x38, 0x7a, 0x05, 0x3e, 0x56, 0x09, 0xa2, 0x6b,
431 0x75, 0x30, 0xb1, 0xac, 0x36, 0xb2, 0x5d, 0xcd, 0x78, 0x32, 0x78, 0xf6, 0x67, 0x02, 0xaf, 0x39,
432 0xf8, 0x56, 0xf8, 0xcc, 0xaa, 0x7c, 0xed, 0xa1, 0x7c, 0x10, 0x76, 0x60, 0x4d, 0x6e, 0x07, 0xa1,
433 0xa3, 0xbe, 0x80, 0x7c, 0x9d, 0x91, 0x5f, 0x68, 0x0e, 0xe1, 0xeb, 0xe2, 0x6f, 0xab, 0x1d, 0x97,
434 0x9f, 0xf4, 0x5b, 0x22, 0x5f, 0x6a, 0xba, 0xa5, 0xfa, 0x0e, 0xfc, 0x40, 0x7f, 0x15, 0x7e, 0x5a,
435 0xeb, 0x04, 0xaa, 0xee, 0x1f, 0x13, 0xf3, 0x07, 0x1a, 0xef, 0x28, 0xfa, 0xc1, 0xe7, 0x70, 0xa2,
436 0x75, 0x1d, 0xda, 0x6f, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x37, 0x95, 0xcc, 0x79, 0x55, 0x1e,
437 0x00, 0x00,
khenaidood948f772021-08-11 17:49:24 -0400438}
439
440// Reference imports to suppress errors if they are not otherwise used.
441var _ context.Context
442var _ grpc.ClientConn
443
444// This is a compile-time assertion to ensure that this generated file
445// is compatible with the grpc package it is being compiled against.
446const _ = grpc.SupportPackageIsVersion4
447
448// VolthaServiceClient is the client API for VolthaService service.
449//
450// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
451type VolthaServiceClient interface {
khenaidood948f772021-08-11 17:49:24 -0400452 // Get high level information on the Voltha cluster
453 GetVoltha(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Voltha, error)
454 // List all Voltha cluster core instances
455 ListCoreInstances(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*CoreInstances, error)
456 // Get details on a Voltha cluster instance
457 GetCoreInstance(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*CoreInstance, error)
458 // List all active adapters (plugins) in the Voltha cluster
459 ListAdapters(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Adapters, error)
460 // List all logical devices managed by the Voltha cluster
461 ListLogicalDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LogicalDevices, error)
462 // Get additional information on a given logical device
463 GetLogicalDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*LogicalDevice, error)
464 // List ports of a logical device
465 ListLogicalDevicePorts(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*LogicalPorts, error)
466 // Gets a logical device port
467 GetLogicalDevicePort(ctx context.Context, in *LogicalPortId, opts ...grpc.CallOption) (*LogicalPort, error)
468 // Enables a logical device port
469 EnableLogicalDevicePort(ctx context.Context, in *LogicalPortId, opts ...grpc.CallOption) (*empty.Empty, error)
470 // Disables a logical device port
471 DisableLogicalDevicePort(ctx context.Context, in *LogicalPortId, opts ...grpc.CallOption) (*empty.Empty, error)
472 // List all flows of a logical device
473 ListLogicalDeviceFlows(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.Flows, error)
474 // Update flow table for logical device
475 UpdateLogicalDeviceFlowTable(ctx context.Context, in *openflow_13.FlowTableUpdate, opts ...grpc.CallOption) (*empty.Empty, error)
476 // Update meter table for logical device
477 UpdateLogicalDeviceMeterTable(ctx context.Context, in *openflow_13.MeterModUpdate, opts ...grpc.CallOption) (*empty.Empty, error)
478 // List all meters of a logical device
479 ListLogicalDeviceMeters(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.Meters, error)
480 // List all flow groups of a logical device
481 ListLogicalDeviceFlowGroups(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.FlowGroups, error)
482 // Update group table for device
483 UpdateLogicalDeviceFlowGroupTable(ctx context.Context, in *openflow_13.FlowGroupTableUpdate, opts ...grpc.CallOption) (*empty.Empty, error)
484 // List all physical devices controlled by the Voltha cluster
485 ListDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Devices, error)
486 // List all physical devices IDs controlled by the Voltha cluster
487 ListDeviceIds(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.IDs, error)
488 // Request to a voltha Core to reconcile a set of devices based on their IDs
489 ReconcileDevices(ctx context.Context, in *common.IDs, opts ...grpc.CallOption) (*empty.Empty, error)
490 // Get more information on a given physical device
491 GetDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*Device, error)
492 // Pre-provision a new physical device
493 CreateDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*Device, error)
494 // Enable a device. If the device was in pre-provisioned state then it
495 // will transition to ENABLED state. If it was is DISABLED state then it
496 // will transition to ENABLED state as well.
497 EnableDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error)
498 // Disable a device
499 DisableDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error)
500 // Reboot a device
501 RebootDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error)
502 // Delete a device
503 DeleteDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error)
504 // Forcefully delete a device
505 ForceDeleteDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error)
506 // Request an image download to the standby partition
507 // of a device.
508 // Note that the call is expected to be non-blocking.
509 DownloadImage(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*common.OperationResp, error)
510 // Get image download status on a device
511 // The request retrieves progress on device and updates db record
512 // Deprecated in voltha 2.8, will be removed
513 GetImageDownloadStatus(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*ImageDownload, error)
514 // Get image download db record
515 // Deprecated in voltha 2.8, will be removed
516 GetImageDownload(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*ImageDownload, error)
517 // List image download db records for a given device
518 // Deprecated in voltha 2.8, will be removed
519 ListImageDownloads(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*ImageDownloads, error)
520 // Cancel an existing image download process on a device
521 // Deprecated in voltha 2.8, will be removed
522 CancelImageDownload(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*common.OperationResp, error)
523 // Activate the specified image at a standby partition
524 // to active partition.
525 // Depending on the device implementation, this call
526 // may or may not cause device reboot.
527 // If no reboot, then a reboot is required to make the
528 // activated image running on device
529 // Note that the call is expected to be non-blocking.
530 // Deprecated in voltha 2.8, will be removed
531 ActivateImageUpdate(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*common.OperationResp, error)
532 // Revert the specified image at standby partition
533 // to active partition, and revert to previous image
534 // Depending on the device implementation, this call
535 // may or may not cause device reboot.
536 // If no reboot, then a reboot is required to make the
537 // previous image running on device
538 // Note that the call is expected to be non-blocking.
539 // Deprecated in voltha 2.8, will be removed
540 RevertImageUpdate(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*common.OperationResp, error)
541 // Downloads a certain image to the standby partition of the devices
542 // Note that the call is expected to be non-blocking.
543 DownloadImageToDevice(ctx context.Context, in *DeviceImageDownloadRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error)
544 // Get image status on a number of devices devices
545 // Polled from northbound systems to get state of download/activate/commit
546 GetImageStatus(ctx context.Context, in *DeviceImageRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error)
547 // Aborts the upgrade of an image on a device
548 // To be used carefully, stops any further operations for the Image on the given devices
549 // Might also stop if possible existing work, but no guarantees are given,
550 // depends on implementation and procedure status.
551 AbortImageUpgradeToDevice(ctx context.Context, in *DeviceImageRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error)
552 // Get Both Active and Standby image for a given device
553 GetOnuImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*OnuImages, error)
554 // Activate the specified image from a standby partition
555 // to active partition.
556 // Depending on the device implementation, this call
557 // may or may not cause device reboot.
558 // If no reboot, then a reboot is required to make the
559 // activated image running on device
560 // Note that the call is expected to be non-blocking.
561 ActivateImage(ctx context.Context, in *DeviceImageRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error)
562 // Commit the specified image to be default.
563 // Depending on the device implementation, this call
564 // may or may not cause device reboot.
565 // If no reboot, then a reboot is required to make the
566 // activated image running on device upon next reboot
567 // Note that the call is expected to be non-blocking.
568 CommitImage(ctx context.Context, in *DeviceImageRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error)
569 // List ports of a device
570 ListDevicePorts(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*Ports, error)
571 // List pm config of a device
572 ListDevicePmConfigs(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*PmConfigs, error)
573 // Update the pm config of a device
574 UpdateDevicePmConfigs(ctx context.Context, in *PmConfigs, opts ...grpc.CallOption) (*empty.Empty, error)
575 // List all flows of a device
576 ListDeviceFlows(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.Flows, error)
577 // List all flow groups of a device
578 ListDeviceFlowGroups(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.FlowGroups, error)
579 // List device types known to Voltha
580 ListDeviceTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DeviceTypes, error)
581 // Get additional information on a device type
582 GetDeviceType(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*DeviceType, error)
khenaidood948f772021-08-11 17:49:24 -0400583 // Stream control packets to the dataplane
584 StreamPacketsOut(ctx context.Context, opts ...grpc.CallOption) (VolthaService_StreamPacketsOutClient, error)
585 // Receive control packet stream
586 ReceivePacketsIn(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (VolthaService_ReceivePacketsInClient, error)
587 ReceiveChangeEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (VolthaService_ReceiveChangeEventsClient, error)
khenaidood948f772021-08-11 17:49:24 -0400588 CreateEventFilter(ctx context.Context, in *EventFilter, opts ...grpc.CallOption) (*EventFilter, error)
589 // Get all filters present for a device
590 GetEventFilter(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*EventFilters, error)
591 UpdateEventFilter(ctx context.Context, in *EventFilter, opts ...grpc.CallOption) (*EventFilter, error)
592 DeleteEventFilter(ctx context.Context, in *EventFilter, opts ...grpc.CallOption) (*empty.Empty, error)
593 // Get all the filters present
594 ListEventFilters(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EventFilters, error)
595 GetImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*Images, error)
596 SelfTest(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*SelfTestResponse, error)
597 // OpenOMCI MIB information
598 GetMibDeviceData(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*omci.MibDeviceData, error)
599 // OpenOMCI ALARM information
600 GetAlarmDeviceData(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*omci.AlarmDeviceData, error)
601 // Simulate an Alarm
602 SimulateAlarm(ctx context.Context, in *SimulateAlarmRequest, opts ...grpc.CallOption) (*common.OperationResp, error)
khenaidood948f772021-08-11 17:49:24 -0400603 EnablePort(ctx context.Context, in *Port, opts ...grpc.CallOption) (*empty.Empty, error)
604 DisablePort(ctx context.Context, in *Port, opts ...grpc.CallOption) (*empty.Empty, error)
khenaidoo9beaaf12021-10-19 17:32:01 -0400605 GetExtValue(ctx context.Context, in *extension.ValueSpecifier, opts ...grpc.CallOption) (*extension.ReturnValues, error)
606 SetExtValue(ctx context.Context, in *extension.ValueSet, opts ...grpc.CallOption) (*empty.Empty, error)
khenaidood948f772021-08-11 17:49:24 -0400607 // omci start and stop cli implementation
khenaidoo9beaaf12021-10-19 17:32:01 -0400608 StartOmciTestAction(ctx context.Context, in *omci.OmciTestRequest, opts ...grpc.CallOption) (*omci.TestResponse, error)
khenaidood948f772021-08-11 17:49:24 -0400609}
610
611type volthaServiceClient struct {
612 cc *grpc.ClientConn
613}
614
615func NewVolthaServiceClient(cc *grpc.ClientConn) VolthaServiceClient {
616 return &volthaServiceClient{cc}
617}
618
khenaidood948f772021-08-11 17:49:24 -0400619func (c *volthaServiceClient) GetVoltha(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Voltha, error) {
620 out := new(Voltha)
621 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetVoltha", in, out, opts...)
622 if err != nil {
623 return nil, err
624 }
625 return out, nil
626}
627
628func (c *volthaServiceClient) ListCoreInstances(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*CoreInstances, error) {
629 out := new(CoreInstances)
630 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListCoreInstances", in, out, opts...)
631 if err != nil {
632 return nil, err
633 }
634 return out, nil
635}
636
637func (c *volthaServiceClient) GetCoreInstance(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*CoreInstance, error) {
638 out := new(CoreInstance)
639 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetCoreInstance", in, out, opts...)
640 if err != nil {
641 return nil, err
642 }
643 return out, nil
644}
645
646func (c *volthaServiceClient) ListAdapters(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Adapters, error) {
647 out := new(Adapters)
648 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListAdapters", in, out, opts...)
649 if err != nil {
650 return nil, err
651 }
652 return out, nil
653}
654
655func (c *volthaServiceClient) ListLogicalDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LogicalDevices, error) {
656 out := new(LogicalDevices)
657 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListLogicalDevices", in, out, opts...)
658 if err != nil {
659 return nil, err
660 }
661 return out, nil
662}
663
664func (c *volthaServiceClient) GetLogicalDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*LogicalDevice, error) {
665 out := new(LogicalDevice)
666 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetLogicalDevice", in, out, opts...)
667 if err != nil {
668 return nil, err
669 }
670 return out, nil
671}
672
673func (c *volthaServiceClient) ListLogicalDevicePorts(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*LogicalPorts, error) {
674 out := new(LogicalPorts)
675 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListLogicalDevicePorts", in, out, opts...)
676 if err != nil {
677 return nil, err
678 }
679 return out, nil
680}
681
682func (c *volthaServiceClient) GetLogicalDevicePort(ctx context.Context, in *LogicalPortId, opts ...grpc.CallOption) (*LogicalPort, error) {
683 out := new(LogicalPort)
684 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetLogicalDevicePort", in, out, opts...)
685 if err != nil {
686 return nil, err
687 }
688 return out, nil
689}
690
691func (c *volthaServiceClient) EnableLogicalDevicePort(ctx context.Context, in *LogicalPortId, opts ...grpc.CallOption) (*empty.Empty, error) {
692 out := new(empty.Empty)
693 err := c.cc.Invoke(ctx, "/voltha.VolthaService/EnableLogicalDevicePort", in, out, opts...)
694 if err != nil {
695 return nil, err
696 }
697 return out, nil
698}
699
700func (c *volthaServiceClient) DisableLogicalDevicePort(ctx context.Context, in *LogicalPortId, opts ...grpc.CallOption) (*empty.Empty, error) {
701 out := new(empty.Empty)
702 err := c.cc.Invoke(ctx, "/voltha.VolthaService/DisableLogicalDevicePort", in, out, opts...)
703 if err != nil {
704 return nil, err
705 }
706 return out, nil
707}
708
709func (c *volthaServiceClient) ListLogicalDeviceFlows(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.Flows, error) {
710 out := new(openflow_13.Flows)
711 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListLogicalDeviceFlows", in, out, opts...)
712 if err != nil {
713 return nil, err
714 }
715 return out, nil
716}
717
718func (c *volthaServiceClient) UpdateLogicalDeviceFlowTable(ctx context.Context, in *openflow_13.FlowTableUpdate, opts ...grpc.CallOption) (*empty.Empty, error) {
719 out := new(empty.Empty)
720 err := c.cc.Invoke(ctx, "/voltha.VolthaService/UpdateLogicalDeviceFlowTable", in, out, opts...)
721 if err != nil {
722 return nil, err
723 }
724 return out, nil
725}
726
727func (c *volthaServiceClient) UpdateLogicalDeviceMeterTable(ctx context.Context, in *openflow_13.MeterModUpdate, opts ...grpc.CallOption) (*empty.Empty, error) {
728 out := new(empty.Empty)
729 err := c.cc.Invoke(ctx, "/voltha.VolthaService/UpdateLogicalDeviceMeterTable", in, out, opts...)
730 if err != nil {
731 return nil, err
732 }
733 return out, nil
734}
735
736func (c *volthaServiceClient) ListLogicalDeviceMeters(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.Meters, error) {
737 out := new(openflow_13.Meters)
738 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListLogicalDeviceMeters", in, out, opts...)
739 if err != nil {
740 return nil, err
741 }
742 return out, nil
743}
744
745func (c *volthaServiceClient) ListLogicalDeviceFlowGroups(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.FlowGroups, error) {
746 out := new(openflow_13.FlowGroups)
747 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListLogicalDeviceFlowGroups", in, out, opts...)
748 if err != nil {
749 return nil, err
750 }
751 return out, nil
752}
753
754func (c *volthaServiceClient) UpdateLogicalDeviceFlowGroupTable(ctx context.Context, in *openflow_13.FlowGroupTableUpdate, opts ...grpc.CallOption) (*empty.Empty, error) {
755 out := new(empty.Empty)
756 err := c.cc.Invoke(ctx, "/voltha.VolthaService/UpdateLogicalDeviceFlowGroupTable", in, out, opts...)
757 if err != nil {
758 return nil, err
759 }
760 return out, nil
761}
762
763func (c *volthaServiceClient) ListDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Devices, error) {
764 out := new(Devices)
765 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListDevices", in, out, opts...)
766 if err != nil {
767 return nil, err
768 }
769 return out, nil
770}
771
772func (c *volthaServiceClient) ListDeviceIds(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.IDs, error) {
773 out := new(common.IDs)
774 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListDeviceIds", in, out, opts...)
775 if err != nil {
776 return nil, err
777 }
778 return out, nil
779}
780
781func (c *volthaServiceClient) ReconcileDevices(ctx context.Context, in *common.IDs, opts ...grpc.CallOption) (*empty.Empty, error) {
782 out := new(empty.Empty)
783 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ReconcileDevices", in, out, opts...)
784 if err != nil {
785 return nil, err
786 }
787 return out, nil
788}
789
790func (c *volthaServiceClient) GetDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*Device, error) {
791 out := new(Device)
792 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetDevice", in, out, opts...)
793 if err != nil {
794 return nil, err
795 }
796 return out, nil
797}
798
799func (c *volthaServiceClient) CreateDevice(ctx context.Context, in *Device, opts ...grpc.CallOption) (*Device, error) {
800 out := new(Device)
801 err := c.cc.Invoke(ctx, "/voltha.VolthaService/CreateDevice", in, out, opts...)
802 if err != nil {
803 return nil, err
804 }
805 return out, nil
806}
807
808func (c *volthaServiceClient) EnableDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) {
809 out := new(empty.Empty)
810 err := c.cc.Invoke(ctx, "/voltha.VolthaService/EnableDevice", in, out, opts...)
811 if err != nil {
812 return nil, err
813 }
814 return out, nil
815}
816
817func (c *volthaServiceClient) DisableDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) {
818 out := new(empty.Empty)
819 err := c.cc.Invoke(ctx, "/voltha.VolthaService/DisableDevice", in, out, opts...)
820 if err != nil {
821 return nil, err
822 }
823 return out, nil
824}
825
826func (c *volthaServiceClient) RebootDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) {
827 out := new(empty.Empty)
828 err := c.cc.Invoke(ctx, "/voltha.VolthaService/RebootDevice", in, out, opts...)
829 if err != nil {
830 return nil, err
831 }
832 return out, nil
833}
834
835func (c *volthaServiceClient) DeleteDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) {
836 out := new(empty.Empty)
837 err := c.cc.Invoke(ctx, "/voltha.VolthaService/DeleteDevice", in, out, opts...)
838 if err != nil {
839 return nil, err
840 }
841 return out, nil
842}
843
844func (c *volthaServiceClient) ForceDeleteDevice(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*empty.Empty, error) {
845 out := new(empty.Empty)
846 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ForceDeleteDevice", in, out, opts...)
847 if err != nil {
848 return nil, err
849 }
850 return out, nil
851}
852
khenaidoo9beaaf12021-10-19 17:32:01 -0400853// Deprecated: Do not use.
khenaidood948f772021-08-11 17:49:24 -0400854func (c *volthaServiceClient) DownloadImage(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*common.OperationResp, error) {
855 out := new(common.OperationResp)
856 err := c.cc.Invoke(ctx, "/voltha.VolthaService/DownloadImage", in, out, opts...)
857 if err != nil {
858 return nil, err
859 }
860 return out, nil
861}
862
khenaidoo9beaaf12021-10-19 17:32:01 -0400863// Deprecated: Do not use.
khenaidood948f772021-08-11 17:49:24 -0400864func (c *volthaServiceClient) GetImageDownloadStatus(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*ImageDownload, error) {
865 out := new(ImageDownload)
866 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetImageDownloadStatus", in, out, opts...)
867 if err != nil {
868 return nil, err
869 }
870 return out, nil
871}
872
khenaidoo9beaaf12021-10-19 17:32:01 -0400873// Deprecated: Do not use.
khenaidood948f772021-08-11 17:49:24 -0400874func (c *volthaServiceClient) GetImageDownload(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*ImageDownload, error) {
875 out := new(ImageDownload)
876 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetImageDownload", in, out, opts...)
877 if err != nil {
878 return nil, err
879 }
880 return out, nil
881}
882
khenaidoo9beaaf12021-10-19 17:32:01 -0400883// Deprecated: Do not use.
khenaidood948f772021-08-11 17:49:24 -0400884func (c *volthaServiceClient) ListImageDownloads(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*ImageDownloads, error) {
885 out := new(ImageDownloads)
886 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListImageDownloads", in, out, opts...)
887 if err != nil {
888 return nil, err
889 }
890 return out, nil
891}
892
khenaidoo9beaaf12021-10-19 17:32:01 -0400893// Deprecated: Do not use.
khenaidood948f772021-08-11 17:49:24 -0400894func (c *volthaServiceClient) CancelImageDownload(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*common.OperationResp, error) {
895 out := new(common.OperationResp)
896 err := c.cc.Invoke(ctx, "/voltha.VolthaService/CancelImageDownload", in, out, opts...)
897 if err != nil {
898 return nil, err
899 }
900 return out, nil
901}
902
khenaidoo9beaaf12021-10-19 17:32:01 -0400903// Deprecated: Do not use.
khenaidood948f772021-08-11 17:49:24 -0400904func (c *volthaServiceClient) ActivateImageUpdate(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*common.OperationResp, error) {
905 out := new(common.OperationResp)
906 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ActivateImageUpdate", in, out, opts...)
907 if err != nil {
908 return nil, err
909 }
910 return out, nil
911}
912
khenaidoo9beaaf12021-10-19 17:32:01 -0400913// Deprecated: Do not use.
khenaidood948f772021-08-11 17:49:24 -0400914func (c *volthaServiceClient) RevertImageUpdate(ctx context.Context, in *ImageDownload, opts ...grpc.CallOption) (*common.OperationResp, error) {
915 out := new(common.OperationResp)
916 err := c.cc.Invoke(ctx, "/voltha.VolthaService/RevertImageUpdate", in, out, opts...)
917 if err != nil {
918 return nil, err
919 }
920 return out, nil
921}
922
923func (c *volthaServiceClient) DownloadImageToDevice(ctx context.Context, in *DeviceImageDownloadRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error) {
924 out := new(DeviceImageResponse)
925 err := c.cc.Invoke(ctx, "/voltha.VolthaService/DownloadImageToDevice", in, out, opts...)
926 if err != nil {
927 return nil, err
928 }
929 return out, nil
930}
931
932func (c *volthaServiceClient) GetImageStatus(ctx context.Context, in *DeviceImageRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error) {
933 out := new(DeviceImageResponse)
934 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetImageStatus", in, out, opts...)
935 if err != nil {
936 return nil, err
937 }
938 return out, nil
939}
940
941func (c *volthaServiceClient) AbortImageUpgradeToDevice(ctx context.Context, in *DeviceImageRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error) {
942 out := new(DeviceImageResponse)
943 err := c.cc.Invoke(ctx, "/voltha.VolthaService/AbortImageUpgradeToDevice", in, out, opts...)
944 if err != nil {
945 return nil, err
946 }
947 return out, nil
948}
949
950func (c *volthaServiceClient) GetOnuImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*OnuImages, error) {
951 out := new(OnuImages)
952 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetOnuImages", in, out, opts...)
953 if err != nil {
954 return nil, err
955 }
956 return out, nil
957}
958
959func (c *volthaServiceClient) ActivateImage(ctx context.Context, in *DeviceImageRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error) {
960 out := new(DeviceImageResponse)
961 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ActivateImage", in, out, opts...)
962 if err != nil {
963 return nil, err
964 }
965 return out, nil
966}
967
968func (c *volthaServiceClient) CommitImage(ctx context.Context, in *DeviceImageRequest, opts ...grpc.CallOption) (*DeviceImageResponse, error) {
969 out := new(DeviceImageResponse)
970 err := c.cc.Invoke(ctx, "/voltha.VolthaService/CommitImage", in, out, opts...)
971 if err != nil {
972 return nil, err
973 }
974 return out, nil
975}
976
977func (c *volthaServiceClient) ListDevicePorts(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*Ports, error) {
978 out := new(Ports)
979 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListDevicePorts", in, out, opts...)
980 if err != nil {
981 return nil, err
982 }
983 return out, nil
984}
985
986func (c *volthaServiceClient) ListDevicePmConfigs(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*PmConfigs, error) {
987 out := new(PmConfigs)
988 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListDevicePmConfigs", in, out, opts...)
989 if err != nil {
990 return nil, err
991 }
992 return out, nil
993}
994
995func (c *volthaServiceClient) UpdateDevicePmConfigs(ctx context.Context, in *PmConfigs, opts ...grpc.CallOption) (*empty.Empty, error) {
996 out := new(empty.Empty)
997 err := c.cc.Invoke(ctx, "/voltha.VolthaService/UpdateDevicePmConfigs", in, out, opts...)
998 if err != nil {
999 return nil, err
1000 }
1001 return out, nil
1002}
1003
1004func (c *volthaServiceClient) ListDeviceFlows(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.Flows, error) {
1005 out := new(openflow_13.Flows)
1006 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListDeviceFlows", in, out, opts...)
1007 if err != nil {
1008 return nil, err
1009 }
1010 return out, nil
1011}
1012
1013func (c *volthaServiceClient) ListDeviceFlowGroups(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*openflow_13.FlowGroups, error) {
1014 out := new(openflow_13.FlowGroups)
1015 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListDeviceFlowGroups", in, out, opts...)
1016 if err != nil {
1017 return nil, err
1018 }
1019 return out, nil
1020}
1021
1022func (c *volthaServiceClient) ListDeviceTypes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DeviceTypes, error) {
1023 out := new(DeviceTypes)
1024 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListDeviceTypes", in, out, opts...)
1025 if err != nil {
1026 return nil, err
1027 }
1028 return out, nil
1029}
1030
1031func (c *volthaServiceClient) GetDeviceType(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*DeviceType, error) {
1032 out := new(DeviceType)
1033 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetDeviceType", in, out, opts...)
1034 if err != nil {
1035 return nil, err
1036 }
1037 return out, nil
1038}
1039
khenaidood948f772021-08-11 17:49:24 -04001040func (c *volthaServiceClient) StreamPacketsOut(ctx context.Context, opts ...grpc.CallOption) (VolthaService_StreamPacketsOutClient, error) {
1041 stream, err := c.cc.NewStream(ctx, &_VolthaService_serviceDesc.Streams[0], "/voltha.VolthaService/StreamPacketsOut", opts...)
1042 if err != nil {
1043 return nil, err
1044 }
1045 x := &volthaServiceStreamPacketsOutClient{stream}
1046 return x, nil
1047}
1048
1049type VolthaService_StreamPacketsOutClient interface {
1050 Send(*openflow_13.PacketOut) error
1051 CloseAndRecv() (*empty.Empty, error)
1052 grpc.ClientStream
1053}
1054
1055type volthaServiceStreamPacketsOutClient struct {
1056 grpc.ClientStream
1057}
1058
1059func (x *volthaServiceStreamPacketsOutClient) Send(m *openflow_13.PacketOut) error {
1060 return x.ClientStream.SendMsg(m)
1061}
1062
1063func (x *volthaServiceStreamPacketsOutClient) CloseAndRecv() (*empty.Empty, error) {
1064 if err := x.ClientStream.CloseSend(); err != nil {
1065 return nil, err
1066 }
1067 m := new(empty.Empty)
1068 if err := x.ClientStream.RecvMsg(m); err != nil {
1069 return nil, err
1070 }
1071 return m, nil
1072}
1073
1074func (c *volthaServiceClient) ReceivePacketsIn(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (VolthaService_ReceivePacketsInClient, error) {
1075 stream, err := c.cc.NewStream(ctx, &_VolthaService_serviceDesc.Streams[1], "/voltha.VolthaService/ReceivePacketsIn", opts...)
1076 if err != nil {
1077 return nil, err
1078 }
1079 x := &volthaServiceReceivePacketsInClient{stream}
1080 if err := x.ClientStream.SendMsg(in); err != nil {
1081 return nil, err
1082 }
1083 if err := x.ClientStream.CloseSend(); err != nil {
1084 return nil, err
1085 }
1086 return x, nil
1087}
1088
1089type VolthaService_ReceivePacketsInClient interface {
1090 Recv() (*openflow_13.PacketIn, error)
1091 grpc.ClientStream
1092}
1093
1094type volthaServiceReceivePacketsInClient struct {
1095 grpc.ClientStream
1096}
1097
1098func (x *volthaServiceReceivePacketsInClient) Recv() (*openflow_13.PacketIn, error) {
1099 m := new(openflow_13.PacketIn)
1100 if err := x.ClientStream.RecvMsg(m); err != nil {
1101 return nil, err
1102 }
1103 return m, nil
1104}
1105
1106func (c *volthaServiceClient) ReceiveChangeEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (VolthaService_ReceiveChangeEventsClient, error) {
1107 stream, err := c.cc.NewStream(ctx, &_VolthaService_serviceDesc.Streams[2], "/voltha.VolthaService/ReceiveChangeEvents", opts...)
1108 if err != nil {
1109 return nil, err
1110 }
1111 x := &volthaServiceReceiveChangeEventsClient{stream}
1112 if err := x.ClientStream.SendMsg(in); err != nil {
1113 return nil, err
1114 }
1115 if err := x.ClientStream.CloseSend(); err != nil {
1116 return nil, err
1117 }
1118 return x, nil
1119}
1120
1121type VolthaService_ReceiveChangeEventsClient interface {
1122 Recv() (*openflow_13.ChangeEvent, error)
1123 grpc.ClientStream
1124}
1125
1126type volthaServiceReceiveChangeEventsClient struct {
1127 grpc.ClientStream
1128}
1129
1130func (x *volthaServiceReceiveChangeEventsClient) Recv() (*openflow_13.ChangeEvent, error) {
1131 m := new(openflow_13.ChangeEvent)
1132 if err := x.ClientStream.RecvMsg(m); err != nil {
1133 return nil, err
1134 }
1135 return m, nil
1136}
1137
khenaidood948f772021-08-11 17:49:24 -04001138func (c *volthaServiceClient) CreateEventFilter(ctx context.Context, in *EventFilter, opts ...grpc.CallOption) (*EventFilter, error) {
1139 out := new(EventFilter)
1140 err := c.cc.Invoke(ctx, "/voltha.VolthaService/CreateEventFilter", in, out, opts...)
1141 if err != nil {
1142 return nil, err
1143 }
1144 return out, nil
1145}
1146
1147func (c *volthaServiceClient) GetEventFilter(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*EventFilters, error) {
1148 out := new(EventFilters)
1149 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetEventFilter", in, out, opts...)
1150 if err != nil {
1151 return nil, err
1152 }
1153 return out, nil
1154}
1155
1156func (c *volthaServiceClient) UpdateEventFilter(ctx context.Context, in *EventFilter, opts ...grpc.CallOption) (*EventFilter, error) {
1157 out := new(EventFilter)
1158 err := c.cc.Invoke(ctx, "/voltha.VolthaService/UpdateEventFilter", in, out, opts...)
1159 if err != nil {
1160 return nil, err
1161 }
1162 return out, nil
1163}
1164
1165func (c *volthaServiceClient) DeleteEventFilter(ctx context.Context, in *EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) {
1166 out := new(empty.Empty)
1167 err := c.cc.Invoke(ctx, "/voltha.VolthaService/DeleteEventFilter", in, out, opts...)
1168 if err != nil {
1169 return nil, err
1170 }
1171 return out, nil
1172}
1173
1174func (c *volthaServiceClient) ListEventFilters(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EventFilters, error) {
1175 out := new(EventFilters)
1176 err := c.cc.Invoke(ctx, "/voltha.VolthaService/ListEventFilters", in, out, opts...)
1177 if err != nil {
1178 return nil, err
1179 }
1180 return out, nil
1181}
1182
1183func (c *volthaServiceClient) GetImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*Images, error) {
1184 out := new(Images)
1185 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetImages", in, out, opts...)
1186 if err != nil {
1187 return nil, err
1188 }
1189 return out, nil
1190}
1191
1192func (c *volthaServiceClient) SelfTest(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*SelfTestResponse, error) {
1193 out := new(SelfTestResponse)
1194 err := c.cc.Invoke(ctx, "/voltha.VolthaService/SelfTest", in, out, opts...)
1195 if err != nil {
1196 return nil, err
1197 }
1198 return out, nil
1199}
1200
1201func (c *volthaServiceClient) GetMibDeviceData(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*omci.MibDeviceData, error) {
1202 out := new(omci.MibDeviceData)
1203 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetMibDeviceData", in, out, opts...)
1204 if err != nil {
1205 return nil, err
1206 }
1207 return out, nil
1208}
1209
1210func (c *volthaServiceClient) GetAlarmDeviceData(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*omci.AlarmDeviceData, error) {
1211 out := new(omci.AlarmDeviceData)
1212 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetAlarmDeviceData", in, out, opts...)
1213 if err != nil {
1214 return nil, err
1215 }
1216 return out, nil
1217}
1218
1219func (c *volthaServiceClient) SimulateAlarm(ctx context.Context, in *SimulateAlarmRequest, opts ...grpc.CallOption) (*common.OperationResp, error) {
1220 out := new(common.OperationResp)
1221 err := c.cc.Invoke(ctx, "/voltha.VolthaService/SimulateAlarm", in, out, opts...)
1222 if err != nil {
1223 return nil, err
1224 }
1225 return out, nil
1226}
1227
khenaidood948f772021-08-11 17:49:24 -04001228func (c *volthaServiceClient) EnablePort(ctx context.Context, in *Port, opts ...grpc.CallOption) (*empty.Empty, error) {
1229 out := new(empty.Empty)
1230 err := c.cc.Invoke(ctx, "/voltha.VolthaService/EnablePort", in, out, opts...)
1231 if err != nil {
1232 return nil, err
1233 }
1234 return out, nil
1235}
1236
1237func (c *volthaServiceClient) DisablePort(ctx context.Context, in *Port, opts ...grpc.CallOption) (*empty.Empty, error) {
1238 out := new(empty.Empty)
1239 err := c.cc.Invoke(ctx, "/voltha.VolthaService/DisablePort", in, out, opts...)
1240 if err != nil {
1241 return nil, err
1242 }
1243 return out, nil
1244}
1245
khenaidoo9beaaf12021-10-19 17:32:01 -04001246func (c *volthaServiceClient) GetExtValue(ctx context.Context, in *extension.ValueSpecifier, opts ...grpc.CallOption) (*extension.ReturnValues, error) {
1247 out := new(extension.ReturnValues)
khenaidood948f772021-08-11 17:49:24 -04001248 err := c.cc.Invoke(ctx, "/voltha.VolthaService/GetExtValue", in, out, opts...)
1249 if err != nil {
1250 return nil, err
1251 }
1252 return out, nil
1253}
1254
khenaidoo9beaaf12021-10-19 17:32:01 -04001255func (c *volthaServiceClient) SetExtValue(ctx context.Context, in *extension.ValueSet, opts ...grpc.CallOption) (*empty.Empty, error) {
khenaidood948f772021-08-11 17:49:24 -04001256 out := new(empty.Empty)
1257 err := c.cc.Invoke(ctx, "/voltha.VolthaService/SetExtValue", in, out, opts...)
1258 if err != nil {
1259 return nil, err
1260 }
1261 return out, nil
1262}
1263
khenaidoo9beaaf12021-10-19 17:32:01 -04001264func (c *volthaServiceClient) StartOmciTestAction(ctx context.Context, in *omci.OmciTestRequest, opts ...grpc.CallOption) (*omci.TestResponse, error) {
1265 out := new(omci.TestResponse)
khenaidood948f772021-08-11 17:49:24 -04001266 err := c.cc.Invoke(ctx, "/voltha.VolthaService/StartOmciTestAction", in, out, opts...)
1267 if err != nil {
1268 return nil, err
1269 }
1270 return out, nil
1271}
1272
1273// VolthaServiceServer is the server API for VolthaService service.
1274type VolthaServiceServer interface {
khenaidood948f772021-08-11 17:49:24 -04001275 // Get high level information on the Voltha cluster
1276 GetVoltha(context.Context, *empty.Empty) (*Voltha, error)
1277 // List all Voltha cluster core instances
1278 ListCoreInstances(context.Context, *empty.Empty) (*CoreInstances, error)
1279 // Get details on a Voltha cluster instance
1280 GetCoreInstance(context.Context, *common.ID) (*CoreInstance, error)
1281 // List all active adapters (plugins) in the Voltha cluster
1282 ListAdapters(context.Context, *empty.Empty) (*Adapters, error)
1283 // List all logical devices managed by the Voltha cluster
1284 ListLogicalDevices(context.Context, *empty.Empty) (*LogicalDevices, error)
1285 // Get additional information on a given logical device
1286 GetLogicalDevice(context.Context, *common.ID) (*LogicalDevice, error)
1287 // List ports of a logical device
1288 ListLogicalDevicePorts(context.Context, *common.ID) (*LogicalPorts, error)
1289 // Gets a logical device port
1290 GetLogicalDevicePort(context.Context, *LogicalPortId) (*LogicalPort, error)
1291 // Enables a logical device port
1292 EnableLogicalDevicePort(context.Context, *LogicalPortId) (*empty.Empty, error)
1293 // Disables a logical device port
1294 DisableLogicalDevicePort(context.Context, *LogicalPortId) (*empty.Empty, error)
1295 // List all flows of a logical device
1296 ListLogicalDeviceFlows(context.Context, *common.ID) (*openflow_13.Flows, error)
1297 // Update flow table for logical device
1298 UpdateLogicalDeviceFlowTable(context.Context, *openflow_13.FlowTableUpdate) (*empty.Empty, error)
1299 // Update meter table for logical device
1300 UpdateLogicalDeviceMeterTable(context.Context, *openflow_13.MeterModUpdate) (*empty.Empty, error)
1301 // List all meters of a logical device
1302 ListLogicalDeviceMeters(context.Context, *common.ID) (*openflow_13.Meters, error)
1303 // List all flow groups of a logical device
1304 ListLogicalDeviceFlowGroups(context.Context, *common.ID) (*openflow_13.FlowGroups, error)
1305 // Update group table for device
1306 UpdateLogicalDeviceFlowGroupTable(context.Context, *openflow_13.FlowGroupTableUpdate) (*empty.Empty, error)
1307 // List all physical devices controlled by the Voltha cluster
1308 ListDevices(context.Context, *empty.Empty) (*Devices, error)
1309 // List all physical devices IDs controlled by the Voltha cluster
1310 ListDeviceIds(context.Context, *empty.Empty) (*common.IDs, error)
1311 // Request to a voltha Core to reconcile a set of devices based on their IDs
1312 ReconcileDevices(context.Context, *common.IDs) (*empty.Empty, error)
1313 // Get more information on a given physical device
1314 GetDevice(context.Context, *common.ID) (*Device, error)
1315 // Pre-provision a new physical device
1316 CreateDevice(context.Context, *Device) (*Device, error)
1317 // Enable a device. If the device was in pre-provisioned state then it
1318 // will transition to ENABLED state. If it was is DISABLED state then it
1319 // will transition to ENABLED state as well.
1320 EnableDevice(context.Context, *common.ID) (*empty.Empty, error)
1321 // Disable a device
1322 DisableDevice(context.Context, *common.ID) (*empty.Empty, error)
1323 // Reboot a device
1324 RebootDevice(context.Context, *common.ID) (*empty.Empty, error)
1325 // Delete a device
1326 DeleteDevice(context.Context, *common.ID) (*empty.Empty, error)
1327 // Forcefully delete a device
1328 ForceDeleteDevice(context.Context, *common.ID) (*empty.Empty, error)
1329 // Request an image download to the standby partition
1330 // of a device.
1331 // Note that the call is expected to be non-blocking.
1332 DownloadImage(context.Context, *ImageDownload) (*common.OperationResp, error)
1333 // Get image download status on a device
1334 // The request retrieves progress on device and updates db record
1335 // Deprecated in voltha 2.8, will be removed
1336 GetImageDownloadStatus(context.Context, *ImageDownload) (*ImageDownload, error)
1337 // Get image download db record
1338 // Deprecated in voltha 2.8, will be removed
1339 GetImageDownload(context.Context, *ImageDownload) (*ImageDownload, error)
1340 // List image download db records for a given device
1341 // Deprecated in voltha 2.8, will be removed
1342 ListImageDownloads(context.Context, *common.ID) (*ImageDownloads, error)
1343 // Cancel an existing image download process on a device
1344 // Deprecated in voltha 2.8, will be removed
1345 CancelImageDownload(context.Context, *ImageDownload) (*common.OperationResp, error)
1346 // Activate the specified image at a standby partition
1347 // to active partition.
1348 // Depending on the device implementation, this call
1349 // may or may not cause device reboot.
1350 // If no reboot, then a reboot is required to make the
1351 // activated image running on device
1352 // Note that the call is expected to be non-blocking.
1353 // Deprecated in voltha 2.8, will be removed
1354 ActivateImageUpdate(context.Context, *ImageDownload) (*common.OperationResp, error)
1355 // Revert the specified image at standby partition
1356 // to active partition, and revert to previous image
1357 // Depending on the device implementation, this call
1358 // may or may not cause device reboot.
1359 // If no reboot, then a reboot is required to make the
1360 // previous image running on device
1361 // Note that the call is expected to be non-blocking.
1362 // Deprecated in voltha 2.8, will be removed
1363 RevertImageUpdate(context.Context, *ImageDownload) (*common.OperationResp, error)
1364 // Downloads a certain image to the standby partition of the devices
1365 // Note that the call is expected to be non-blocking.
1366 DownloadImageToDevice(context.Context, *DeviceImageDownloadRequest) (*DeviceImageResponse, error)
1367 // Get image status on a number of devices devices
1368 // Polled from northbound systems to get state of download/activate/commit
1369 GetImageStatus(context.Context, *DeviceImageRequest) (*DeviceImageResponse, error)
1370 // Aborts the upgrade of an image on a device
1371 // To be used carefully, stops any further operations for the Image on the given devices
1372 // Might also stop if possible existing work, but no guarantees are given,
1373 // depends on implementation and procedure status.
1374 AbortImageUpgradeToDevice(context.Context, *DeviceImageRequest) (*DeviceImageResponse, error)
1375 // Get Both Active and Standby image for a given device
1376 GetOnuImages(context.Context, *common.ID) (*OnuImages, error)
1377 // Activate the specified image from a standby partition
1378 // to active partition.
1379 // Depending on the device implementation, this call
1380 // may or may not cause device reboot.
1381 // If no reboot, then a reboot is required to make the
1382 // activated image running on device
1383 // Note that the call is expected to be non-blocking.
1384 ActivateImage(context.Context, *DeviceImageRequest) (*DeviceImageResponse, error)
1385 // Commit the specified image to be default.
1386 // Depending on the device implementation, this call
1387 // may or may not cause device reboot.
1388 // If no reboot, then a reboot is required to make the
1389 // activated image running on device upon next reboot
1390 // Note that the call is expected to be non-blocking.
1391 CommitImage(context.Context, *DeviceImageRequest) (*DeviceImageResponse, error)
1392 // List ports of a device
1393 ListDevicePorts(context.Context, *common.ID) (*Ports, error)
1394 // List pm config of a device
1395 ListDevicePmConfigs(context.Context, *common.ID) (*PmConfigs, error)
1396 // Update the pm config of a device
1397 UpdateDevicePmConfigs(context.Context, *PmConfigs) (*empty.Empty, error)
1398 // List all flows of a device
1399 ListDeviceFlows(context.Context, *common.ID) (*openflow_13.Flows, error)
1400 // List all flow groups of a device
1401 ListDeviceFlowGroups(context.Context, *common.ID) (*openflow_13.FlowGroups, error)
1402 // List device types known to Voltha
1403 ListDeviceTypes(context.Context, *empty.Empty) (*DeviceTypes, error)
1404 // Get additional information on a device type
1405 GetDeviceType(context.Context, *common.ID) (*DeviceType, error)
khenaidood948f772021-08-11 17:49:24 -04001406 // Stream control packets to the dataplane
1407 StreamPacketsOut(VolthaService_StreamPacketsOutServer) error
1408 // Receive control packet stream
1409 ReceivePacketsIn(*empty.Empty, VolthaService_ReceivePacketsInServer) error
1410 ReceiveChangeEvents(*empty.Empty, VolthaService_ReceiveChangeEventsServer) error
khenaidood948f772021-08-11 17:49:24 -04001411 CreateEventFilter(context.Context, *EventFilter) (*EventFilter, error)
1412 // Get all filters present for a device
1413 GetEventFilter(context.Context, *common.ID) (*EventFilters, error)
1414 UpdateEventFilter(context.Context, *EventFilter) (*EventFilter, error)
1415 DeleteEventFilter(context.Context, *EventFilter) (*empty.Empty, error)
1416 // Get all the filters present
1417 ListEventFilters(context.Context, *empty.Empty) (*EventFilters, error)
1418 GetImages(context.Context, *common.ID) (*Images, error)
1419 SelfTest(context.Context, *common.ID) (*SelfTestResponse, error)
1420 // OpenOMCI MIB information
1421 GetMibDeviceData(context.Context, *common.ID) (*omci.MibDeviceData, error)
1422 // OpenOMCI ALARM information
1423 GetAlarmDeviceData(context.Context, *common.ID) (*omci.AlarmDeviceData, error)
1424 // Simulate an Alarm
1425 SimulateAlarm(context.Context, *SimulateAlarmRequest) (*common.OperationResp, error)
khenaidood948f772021-08-11 17:49:24 -04001426 EnablePort(context.Context, *Port) (*empty.Empty, error)
1427 DisablePort(context.Context, *Port) (*empty.Empty, error)
khenaidoo9beaaf12021-10-19 17:32:01 -04001428 GetExtValue(context.Context, *extension.ValueSpecifier) (*extension.ReturnValues, error)
1429 SetExtValue(context.Context, *extension.ValueSet) (*empty.Empty, error)
khenaidood948f772021-08-11 17:49:24 -04001430 // omci start and stop cli implementation
khenaidoo9beaaf12021-10-19 17:32:01 -04001431 StartOmciTestAction(context.Context, *omci.OmciTestRequest) (*omci.TestResponse, error)
khenaidood948f772021-08-11 17:49:24 -04001432}
1433
1434// UnimplementedVolthaServiceServer can be embedded to have forward compatible implementations.
1435type UnimplementedVolthaServiceServer struct {
1436}
1437
khenaidood948f772021-08-11 17:49:24 -04001438func (*UnimplementedVolthaServiceServer) GetVoltha(ctx context.Context, req *empty.Empty) (*Voltha, error) {
1439 return nil, status.Errorf(codes.Unimplemented, "method GetVoltha not implemented")
1440}
1441func (*UnimplementedVolthaServiceServer) ListCoreInstances(ctx context.Context, req *empty.Empty) (*CoreInstances, error) {
1442 return nil, status.Errorf(codes.Unimplemented, "method ListCoreInstances not implemented")
1443}
1444func (*UnimplementedVolthaServiceServer) GetCoreInstance(ctx context.Context, req *common.ID) (*CoreInstance, error) {
1445 return nil, status.Errorf(codes.Unimplemented, "method GetCoreInstance not implemented")
1446}
1447func (*UnimplementedVolthaServiceServer) ListAdapters(ctx context.Context, req *empty.Empty) (*Adapters, error) {
1448 return nil, status.Errorf(codes.Unimplemented, "method ListAdapters not implemented")
1449}
1450func (*UnimplementedVolthaServiceServer) ListLogicalDevices(ctx context.Context, req *empty.Empty) (*LogicalDevices, error) {
1451 return nil, status.Errorf(codes.Unimplemented, "method ListLogicalDevices not implemented")
1452}
1453func (*UnimplementedVolthaServiceServer) GetLogicalDevice(ctx context.Context, req *common.ID) (*LogicalDevice, error) {
1454 return nil, status.Errorf(codes.Unimplemented, "method GetLogicalDevice not implemented")
1455}
1456func (*UnimplementedVolthaServiceServer) ListLogicalDevicePorts(ctx context.Context, req *common.ID) (*LogicalPorts, error) {
1457 return nil, status.Errorf(codes.Unimplemented, "method ListLogicalDevicePorts not implemented")
1458}
1459func (*UnimplementedVolthaServiceServer) GetLogicalDevicePort(ctx context.Context, req *LogicalPortId) (*LogicalPort, error) {
1460 return nil, status.Errorf(codes.Unimplemented, "method GetLogicalDevicePort not implemented")
1461}
1462func (*UnimplementedVolthaServiceServer) EnableLogicalDevicePort(ctx context.Context, req *LogicalPortId) (*empty.Empty, error) {
1463 return nil, status.Errorf(codes.Unimplemented, "method EnableLogicalDevicePort not implemented")
1464}
1465func (*UnimplementedVolthaServiceServer) DisableLogicalDevicePort(ctx context.Context, req *LogicalPortId) (*empty.Empty, error) {
1466 return nil, status.Errorf(codes.Unimplemented, "method DisableLogicalDevicePort not implemented")
1467}
1468func (*UnimplementedVolthaServiceServer) ListLogicalDeviceFlows(ctx context.Context, req *common.ID) (*openflow_13.Flows, error) {
1469 return nil, status.Errorf(codes.Unimplemented, "method ListLogicalDeviceFlows not implemented")
1470}
1471func (*UnimplementedVolthaServiceServer) UpdateLogicalDeviceFlowTable(ctx context.Context, req *openflow_13.FlowTableUpdate) (*empty.Empty, error) {
1472 return nil, status.Errorf(codes.Unimplemented, "method UpdateLogicalDeviceFlowTable not implemented")
1473}
1474func (*UnimplementedVolthaServiceServer) UpdateLogicalDeviceMeterTable(ctx context.Context, req *openflow_13.MeterModUpdate) (*empty.Empty, error) {
1475 return nil, status.Errorf(codes.Unimplemented, "method UpdateLogicalDeviceMeterTable not implemented")
1476}
1477func (*UnimplementedVolthaServiceServer) ListLogicalDeviceMeters(ctx context.Context, req *common.ID) (*openflow_13.Meters, error) {
1478 return nil, status.Errorf(codes.Unimplemented, "method ListLogicalDeviceMeters not implemented")
1479}
1480func (*UnimplementedVolthaServiceServer) ListLogicalDeviceFlowGroups(ctx context.Context, req *common.ID) (*openflow_13.FlowGroups, error) {
1481 return nil, status.Errorf(codes.Unimplemented, "method ListLogicalDeviceFlowGroups not implemented")
1482}
1483func (*UnimplementedVolthaServiceServer) UpdateLogicalDeviceFlowGroupTable(ctx context.Context, req *openflow_13.FlowGroupTableUpdate) (*empty.Empty, error) {
1484 return nil, status.Errorf(codes.Unimplemented, "method UpdateLogicalDeviceFlowGroupTable not implemented")
1485}
1486func (*UnimplementedVolthaServiceServer) ListDevices(ctx context.Context, req *empty.Empty) (*Devices, error) {
1487 return nil, status.Errorf(codes.Unimplemented, "method ListDevices not implemented")
1488}
1489func (*UnimplementedVolthaServiceServer) ListDeviceIds(ctx context.Context, req *empty.Empty) (*common.IDs, error) {
1490 return nil, status.Errorf(codes.Unimplemented, "method ListDeviceIds not implemented")
1491}
1492func (*UnimplementedVolthaServiceServer) ReconcileDevices(ctx context.Context, req *common.IDs) (*empty.Empty, error) {
1493 return nil, status.Errorf(codes.Unimplemented, "method ReconcileDevices not implemented")
1494}
1495func (*UnimplementedVolthaServiceServer) GetDevice(ctx context.Context, req *common.ID) (*Device, error) {
1496 return nil, status.Errorf(codes.Unimplemented, "method GetDevice not implemented")
1497}
1498func (*UnimplementedVolthaServiceServer) CreateDevice(ctx context.Context, req *Device) (*Device, error) {
1499 return nil, status.Errorf(codes.Unimplemented, "method CreateDevice not implemented")
1500}
1501func (*UnimplementedVolthaServiceServer) EnableDevice(ctx context.Context, req *common.ID) (*empty.Empty, error) {
1502 return nil, status.Errorf(codes.Unimplemented, "method EnableDevice not implemented")
1503}
1504func (*UnimplementedVolthaServiceServer) DisableDevice(ctx context.Context, req *common.ID) (*empty.Empty, error) {
1505 return nil, status.Errorf(codes.Unimplemented, "method DisableDevice not implemented")
1506}
1507func (*UnimplementedVolthaServiceServer) RebootDevice(ctx context.Context, req *common.ID) (*empty.Empty, error) {
1508 return nil, status.Errorf(codes.Unimplemented, "method RebootDevice not implemented")
1509}
1510func (*UnimplementedVolthaServiceServer) DeleteDevice(ctx context.Context, req *common.ID) (*empty.Empty, error) {
1511 return nil, status.Errorf(codes.Unimplemented, "method DeleteDevice not implemented")
1512}
1513func (*UnimplementedVolthaServiceServer) ForceDeleteDevice(ctx context.Context, req *common.ID) (*empty.Empty, error) {
1514 return nil, status.Errorf(codes.Unimplemented, "method ForceDeleteDevice not implemented")
1515}
1516func (*UnimplementedVolthaServiceServer) DownloadImage(ctx context.Context, req *ImageDownload) (*common.OperationResp, error) {
1517 return nil, status.Errorf(codes.Unimplemented, "method DownloadImage not implemented")
1518}
1519func (*UnimplementedVolthaServiceServer) GetImageDownloadStatus(ctx context.Context, req *ImageDownload) (*ImageDownload, error) {
1520 return nil, status.Errorf(codes.Unimplemented, "method GetImageDownloadStatus not implemented")
1521}
1522func (*UnimplementedVolthaServiceServer) GetImageDownload(ctx context.Context, req *ImageDownload) (*ImageDownload, error) {
1523 return nil, status.Errorf(codes.Unimplemented, "method GetImageDownload not implemented")
1524}
1525func (*UnimplementedVolthaServiceServer) ListImageDownloads(ctx context.Context, req *common.ID) (*ImageDownloads, error) {
1526 return nil, status.Errorf(codes.Unimplemented, "method ListImageDownloads not implemented")
1527}
1528func (*UnimplementedVolthaServiceServer) CancelImageDownload(ctx context.Context, req *ImageDownload) (*common.OperationResp, error) {
1529 return nil, status.Errorf(codes.Unimplemented, "method CancelImageDownload not implemented")
1530}
1531func (*UnimplementedVolthaServiceServer) ActivateImageUpdate(ctx context.Context, req *ImageDownload) (*common.OperationResp, error) {
1532 return nil, status.Errorf(codes.Unimplemented, "method ActivateImageUpdate not implemented")
1533}
1534func (*UnimplementedVolthaServiceServer) RevertImageUpdate(ctx context.Context, req *ImageDownload) (*common.OperationResp, error) {
1535 return nil, status.Errorf(codes.Unimplemented, "method RevertImageUpdate not implemented")
1536}
1537func (*UnimplementedVolthaServiceServer) DownloadImageToDevice(ctx context.Context, req *DeviceImageDownloadRequest) (*DeviceImageResponse, error) {
1538 return nil, status.Errorf(codes.Unimplemented, "method DownloadImageToDevice not implemented")
1539}
1540func (*UnimplementedVolthaServiceServer) GetImageStatus(ctx context.Context, req *DeviceImageRequest) (*DeviceImageResponse, error) {
1541 return nil, status.Errorf(codes.Unimplemented, "method GetImageStatus not implemented")
1542}
1543func (*UnimplementedVolthaServiceServer) AbortImageUpgradeToDevice(ctx context.Context, req *DeviceImageRequest) (*DeviceImageResponse, error) {
1544 return nil, status.Errorf(codes.Unimplemented, "method AbortImageUpgradeToDevice not implemented")
1545}
1546func (*UnimplementedVolthaServiceServer) GetOnuImages(ctx context.Context, req *common.ID) (*OnuImages, error) {
1547 return nil, status.Errorf(codes.Unimplemented, "method GetOnuImages not implemented")
1548}
1549func (*UnimplementedVolthaServiceServer) ActivateImage(ctx context.Context, req *DeviceImageRequest) (*DeviceImageResponse, error) {
1550 return nil, status.Errorf(codes.Unimplemented, "method ActivateImage not implemented")
1551}
1552func (*UnimplementedVolthaServiceServer) CommitImage(ctx context.Context, req *DeviceImageRequest) (*DeviceImageResponse, error) {
1553 return nil, status.Errorf(codes.Unimplemented, "method CommitImage not implemented")
1554}
1555func (*UnimplementedVolthaServiceServer) ListDevicePorts(ctx context.Context, req *common.ID) (*Ports, error) {
1556 return nil, status.Errorf(codes.Unimplemented, "method ListDevicePorts not implemented")
1557}
1558func (*UnimplementedVolthaServiceServer) ListDevicePmConfigs(ctx context.Context, req *common.ID) (*PmConfigs, error) {
1559 return nil, status.Errorf(codes.Unimplemented, "method ListDevicePmConfigs not implemented")
1560}
1561func (*UnimplementedVolthaServiceServer) UpdateDevicePmConfigs(ctx context.Context, req *PmConfigs) (*empty.Empty, error) {
1562 return nil, status.Errorf(codes.Unimplemented, "method UpdateDevicePmConfigs not implemented")
1563}
1564func (*UnimplementedVolthaServiceServer) ListDeviceFlows(ctx context.Context, req *common.ID) (*openflow_13.Flows, error) {
1565 return nil, status.Errorf(codes.Unimplemented, "method ListDeviceFlows not implemented")
1566}
1567func (*UnimplementedVolthaServiceServer) ListDeviceFlowGroups(ctx context.Context, req *common.ID) (*openflow_13.FlowGroups, error) {
1568 return nil, status.Errorf(codes.Unimplemented, "method ListDeviceFlowGroups not implemented")
1569}
1570func (*UnimplementedVolthaServiceServer) ListDeviceTypes(ctx context.Context, req *empty.Empty) (*DeviceTypes, error) {
1571 return nil, status.Errorf(codes.Unimplemented, "method ListDeviceTypes not implemented")
1572}
1573func (*UnimplementedVolthaServiceServer) GetDeviceType(ctx context.Context, req *common.ID) (*DeviceType, error) {
1574 return nil, status.Errorf(codes.Unimplemented, "method GetDeviceType not implemented")
1575}
khenaidood948f772021-08-11 17:49:24 -04001576func (*UnimplementedVolthaServiceServer) StreamPacketsOut(srv VolthaService_StreamPacketsOutServer) error {
1577 return status.Errorf(codes.Unimplemented, "method StreamPacketsOut not implemented")
1578}
1579func (*UnimplementedVolthaServiceServer) ReceivePacketsIn(req *empty.Empty, srv VolthaService_ReceivePacketsInServer) error {
1580 return status.Errorf(codes.Unimplemented, "method ReceivePacketsIn not implemented")
1581}
1582func (*UnimplementedVolthaServiceServer) ReceiveChangeEvents(req *empty.Empty, srv VolthaService_ReceiveChangeEventsServer) error {
1583 return status.Errorf(codes.Unimplemented, "method ReceiveChangeEvents not implemented")
1584}
khenaidood948f772021-08-11 17:49:24 -04001585func (*UnimplementedVolthaServiceServer) CreateEventFilter(ctx context.Context, req *EventFilter) (*EventFilter, error) {
1586 return nil, status.Errorf(codes.Unimplemented, "method CreateEventFilter not implemented")
1587}
1588func (*UnimplementedVolthaServiceServer) GetEventFilter(ctx context.Context, req *common.ID) (*EventFilters, error) {
1589 return nil, status.Errorf(codes.Unimplemented, "method GetEventFilter not implemented")
1590}
1591func (*UnimplementedVolthaServiceServer) UpdateEventFilter(ctx context.Context, req *EventFilter) (*EventFilter, error) {
1592 return nil, status.Errorf(codes.Unimplemented, "method UpdateEventFilter not implemented")
1593}
1594func (*UnimplementedVolthaServiceServer) DeleteEventFilter(ctx context.Context, req *EventFilter) (*empty.Empty, error) {
1595 return nil, status.Errorf(codes.Unimplemented, "method DeleteEventFilter not implemented")
1596}
1597func (*UnimplementedVolthaServiceServer) ListEventFilters(ctx context.Context, req *empty.Empty) (*EventFilters, error) {
1598 return nil, status.Errorf(codes.Unimplemented, "method ListEventFilters not implemented")
1599}
1600func (*UnimplementedVolthaServiceServer) GetImages(ctx context.Context, req *common.ID) (*Images, error) {
1601 return nil, status.Errorf(codes.Unimplemented, "method GetImages not implemented")
1602}
1603func (*UnimplementedVolthaServiceServer) SelfTest(ctx context.Context, req *common.ID) (*SelfTestResponse, error) {
1604 return nil, status.Errorf(codes.Unimplemented, "method SelfTest not implemented")
1605}
1606func (*UnimplementedVolthaServiceServer) GetMibDeviceData(ctx context.Context, req *common.ID) (*omci.MibDeviceData, error) {
1607 return nil, status.Errorf(codes.Unimplemented, "method GetMibDeviceData not implemented")
1608}
1609func (*UnimplementedVolthaServiceServer) GetAlarmDeviceData(ctx context.Context, req *common.ID) (*omci.AlarmDeviceData, error) {
1610 return nil, status.Errorf(codes.Unimplemented, "method GetAlarmDeviceData not implemented")
1611}
1612func (*UnimplementedVolthaServiceServer) SimulateAlarm(ctx context.Context, req *SimulateAlarmRequest) (*common.OperationResp, error) {
1613 return nil, status.Errorf(codes.Unimplemented, "method SimulateAlarm not implemented")
1614}
khenaidood948f772021-08-11 17:49:24 -04001615func (*UnimplementedVolthaServiceServer) EnablePort(ctx context.Context, req *Port) (*empty.Empty, error) {
1616 return nil, status.Errorf(codes.Unimplemented, "method EnablePort not implemented")
1617}
1618func (*UnimplementedVolthaServiceServer) DisablePort(ctx context.Context, req *Port) (*empty.Empty, error) {
1619 return nil, status.Errorf(codes.Unimplemented, "method DisablePort not implemented")
1620}
khenaidoo9beaaf12021-10-19 17:32:01 -04001621func (*UnimplementedVolthaServiceServer) GetExtValue(ctx context.Context, req *extension.ValueSpecifier) (*extension.ReturnValues, error) {
khenaidood948f772021-08-11 17:49:24 -04001622 return nil, status.Errorf(codes.Unimplemented, "method GetExtValue not implemented")
1623}
khenaidoo9beaaf12021-10-19 17:32:01 -04001624func (*UnimplementedVolthaServiceServer) SetExtValue(ctx context.Context, req *extension.ValueSet) (*empty.Empty, error) {
khenaidood948f772021-08-11 17:49:24 -04001625 return nil, status.Errorf(codes.Unimplemented, "method SetExtValue not implemented")
1626}
khenaidoo9beaaf12021-10-19 17:32:01 -04001627func (*UnimplementedVolthaServiceServer) StartOmciTestAction(ctx context.Context, req *omci.OmciTestRequest) (*omci.TestResponse, error) {
khenaidood948f772021-08-11 17:49:24 -04001628 return nil, status.Errorf(codes.Unimplemented, "method StartOmciTestAction not implemented")
1629}
1630
1631func RegisterVolthaServiceServer(s *grpc.Server, srv VolthaServiceServer) {
1632 s.RegisterService(&_VolthaService_serviceDesc, srv)
1633}
1634
khenaidood948f772021-08-11 17:49:24 -04001635func _VolthaService_GetVoltha_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1636 in := new(empty.Empty)
1637 if err := dec(in); err != nil {
1638 return nil, err
1639 }
1640 if interceptor == nil {
1641 return srv.(VolthaServiceServer).GetVoltha(ctx, in)
1642 }
1643 info := &grpc.UnaryServerInfo{
1644 Server: srv,
1645 FullMethod: "/voltha.VolthaService/GetVoltha",
1646 }
1647 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1648 return srv.(VolthaServiceServer).GetVoltha(ctx, req.(*empty.Empty))
1649 }
1650 return interceptor(ctx, in, info, handler)
1651}
1652
1653func _VolthaService_ListCoreInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1654 in := new(empty.Empty)
1655 if err := dec(in); err != nil {
1656 return nil, err
1657 }
1658 if interceptor == nil {
1659 return srv.(VolthaServiceServer).ListCoreInstances(ctx, in)
1660 }
1661 info := &grpc.UnaryServerInfo{
1662 Server: srv,
1663 FullMethod: "/voltha.VolthaService/ListCoreInstances",
1664 }
1665 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1666 return srv.(VolthaServiceServer).ListCoreInstances(ctx, req.(*empty.Empty))
1667 }
1668 return interceptor(ctx, in, info, handler)
1669}
1670
1671func _VolthaService_GetCoreInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1672 in := new(common.ID)
1673 if err := dec(in); err != nil {
1674 return nil, err
1675 }
1676 if interceptor == nil {
1677 return srv.(VolthaServiceServer).GetCoreInstance(ctx, in)
1678 }
1679 info := &grpc.UnaryServerInfo{
1680 Server: srv,
1681 FullMethod: "/voltha.VolthaService/GetCoreInstance",
1682 }
1683 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1684 return srv.(VolthaServiceServer).GetCoreInstance(ctx, req.(*common.ID))
1685 }
1686 return interceptor(ctx, in, info, handler)
1687}
1688
1689func _VolthaService_ListAdapters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1690 in := new(empty.Empty)
1691 if err := dec(in); err != nil {
1692 return nil, err
1693 }
1694 if interceptor == nil {
1695 return srv.(VolthaServiceServer).ListAdapters(ctx, in)
1696 }
1697 info := &grpc.UnaryServerInfo{
1698 Server: srv,
1699 FullMethod: "/voltha.VolthaService/ListAdapters",
1700 }
1701 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1702 return srv.(VolthaServiceServer).ListAdapters(ctx, req.(*empty.Empty))
1703 }
1704 return interceptor(ctx, in, info, handler)
1705}
1706
1707func _VolthaService_ListLogicalDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1708 in := new(empty.Empty)
1709 if err := dec(in); err != nil {
1710 return nil, err
1711 }
1712 if interceptor == nil {
1713 return srv.(VolthaServiceServer).ListLogicalDevices(ctx, in)
1714 }
1715 info := &grpc.UnaryServerInfo{
1716 Server: srv,
1717 FullMethod: "/voltha.VolthaService/ListLogicalDevices",
1718 }
1719 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1720 return srv.(VolthaServiceServer).ListLogicalDevices(ctx, req.(*empty.Empty))
1721 }
1722 return interceptor(ctx, in, info, handler)
1723}
1724
1725func _VolthaService_GetLogicalDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1726 in := new(common.ID)
1727 if err := dec(in); err != nil {
1728 return nil, err
1729 }
1730 if interceptor == nil {
1731 return srv.(VolthaServiceServer).GetLogicalDevice(ctx, in)
1732 }
1733 info := &grpc.UnaryServerInfo{
1734 Server: srv,
1735 FullMethod: "/voltha.VolthaService/GetLogicalDevice",
1736 }
1737 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1738 return srv.(VolthaServiceServer).GetLogicalDevice(ctx, req.(*common.ID))
1739 }
1740 return interceptor(ctx, in, info, handler)
1741}
1742
1743func _VolthaService_ListLogicalDevicePorts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1744 in := new(common.ID)
1745 if err := dec(in); err != nil {
1746 return nil, err
1747 }
1748 if interceptor == nil {
1749 return srv.(VolthaServiceServer).ListLogicalDevicePorts(ctx, in)
1750 }
1751 info := &grpc.UnaryServerInfo{
1752 Server: srv,
1753 FullMethod: "/voltha.VolthaService/ListLogicalDevicePorts",
1754 }
1755 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1756 return srv.(VolthaServiceServer).ListLogicalDevicePorts(ctx, req.(*common.ID))
1757 }
1758 return interceptor(ctx, in, info, handler)
1759}
1760
1761func _VolthaService_GetLogicalDevicePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1762 in := new(LogicalPortId)
1763 if err := dec(in); err != nil {
1764 return nil, err
1765 }
1766 if interceptor == nil {
1767 return srv.(VolthaServiceServer).GetLogicalDevicePort(ctx, in)
1768 }
1769 info := &grpc.UnaryServerInfo{
1770 Server: srv,
1771 FullMethod: "/voltha.VolthaService/GetLogicalDevicePort",
1772 }
1773 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1774 return srv.(VolthaServiceServer).GetLogicalDevicePort(ctx, req.(*LogicalPortId))
1775 }
1776 return interceptor(ctx, in, info, handler)
1777}
1778
1779func _VolthaService_EnableLogicalDevicePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1780 in := new(LogicalPortId)
1781 if err := dec(in); err != nil {
1782 return nil, err
1783 }
1784 if interceptor == nil {
1785 return srv.(VolthaServiceServer).EnableLogicalDevicePort(ctx, in)
1786 }
1787 info := &grpc.UnaryServerInfo{
1788 Server: srv,
1789 FullMethod: "/voltha.VolthaService/EnableLogicalDevicePort",
1790 }
1791 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1792 return srv.(VolthaServiceServer).EnableLogicalDevicePort(ctx, req.(*LogicalPortId))
1793 }
1794 return interceptor(ctx, in, info, handler)
1795}
1796
1797func _VolthaService_DisableLogicalDevicePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1798 in := new(LogicalPortId)
1799 if err := dec(in); err != nil {
1800 return nil, err
1801 }
1802 if interceptor == nil {
1803 return srv.(VolthaServiceServer).DisableLogicalDevicePort(ctx, in)
1804 }
1805 info := &grpc.UnaryServerInfo{
1806 Server: srv,
1807 FullMethod: "/voltha.VolthaService/DisableLogicalDevicePort",
1808 }
1809 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1810 return srv.(VolthaServiceServer).DisableLogicalDevicePort(ctx, req.(*LogicalPortId))
1811 }
1812 return interceptor(ctx, in, info, handler)
1813}
1814
1815func _VolthaService_ListLogicalDeviceFlows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1816 in := new(common.ID)
1817 if err := dec(in); err != nil {
1818 return nil, err
1819 }
1820 if interceptor == nil {
1821 return srv.(VolthaServiceServer).ListLogicalDeviceFlows(ctx, in)
1822 }
1823 info := &grpc.UnaryServerInfo{
1824 Server: srv,
1825 FullMethod: "/voltha.VolthaService/ListLogicalDeviceFlows",
1826 }
1827 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1828 return srv.(VolthaServiceServer).ListLogicalDeviceFlows(ctx, req.(*common.ID))
1829 }
1830 return interceptor(ctx, in, info, handler)
1831}
1832
1833func _VolthaService_UpdateLogicalDeviceFlowTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1834 in := new(openflow_13.FlowTableUpdate)
1835 if err := dec(in); err != nil {
1836 return nil, err
1837 }
1838 if interceptor == nil {
1839 return srv.(VolthaServiceServer).UpdateLogicalDeviceFlowTable(ctx, in)
1840 }
1841 info := &grpc.UnaryServerInfo{
1842 Server: srv,
1843 FullMethod: "/voltha.VolthaService/UpdateLogicalDeviceFlowTable",
1844 }
1845 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1846 return srv.(VolthaServiceServer).UpdateLogicalDeviceFlowTable(ctx, req.(*openflow_13.FlowTableUpdate))
1847 }
1848 return interceptor(ctx, in, info, handler)
1849}
1850
1851func _VolthaService_UpdateLogicalDeviceMeterTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1852 in := new(openflow_13.MeterModUpdate)
1853 if err := dec(in); err != nil {
1854 return nil, err
1855 }
1856 if interceptor == nil {
1857 return srv.(VolthaServiceServer).UpdateLogicalDeviceMeterTable(ctx, in)
1858 }
1859 info := &grpc.UnaryServerInfo{
1860 Server: srv,
1861 FullMethod: "/voltha.VolthaService/UpdateLogicalDeviceMeterTable",
1862 }
1863 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1864 return srv.(VolthaServiceServer).UpdateLogicalDeviceMeterTable(ctx, req.(*openflow_13.MeterModUpdate))
1865 }
1866 return interceptor(ctx, in, info, handler)
1867}
1868
1869func _VolthaService_ListLogicalDeviceMeters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1870 in := new(common.ID)
1871 if err := dec(in); err != nil {
1872 return nil, err
1873 }
1874 if interceptor == nil {
1875 return srv.(VolthaServiceServer).ListLogicalDeviceMeters(ctx, in)
1876 }
1877 info := &grpc.UnaryServerInfo{
1878 Server: srv,
1879 FullMethod: "/voltha.VolthaService/ListLogicalDeviceMeters",
1880 }
1881 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1882 return srv.(VolthaServiceServer).ListLogicalDeviceMeters(ctx, req.(*common.ID))
1883 }
1884 return interceptor(ctx, in, info, handler)
1885}
1886
1887func _VolthaService_ListLogicalDeviceFlowGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1888 in := new(common.ID)
1889 if err := dec(in); err != nil {
1890 return nil, err
1891 }
1892 if interceptor == nil {
1893 return srv.(VolthaServiceServer).ListLogicalDeviceFlowGroups(ctx, in)
1894 }
1895 info := &grpc.UnaryServerInfo{
1896 Server: srv,
1897 FullMethod: "/voltha.VolthaService/ListLogicalDeviceFlowGroups",
1898 }
1899 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1900 return srv.(VolthaServiceServer).ListLogicalDeviceFlowGroups(ctx, req.(*common.ID))
1901 }
1902 return interceptor(ctx, in, info, handler)
1903}
1904
1905func _VolthaService_UpdateLogicalDeviceFlowGroupTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1906 in := new(openflow_13.FlowGroupTableUpdate)
1907 if err := dec(in); err != nil {
1908 return nil, err
1909 }
1910 if interceptor == nil {
1911 return srv.(VolthaServiceServer).UpdateLogicalDeviceFlowGroupTable(ctx, in)
1912 }
1913 info := &grpc.UnaryServerInfo{
1914 Server: srv,
1915 FullMethod: "/voltha.VolthaService/UpdateLogicalDeviceFlowGroupTable",
1916 }
1917 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1918 return srv.(VolthaServiceServer).UpdateLogicalDeviceFlowGroupTable(ctx, req.(*openflow_13.FlowGroupTableUpdate))
1919 }
1920 return interceptor(ctx, in, info, handler)
1921}
1922
1923func _VolthaService_ListDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1924 in := new(empty.Empty)
1925 if err := dec(in); err != nil {
1926 return nil, err
1927 }
1928 if interceptor == nil {
1929 return srv.(VolthaServiceServer).ListDevices(ctx, in)
1930 }
1931 info := &grpc.UnaryServerInfo{
1932 Server: srv,
1933 FullMethod: "/voltha.VolthaService/ListDevices",
1934 }
1935 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1936 return srv.(VolthaServiceServer).ListDevices(ctx, req.(*empty.Empty))
1937 }
1938 return interceptor(ctx, in, info, handler)
1939}
1940
1941func _VolthaService_ListDeviceIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1942 in := new(empty.Empty)
1943 if err := dec(in); err != nil {
1944 return nil, err
1945 }
1946 if interceptor == nil {
1947 return srv.(VolthaServiceServer).ListDeviceIds(ctx, in)
1948 }
1949 info := &grpc.UnaryServerInfo{
1950 Server: srv,
1951 FullMethod: "/voltha.VolthaService/ListDeviceIds",
1952 }
1953 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1954 return srv.(VolthaServiceServer).ListDeviceIds(ctx, req.(*empty.Empty))
1955 }
1956 return interceptor(ctx, in, info, handler)
1957}
1958
1959func _VolthaService_ReconcileDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1960 in := new(common.IDs)
1961 if err := dec(in); err != nil {
1962 return nil, err
1963 }
1964 if interceptor == nil {
1965 return srv.(VolthaServiceServer).ReconcileDevices(ctx, in)
1966 }
1967 info := &grpc.UnaryServerInfo{
1968 Server: srv,
1969 FullMethod: "/voltha.VolthaService/ReconcileDevices",
1970 }
1971 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1972 return srv.(VolthaServiceServer).ReconcileDevices(ctx, req.(*common.IDs))
1973 }
1974 return interceptor(ctx, in, info, handler)
1975}
1976
1977func _VolthaService_GetDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1978 in := new(common.ID)
1979 if err := dec(in); err != nil {
1980 return nil, err
1981 }
1982 if interceptor == nil {
1983 return srv.(VolthaServiceServer).GetDevice(ctx, in)
1984 }
1985 info := &grpc.UnaryServerInfo{
1986 Server: srv,
1987 FullMethod: "/voltha.VolthaService/GetDevice",
1988 }
1989 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1990 return srv.(VolthaServiceServer).GetDevice(ctx, req.(*common.ID))
1991 }
1992 return interceptor(ctx, in, info, handler)
1993}
1994
1995func _VolthaService_CreateDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1996 in := new(Device)
1997 if err := dec(in); err != nil {
1998 return nil, err
1999 }
2000 if interceptor == nil {
2001 return srv.(VolthaServiceServer).CreateDevice(ctx, in)
2002 }
2003 info := &grpc.UnaryServerInfo{
2004 Server: srv,
2005 FullMethod: "/voltha.VolthaService/CreateDevice",
2006 }
2007 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2008 return srv.(VolthaServiceServer).CreateDevice(ctx, req.(*Device))
2009 }
2010 return interceptor(ctx, in, info, handler)
2011}
2012
2013func _VolthaService_EnableDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2014 in := new(common.ID)
2015 if err := dec(in); err != nil {
2016 return nil, err
2017 }
2018 if interceptor == nil {
2019 return srv.(VolthaServiceServer).EnableDevice(ctx, in)
2020 }
2021 info := &grpc.UnaryServerInfo{
2022 Server: srv,
2023 FullMethod: "/voltha.VolthaService/EnableDevice",
2024 }
2025 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2026 return srv.(VolthaServiceServer).EnableDevice(ctx, req.(*common.ID))
2027 }
2028 return interceptor(ctx, in, info, handler)
2029}
2030
2031func _VolthaService_DisableDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2032 in := new(common.ID)
2033 if err := dec(in); err != nil {
2034 return nil, err
2035 }
2036 if interceptor == nil {
2037 return srv.(VolthaServiceServer).DisableDevice(ctx, in)
2038 }
2039 info := &grpc.UnaryServerInfo{
2040 Server: srv,
2041 FullMethod: "/voltha.VolthaService/DisableDevice",
2042 }
2043 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2044 return srv.(VolthaServiceServer).DisableDevice(ctx, req.(*common.ID))
2045 }
2046 return interceptor(ctx, in, info, handler)
2047}
2048
2049func _VolthaService_RebootDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2050 in := new(common.ID)
2051 if err := dec(in); err != nil {
2052 return nil, err
2053 }
2054 if interceptor == nil {
2055 return srv.(VolthaServiceServer).RebootDevice(ctx, in)
2056 }
2057 info := &grpc.UnaryServerInfo{
2058 Server: srv,
2059 FullMethod: "/voltha.VolthaService/RebootDevice",
2060 }
2061 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2062 return srv.(VolthaServiceServer).RebootDevice(ctx, req.(*common.ID))
2063 }
2064 return interceptor(ctx, in, info, handler)
2065}
2066
2067func _VolthaService_DeleteDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2068 in := new(common.ID)
2069 if err := dec(in); err != nil {
2070 return nil, err
2071 }
2072 if interceptor == nil {
2073 return srv.(VolthaServiceServer).DeleteDevice(ctx, in)
2074 }
2075 info := &grpc.UnaryServerInfo{
2076 Server: srv,
2077 FullMethod: "/voltha.VolthaService/DeleteDevice",
2078 }
2079 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2080 return srv.(VolthaServiceServer).DeleteDevice(ctx, req.(*common.ID))
2081 }
2082 return interceptor(ctx, in, info, handler)
2083}
2084
2085func _VolthaService_ForceDeleteDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2086 in := new(common.ID)
2087 if err := dec(in); err != nil {
2088 return nil, err
2089 }
2090 if interceptor == nil {
2091 return srv.(VolthaServiceServer).ForceDeleteDevice(ctx, in)
2092 }
2093 info := &grpc.UnaryServerInfo{
2094 Server: srv,
2095 FullMethod: "/voltha.VolthaService/ForceDeleteDevice",
2096 }
2097 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2098 return srv.(VolthaServiceServer).ForceDeleteDevice(ctx, req.(*common.ID))
2099 }
2100 return interceptor(ctx, in, info, handler)
2101}
2102
2103func _VolthaService_DownloadImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2104 in := new(ImageDownload)
2105 if err := dec(in); err != nil {
2106 return nil, err
2107 }
2108 if interceptor == nil {
2109 return srv.(VolthaServiceServer).DownloadImage(ctx, in)
2110 }
2111 info := &grpc.UnaryServerInfo{
2112 Server: srv,
2113 FullMethod: "/voltha.VolthaService/DownloadImage",
2114 }
2115 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2116 return srv.(VolthaServiceServer).DownloadImage(ctx, req.(*ImageDownload))
2117 }
2118 return interceptor(ctx, in, info, handler)
2119}
2120
2121func _VolthaService_GetImageDownloadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2122 in := new(ImageDownload)
2123 if err := dec(in); err != nil {
2124 return nil, err
2125 }
2126 if interceptor == nil {
2127 return srv.(VolthaServiceServer).GetImageDownloadStatus(ctx, in)
2128 }
2129 info := &grpc.UnaryServerInfo{
2130 Server: srv,
2131 FullMethod: "/voltha.VolthaService/GetImageDownloadStatus",
2132 }
2133 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2134 return srv.(VolthaServiceServer).GetImageDownloadStatus(ctx, req.(*ImageDownload))
2135 }
2136 return interceptor(ctx, in, info, handler)
2137}
2138
2139func _VolthaService_GetImageDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2140 in := new(ImageDownload)
2141 if err := dec(in); err != nil {
2142 return nil, err
2143 }
2144 if interceptor == nil {
2145 return srv.(VolthaServiceServer).GetImageDownload(ctx, in)
2146 }
2147 info := &grpc.UnaryServerInfo{
2148 Server: srv,
2149 FullMethod: "/voltha.VolthaService/GetImageDownload",
2150 }
2151 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2152 return srv.(VolthaServiceServer).GetImageDownload(ctx, req.(*ImageDownload))
2153 }
2154 return interceptor(ctx, in, info, handler)
2155}
2156
2157func _VolthaService_ListImageDownloads_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2158 in := new(common.ID)
2159 if err := dec(in); err != nil {
2160 return nil, err
2161 }
2162 if interceptor == nil {
2163 return srv.(VolthaServiceServer).ListImageDownloads(ctx, in)
2164 }
2165 info := &grpc.UnaryServerInfo{
2166 Server: srv,
2167 FullMethod: "/voltha.VolthaService/ListImageDownloads",
2168 }
2169 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2170 return srv.(VolthaServiceServer).ListImageDownloads(ctx, req.(*common.ID))
2171 }
2172 return interceptor(ctx, in, info, handler)
2173}
2174
2175func _VolthaService_CancelImageDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2176 in := new(ImageDownload)
2177 if err := dec(in); err != nil {
2178 return nil, err
2179 }
2180 if interceptor == nil {
2181 return srv.(VolthaServiceServer).CancelImageDownload(ctx, in)
2182 }
2183 info := &grpc.UnaryServerInfo{
2184 Server: srv,
2185 FullMethod: "/voltha.VolthaService/CancelImageDownload",
2186 }
2187 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2188 return srv.(VolthaServiceServer).CancelImageDownload(ctx, req.(*ImageDownload))
2189 }
2190 return interceptor(ctx, in, info, handler)
2191}
2192
2193func _VolthaService_ActivateImageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2194 in := new(ImageDownload)
2195 if err := dec(in); err != nil {
2196 return nil, err
2197 }
2198 if interceptor == nil {
2199 return srv.(VolthaServiceServer).ActivateImageUpdate(ctx, in)
2200 }
2201 info := &grpc.UnaryServerInfo{
2202 Server: srv,
2203 FullMethod: "/voltha.VolthaService/ActivateImageUpdate",
2204 }
2205 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2206 return srv.(VolthaServiceServer).ActivateImageUpdate(ctx, req.(*ImageDownload))
2207 }
2208 return interceptor(ctx, in, info, handler)
2209}
2210
2211func _VolthaService_RevertImageUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2212 in := new(ImageDownload)
2213 if err := dec(in); err != nil {
2214 return nil, err
2215 }
2216 if interceptor == nil {
2217 return srv.(VolthaServiceServer).RevertImageUpdate(ctx, in)
2218 }
2219 info := &grpc.UnaryServerInfo{
2220 Server: srv,
2221 FullMethod: "/voltha.VolthaService/RevertImageUpdate",
2222 }
2223 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2224 return srv.(VolthaServiceServer).RevertImageUpdate(ctx, req.(*ImageDownload))
2225 }
2226 return interceptor(ctx, in, info, handler)
2227}
2228
2229func _VolthaService_DownloadImageToDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2230 in := new(DeviceImageDownloadRequest)
2231 if err := dec(in); err != nil {
2232 return nil, err
2233 }
2234 if interceptor == nil {
2235 return srv.(VolthaServiceServer).DownloadImageToDevice(ctx, in)
2236 }
2237 info := &grpc.UnaryServerInfo{
2238 Server: srv,
2239 FullMethod: "/voltha.VolthaService/DownloadImageToDevice",
2240 }
2241 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2242 return srv.(VolthaServiceServer).DownloadImageToDevice(ctx, req.(*DeviceImageDownloadRequest))
2243 }
2244 return interceptor(ctx, in, info, handler)
2245}
2246
2247func _VolthaService_GetImageStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2248 in := new(DeviceImageRequest)
2249 if err := dec(in); err != nil {
2250 return nil, err
2251 }
2252 if interceptor == nil {
2253 return srv.(VolthaServiceServer).GetImageStatus(ctx, in)
2254 }
2255 info := &grpc.UnaryServerInfo{
2256 Server: srv,
2257 FullMethod: "/voltha.VolthaService/GetImageStatus",
2258 }
2259 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2260 return srv.(VolthaServiceServer).GetImageStatus(ctx, req.(*DeviceImageRequest))
2261 }
2262 return interceptor(ctx, in, info, handler)
2263}
2264
2265func _VolthaService_AbortImageUpgradeToDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2266 in := new(DeviceImageRequest)
2267 if err := dec(in); err != nil {
2268 return nil, err
2269 }
2270 if interceptor == nil {
2271 return srv.(VolthaServiceServer).AbortImageUpgradeToDevice(ctx, in)
2272 }
2273 info := &grpc.UnaryServerInfo{
2274 Server: srv,
2275 FullMethod: "/voltha.VolthaService/AbortImageUpgradeToDevice",
2276 }
2277 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2278 return srv.(VolthaServiceServer).AbortImageUpgradeToDevice(ctx, req.(*DeviceImageRequest))
2279 }
2280 return interceptor(ctx, in, info, handler)
2281}
2282
2283func _VolthaService_GetOnuImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2284 in := new(common.ID)
2285 if err := dec(in); err != nil {
2286 return nil, err
2287 }
2288 if interceptor == nil {
2289 return srv.(VolthaServiceServer).GetOnuImages(ctx, in)
2290 }
2291 info := &grpc.UnaryServerInfo{
2292 Server: srv,
2293 FullMethod: "/voltha.VolthaService/GetOnuImages",
2294 }
2295 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2296 return srv.(VolthaServiceServer).GetOnuImages(ctx, req.(*common.ID))
2297 }
2298 return interceptor(ctx, in, info, handler)
2299}
2300
2301func _VolthaService_ActivateImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2302 in := new(DeviceImageRequest)
2303 if err := dec(in); err != nil {
2304 return nil, err
2305 }
2306 if interceptor == nil {
2307 return srv.(VolthaServiceServer).ActivateImage(ctx, in)
2308 }
2309 info := &grpc.UnaryServerInfo{
2310 Server: srv,
2311 FullMethod: "/voltha.VolthaService/ActivateImage",
2312 }
2313 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2314 return srv.(VolthaServiceServer).ActivateImage(ctx, req.(*DeviceImageRequest))
2315 }
2316 return interceptor(ctx, in, info, handler)
2317}
2318
2319func _VolthaService_CommitImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2320 in := new(DeviceImageRequest)
2321 if err := dec(in); err != nil {
2322 return nil, err
2323 }
2324 if interceptor == nil {
2325 return srv.(VolthaServiceServer).CommitImage(ctx, in)
2326 }
2327 info := &grpc.UnaryServerInfo{
2328 Server: srv,
2329 FullMethod: "/voltha.VolthaService/CommitImage",
2330 }
2331 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2332 return srv.(VolthaServiceServer).CommitImage(ctx, req.(*DeviceImageRequest))
2333 }
2334 return interceptor(ctx, in, info, handler)
2335}
2336
2337func _VolthaService_ListDevicePorts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2338 in := new(common.ID)
2339 if err := dec(in); err != nil {
2340 return nil, err
2341 }
2342 if interceptor == nil {
2343 return srv.(VolthaServiceServer).ListDevicePorts(ctx, in)
2344 }
2345 info := &grpc.UnaryServerInfo{
2346 Server: srv,
2347 FullMethod: "/voltha.VolthaService/ListDevicePorts",
2348 }
2349 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2350 return srv.(VolthaServiceServer).ListDevicePorts(ctx, req.(*common.ID))
2351 }
2352 return interceptor(ctx, in, info, handler)
2353}
2354
2355func _VolthaService_ListDevicePmConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2356 in := new(common.ID)
2357 if err := dec(in); err != nil {
2358 return nil, err
2359 }
2360 if interceptor == nil {
2361 return srv.(VolthaServiceServer).ListDevicePmConfigs(ctx, in)
2362 }
2363 info := &grpc.UnaryServerInfo{
2364 Server: srv,
2365 FullMethod: "/voltha.VolthaService/ListDevicePmConfigs",
2366 }
2367 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2368 return srv.(VolthaServiceServer).ListDevicePmConfigs(ctx, req.(*common.ID))
2369 }
2370 return interceptor(ctx, in, info, handler)
2371}
2372
2373func _VolthaService_UpdateDevicePmConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2374 in := new(PmConfigs)
2375 if err := dec(in); err != nil {
2376 return nil, err
2377 }
2378 if interceptor == nil {
2379 return srv.(VolthaServiceServer).UpdateDevicePmConfigs(ctx, in)
2380 }
2381 info := &grpc.UnaryServerInfo{
2382 Server: srv,
2383 FullMethod: "/voltha.VolthaService/UpdateDevicePmConfigs",
2384 }
2385 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2386 return srv.(VolthaServiceServer).UpdateDevicePmConfigs(ctx, req.(*PmConfigs))
2387 }
2388 return interceptor(ctx, in, info, handler)
2389}
2390
2391func _VolthaService_ListDeviceFlows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2392 in := new(common.ID)
2393 if err := dec(in); err != nil {
2394 return nil, err
2395 }
2396 if interceptor == nil {
2397 return srv.(VolthaServiceServer).ListDeviceFlows(ctx, in)
2398 }
2399 info := &grpc.UnaryServerInfo{
2400 Server: srv,
2401 FullMethod: "/voltha.VolthaService/ListDeviceFlows",
2402 }
2403 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2404 return srv.(VolthaServiceServer).ListDeviceFlows(ctx, req.(*common.ID))
2405 }
2406 return interceptor(ctx, in, info, handler)
2407}
2408
2409func _VolthaService_ListDeviceFlowGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2410 in := new(common.ID)
2411 if err := dec(in); err != nil {
2412 return nil, err
2413 }
2414 if interceptor == nil {
2415 return srv.(VolthaServiceServer).ListDeviceFlowGroups(ctx, in)
2416 }
2417 info := &grpc.UnaryServerInfo{
2418 Server: srv,
2419 FullMethod: "/voltha.VolthaService/ListDeviceFlowGroups",
2420 }
2421 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2422 return srv.(VolthaServiceServer).ListDeviceFlowGroups(ctx, req.(*common.ID))
2423 }
2424 return interceptor(ctx, in, info, handler)
2425}
2426
2427func _VolthaService_ListDeviceTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2428 in := new(empty.Empty)
2429 if err := dec(in); err != nil {
2430 return nil, err
2431 }
2432 if interceptor == nil {
2433 return srv.(VolthaServiceServer).ListDeviceTypes(ctx, in)
2434 }
2435 info := &grpc.UnaryServerInfo{
2436 Server: srv,
2437 FullMethod: "/voltha.VolthaService/ListDeviceTypes",
2438 }
2439 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2440 return srv.(VolthaServiceServer).ListDeviceTypes(ctx, req.(*empty.Empty))
2441 }
2442 return interceptor(ctx, in, info, handler)
2443}
2444
2445func _VolthaService_GetDeviceType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2446 in := new(common.ID)
2447 if err := dec(in); err != nil {
2448 return nil, err
2449 }
2450 if interceptor == nil {
2451 return srv.(VolthaServiceServer).GetDeviceType(ctx, in)
2452 }
2453 info := &grpc.UnaryServerInfo{
2454 Server: srv,
2455 FullMethod: "/voltha.VolthaService/GetDeviceType",
2456 }
2457 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2458 return srv.(VolthaServiceServer).GetDeviceType(ctx, req.(*common.ID))
2459 }
2460 return interceptor(ctx, in, info, handler)
2461}
2462
khenaidood948f772021-08-11 17:49:24 -04002463func _VolthaService_StreamPacketsOut_Handler(srv interface{}, stream grpc.ServerStream) error {
2464 return srv.(VolthaServiceServer).StreamPacketsOut(&volthaServiceStreamPacketsOutServer{stream})
2465}
2466
2467type VolthaService_StreamPacketsOutServer interface {
2468 SendAndClose(*empty.Empty) error
2469 Recv() (*openflow_13.PacketOut, error)
2470 grpc.ServerStream
2471}
2472
2473type volthaServiceStreamPacketsOutServer struct {
2474 grpc.ServerStream
2475}
2476
2477func (x *volthaServiceStreamPacketsOutServer) SendAndClose(m *empty.Empty) error {
2478 return x.ServerStream.SendMsg(m)
2479}
2480
2481func (x *volthaServiceStreamPacketsOutServer) Recv() (*openflow_13.PacketOut, error) {
2482 m := new(openflow_13.PacketOut)
2483 if err := x.ServerStream.RecvMsg(m); err != nil {
2484 return nil, err
2485 }
2486 return m, nil
2487}
2488
2489func _VolthaService_ReceivePacketsIn_Handler(srv interface{}, stream grpc.ServerStream) error {
2490 m := new(empty.Empty)
2491 if err := stream.RecvMsg(m); err != nil {
2492 return err
2493 }
2494 return srv.(VolthaServiceServer).ReceivePacketsIn(m, &volthaServiceReceivePacketsInServer{stream})
2495}
2496
2497type VolthaService_ReceivePacketsInServer interface {
2498 Send(*openflow_13.PacketIn) error
2499 grpc.ServerStream
2500}
2501
2502type volthaServiceReceivePacketsInServer struct {
2503 grpc.ServerStream
2504}
2505
2506func (x *volthaServiceReceivePacketsInServer) Send(m *openflow_13.PacketIn) error {
2507 return x.ServerStream.SendMsg(m)
2508}
2509
2510func _VolthaService_ReceiveChangeEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
2511 m := new(empty.Empty)
2512 if err := stream.RecvMsg(m); err != nil {
2513 return err
2514 }
2515 return srv.(VolthaServiceServer).ReceiveChangeEvents(m, &volthaServiceReceiveChangeEventsServer{stream})
2516}
2517
2518type VolthaService_ReceiveChangeEventsServer interface {
2519 Send(*openflow_13.ChangeEvent) error
2520 grpc.ServerStream
2521}
2522
2523type volthaServiceReceiveChangeEventsServer struct {
2524 grpc.ServerStream
2525}
2526
2527func (x *volthaServiceReceiveChangeEventsServer) Send(m *openflow_13.ChangeEvent) error {
2528 return x.ServerStream.SendMsg(m)
2529}
2530
khenaidood948f772021-08-11 17:49:24 -04002531func _VolthaService_CreateEventFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2532 in := new(EventFilter)
2533 if err := dec(in); err != nil {
2534 return nil, err
2535 }
2536 if interceptor == nil {
2537 return srv.(VolthaServiceServer).CreateEventFilter(ctx, in)
2538 }
2539 info := &grpc.UnaryServerInfo{
2540 Server: srv,
2541 FullMethod: "/voltha.VolthaService/CreateEventFilter",
2542 }
2543 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2544 return srv.(VolthaServiceServer).CreateEventFilter(ctx, req.(*EventFilter))
2545 }
2546 return interceptor(ctx, in, info, handler)
2547}
2548
2549func _VolthaService_GetEventFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2550 in := new(common.ID)
2551 if err := dec(in); err != nil {
2552 return nil, err
2553 }
2554 if interceptor == nil {
2555 return srv.(VolthaServiceServer).GetEventFilter(ctx, in)
2556 }
2557 info := &grpc.UnaryServerInfo{
2558 Server: srv,
2559 FullMethod: "/voltha.VolthaService/GetEventFilter",
2560 }
2561 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2562 return srv.(VolthaServiceServer).GetEventFilter(ctx, req.(*common.ID))
2563 }
2564 return interceptor(ctx, in, info, handler)
2565}
2566
2567func _VolthaService_UpdateEventFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2568 in := new(EventFilter)
2569 if err := dec(in); err != nil {
2570 return nil, err
2571 }
2572 if interceptor == nil {
2573 return srv.(VolthaServiceServer).UpdateEventFilter(ctx, in)
2574 }
2575 info := &grpc.UnaryServerInfo{
2576 Server: srv,
2577 FullMethod: "/voltha.VolthaService/UpdateEventFilter",
2578 }
2579 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2580 return srv.(VolthaServiceServer).UpdateEventFilter(ctx, req.(*EventFilter))
2581 }
2582 return interceptor(ctx, in, info, handler)
2583}
2584
2585func _VolthaService_DeleteEventFilter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2586 in := new(EventFilter)
2587 if err := dec(in); err != nil {
2588 return nil, err
2589 }
2590 if interceptor == nil {
2591 return srv.(VolthaServiceServer).DeleteEventFilter(ctx, in)
2592 }
2593 info := &grpc.UnaryServerInfo{
2594 Server: srv,
2595 FullMethod: "/voltha.VolthaService/DeleteEventFilter",
2596 }
2597 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2598 return srv.(VolthaServiceServer).DeleteEventFilter(ctx, req.(*EventFilter))
2599 }
2600 return interceptor(ctx, in, info, handler)
2601}
2602
2603func _VolthaService_ListEventFilters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2604 in := new(empty.Empty)
2605 if err := dec(in); err != nil {
2606 return nil, err
2607 }
2608 if interceptor == nil {
2609 return srv.(VolthaServiceServer).ListEventFilters(ctx, in)
2610 }
2611 info := &grpc.UnaryServerInfo{
2612 Server: srv,
2613 FullMethod: "/voltha.VolthaService/ListEventFilters",
2614 }
2615 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2616 return srv.(VolthaServiceServer).ListEventFilters(ctx, req.(*empty.Empty))
2617 }
2618 return interceptor(ctx, in, info, handler)
2619}
2620
2621func _VolthaService_GetImages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2622 in := new(common.ID)
2623 if err := dec(in); err != nil {
2624 return nil, err
2625 }
2626 if interceptor == nil {
2627 return srv.(VolthaServiceServer).GetImages(ctx, in)
2628 }
2629 info := &grpc.UnaryServerInfo{
2630 Server: srv,
2631 FullMethod: "/voltha.VolthaService/GetImages",
2632 }
2633 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2634 return srv.(VolthaServiceServer).GetImages(ctx, req.(*common.ID))
2635 }
2636 return interceptor(ctx, in, info, handler)
2637}
2638
2639func _VolthaService_SelfTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2640 in := new(common.ID)
2641 if err := dec(in); err != nil {
2642 return nil, err
2643 }
2644 if interceptor == nil {
2645 return srv.(VolthaServiceServer).SelfTest(ctx, in)
2646 }
2647 info := &grpc.UnaryServerInfo{
2648 Server: srv,
2649 FullMethod: "/voltha.VolthaService/SelfTest",
2650 }
2651 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2652 return srv.(VolthaServiceServer).SelfTest(ctx, req.(*common.ID))
2653 }
2654 return interceptor(ctx, in, info, handler)
2655}
2656
2657func _VolthaService_GetMibDeviceData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2658 in := new(common.ID)
2659 if err := dec(in); err != nil {
2660 return nil, err
2661 }
2662 if interceptor == nil {
2663 return srv.(VolthaServiceServer).GetMibDeviceData(ctx, in)
2664 }
2665 info := &grpc.UnaryServerInfo{
2666 Server: srv,
2667 FullMethod: "/voltha.VolthaService/GetMibDeviceData",
2668 }
2669 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2670 return srv.(VolthaServiceServer).GetMibDeviceData(ctx, req.(*common.ID))
2671 }
2672 return interceptor(ctx, in, info, handler)
2673}
2674
2675func _VolthaService_GetAlarmDeviceData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2676 in := new(common.ID)
2677 if err := dec(in); err != nil {
2678 return nil, err
2679 }
2680 if interceptor == nil {
2681 return srv.(VolthaServiceServer).GetAlarmDeviceData(ctx, in)
2682 }
2683 info := &grpc.UnaryServerInfo{
2684 Server: srv,
2685 FullMethod: "/voltha.VolthaService/GetAlarmDeviceData",
2686 }
2687 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2688 return srv.(VolthaServiceServer).GetAlarmDeviceData(ctx, req.(*common.ID))
2689 }
2690 return interceptor(ctx, in, info, handler)
2691}
2692
2693func _VolthaService_SimulateAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2694 in := new(SimulateAlarmRequest)
2695 if err := dec(in); err != nil {
2696 return nil, err
2697 }
2698 if interceptor == nil {
2699 return srv.(VolthaServiceServer).SimulateAlarm(ctx, in)
2700 }
2701 info := &grpc.UnaryServerInfo{
2702 Server: srv,
2703 FullMethod: "/voltha.VolthaService/SimulateAlarm",
2704 }
2705 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2706 return srv.(VolthaServiceServer).SimulateAlarm(ctx, req.(*SimulateAlarmRequest))
2707 }
2708 return interceptor(ctx, in, info, handler)
2709}
2710
khenaidood948f772021-08-11 17:49:24 -04002711func _VolthaService_EnablePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2712 in := new(Port)
2713 if err := dec(in); err != nil {
2714 return nil, err
2715 }
2716 if interceptor == nil {
2717 return srv.(VolthaServiceServer).EnablePort(ctx, in)
2718 }
2719 info := &grpc.UnaryServerInfo{
2720 Server: srv,
2721 FullMethod: "/voltha.VolthaService/EnablePort",
2722 }
2723 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2724 return srv.(VolthaServiceServer).EnablePort(ctx, req.(*Port))
2725 }
2726 return interceptor(ctx, in, info, handler)
2727}
2728
2729func _VolthaService_DisablePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2730 in := new(Port)
2731 if err := dec(in); err != nil {
2732 return nil, err
2733 }
2734 if interceptor == nil {
2735 return srv.(VolthaServiceServer).DisablePort(ctx, in)
2736 }
2737 info := &grpc.UnaryServerInfo{
2738 Server: srv,
2739 FullMethod: "/voltha.VolthaService/DisablePort",
2740 }
2741 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2742 return srv.(VolthaServiceServer).DisablePort(ctx, req.(*Port))
2743 }
2744 return interceptor(ctx, in, info, handler)
2745}
2746
2747func _VolthaService_GetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
khenaidoo9beaaf12021-10-19 17:32:01 -04002748 in := new(extension.ValueSpecifier)
khenaidood948f772021-08-11 17:49:24 -04002749 if err := dec(in); err != nil {
2750 return nil, err
2751 }
2752 if interceptor == nil {
2753 return srv.(VolthaServiceServer).GetExtValue(ctx, in)
2754 }
2755 info := &grpc.UnaryServerInfo{
2756 Server: srv,
2757 FullMethod: "/voltha.VolthaService/GetExtValue",
2758 }
2759 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
khenaidoo9beaaf12021-10-19 17:32:01 -04002760 return srv.(VolthaServiceServer).GetExtValue(ctx, req.(*extension.ValueSpecifier))
khenaidood948f772021-08-11 17:49:24 -04002761 }
2762 return interceptor(ctx, in, info, handler)
2763}
2764
2765func _VolthaService_SetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
khenaidoo9beaaf12021-10-19 17:32:01 -04002766 in := new(extension.ValueSet)
khenaidood948f772021-08-11 17:49:24 -04002767 if err := dec(in); err != nil {
2768 return nil, err
2769 }
2770 if interceptor == nil {
2771 return srv.(VolthaServiceServer).SetExtValue(ctx, in)
2772 }
2773 info := &grpc.UnaryServerInfo{
2774 Server: srv,
2775 FullMethod: "/voltha.VolthaService/SetExtValue",
2776 }
2777 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
khenaidoo9beaaf12021-10-19 17:32:01 -04002778 return srv.(VolthaServiceServer).SetExtValue(ctx, req.(*extension.ValueSet))
khenaidood948f772021-08-11 17:49:24 -04002779 }
2780 return interceptor(ctx, in, info, handler)
2781}
2782
2783func _VolthaService_StartOmciTestAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
khenaidoo9beaaf12021-10-19 17:32:01 -04002784 in := new(omci.OmciTestRequest)
khenaidood948f772021-08-11 17:49:24 -04002785 if err := dec(in); err != nil {
2786 return nil, err
2787 }
2788 if interceptor == nil {
2789 return srv.(VolthaServiceServer).StartOmciTestAction(ctx, in)
2790 }
2791 info := &grpc.UnaryServerInfo{
2792 Server: srv,
2793 FullMethod: "/voltha.VolthaService/StartOmciTestAction",
2794 }
2795 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
khenaidoo9beaaf12021-10-19 17:32:01 -04002796 return srv.(VolthaServiceServer).StartOmciTestAction(ctx, req.(*omci.OmciTestRequest))
khenaidood948f772021-08-11 17:49:24 -04002797 }
2798 return interceptor(ctx, in, info, handler)
2799}
2800
2801var _VolthaService_serviceDesc = grpc.ServiceDesc{
2802 ServiceName: "voltha.VolthaService",
2803 HandlerType: (*VolthaServiceServer)(nil),
2804 Methods: []grpc.MethodDesc{
2805 {
khenaidood948f772021-08-11 17:49:24 -04002806 MethodName: "GetVoltha",
2807 Handler: _VolthaService_GetVoltha_Handler,
2808 },
2809 {
2810 MethodName: "ListCoreInstances",
2811 Handler: _VolthaService_ListCoreInstances_Handler,
2812 },
2813 {
2814 MethodName: "GetCoreInstance",
2815 Handler: _VolthaService_GetCoreInstance_Handler,
2816 },
2817 {
2818 MethodName: "ListAdapters",
2819 Handler: _VolthaService_ListAdapters_Handler,
2820 },
2821 {
2822 MethodName: "ListLogicalDevices",
2823 Handler: _VolthaService_ListLogicalDevices_Handler,
2824 },
2825 {
2826 MethodName: "GetLogicalDevice",
2827 Handler: _VolthaService_GetLogicalDevice_Handler,
2828 },
2829 {
2830 MethodName: "ListLogicalDevicePorts",
2831 Handler: _VolthaService_ListLogicalDevicePorts_Handler,
2832 },
2833 {
2834 MethodName: "GetLogicalDevicePort",
2835 Handler: _VolthaService_GetLogicalDevicePort_Handler,
2836 },
2837 {
2838 MethodName: "EnableLogicalDevicePort",
2839 Handler: _VolthaService_EnableLogicalDevicePort_Handler,
2840 },
2841 {
2842 MethodName: "DisableLogicalDevicePort",
2843 Handler: _VolthaService_DisableLogicalDevicePort_Handler,
2844 },
2845 {
2846 MethodName: "ListLogicalDeviceFlows",
2847 Handler: _VolthaService_ListLogicalDeviceFlows_Handler,
2848 },
2849 {
2850 MethodName: "UpdateLogicalDeviceFlowTable",
2851 Handler: _VolthaService_UpdateLogicalDeviceFlowTable_Handler,
2852 },
2853 {
2854 MethodName: "UpdateLogicalDeviceMeterTable",
2855 Handler: _VolthaService_UpdateLogicalDeviceMeterTable_Handler,
2856 },
2857 {
2858 MethodName: "ListLogicalDeviceMeters",
2859 Handler: _VolthaService_ListLogicalDeviceMeters_Handler,
2860 },
2861 {
2862 MethodName: "ListLogicalDeviceFlowGroups",
2863 Handler: _VolthaService_ListLogicalDeviceFlowGroups_Handler,
2864 },
2865 {
2866 MethodName: "UpdateLogicalDeviceFlowGroupTable",
2867 Handler: _VolthaService_UpdateLogicalDeviceFlowGroupTable_Handler,
2868 },
2869 {
2870 MethodName: "ListDevices",
2871 Handler: _VolthaService_ListDevices_Handler,
2872 },
2873 {
2874 MethodName: "ListDeviceIds",
2875 Handler: _VolthaService_ListDeviceIds_Handler,
2876 },
2877 {
2878 MethodName: "ReconcileDevices",
2879 Handler: _VolthaService_ReconcileDevices_Handler,
2880 },
2881 {
2882 MethodName: "GetDevice",
2883 Handler: _VolthaService_GetDevice_Handler,
2884 },
2885 {
2886 MethodName: "CreateDevice",
2887 Handler: _VolthaService_CreateDevice_Handler,
2888 },
2889 {
2890 MethodName: "EnableDevice",
2891 Handler: _VolthaService_EnableDevice_Handler,
2892 },
2893 {
2894 MethodName: "DisableDevice",
2895 Handler: _VolthaService_DisableDevice_Handler,
2896 },
2897 {
2898 MethodName: "RebootDevice",
2899 Handler: _VolthaService_RebootDevice_Handler,
2900 },
2901 {
2902 MethodName: "DeleteDevice",
2903 Handler: _VolthaService_DeleteDevice_Handler,
2904 },
2905 {
2906 MethodName: "ForceDeleteDevice",
2907 Handler: _VolthaService_ForceDeleteDevice_Handler,
2908 },
2909 {
2910 MethodName: "DownloadImage",
2911 Handler: _VolthaService_DownloadImage_Handler,
2912 },
2913 {
2914 MethodName: "GetImageDownloadStatus",
2915 Handler: _VolthaService_GetImageDownloadStatus_Handler,
2916 },
2917 {
2918 MethodName: "GetImageDownload",
2919 Handler: _VolthaService_GetImageDownload_Handler,
2920 },
2921 {
2922 MethodName: "ListImageDownloads",
2923 Handler: _VolthaService_ListImageDownloads_Handler,
2924 },
2925 {
2926 MethodName: "CancelImageDownload",
2927 Handler: _VolthaService_CancelImageDownload_Handler,
2928 },
2929 {
2930 MethodName: "ActivateImageUpdate",
2931 Handler: _VolthaService_ActivateImageUpdate_Handler,
2932 },
2933 {
2934 MethodName: "RevertImageUpdate",
2935 Handler: _VolthaService_RevertImageUpdate_Handler,
2936 },
2937 {
2938 MethodName: "DownloadImageToDevice",
2939 Handler: _VolthaService_DownloadImageToDevice_Handler,
2940 },
2941 {
2942 MethodName: "GetImageStatus",
2943 Handler: _VolthaService_GetImageStatus_Handler,
2944 },
2945 {
2946 MethodName: "AbortImageUpgradeToDevice",
2947 Handler: _VolthaService_AbortImageUpgradeToDevice_Handler,
2948 },
2949 {
2950 MethodName: "GetOnuImages",
2951 Handler: _VolthaService_GetOnuImages_Handler,
2952 },
2953 {
2954 MethodName: "ActivateImage",
2955 Handler: _VolthaService_ActivateImage_Handler,
2956 },
2957 {
2958 MethodName: "CommitImage",
2959 Handler: _VolthaService_CommitImage_Handler,
2960 },
2961 {
2962 MethodName: "ListDevicePorts",
2963 Handler: _VolthaService_ListDevicePorts_Handler,
2964 },
2965 {
2966 MethodName: "ListDevicePmConfigs",
2967 Handler: _VolthaService_ListDevicePmConfigs_Handler,
2968 },
2969 {
2970 MethodName: "UpdateDevicePmConfigs",
2971 Handler: _VolthaService_UpdateDevicePmConfigs_Handler,
2972 },
2973 {
2974 MethodName: "ListDeviceFlows",
2975 Handler: _VolthaService_ListDeviceFlows_Handler,
2976 },
2977 {
2978 MethodName: "ListDeviceFlowGroups",
2979 Handler: _VolthaService_ListDeviceFlowGroups_Handler,
2980 },
2981 {
2982 MethodName: "ListDeviceTypes",
2983 Handler: _VolthaService_ListDeviceTypes_Handler,
2984 },
2985 {
2986 MethodName: "GetDeviceType",
2987 Handler: _VolthaService_GetDeviceType_Handler,
2988 },
2989 {
khenaidood948f772021-08-11 17:49:24 -04002990 MethodName: "CreateEventFilter",
2991 Handler: _VolthaService_CreateEventFilter_Handler,
2992 },
2993 {
2994 MethodName: "GetEventFilter",
2995 Handler: _VolthaService_GetEventFilter_Handler,
2996 },
2997 {
2998 MethodName: "UpdateEventFilter",
2999 Handler: _VolthaService_UpdateEventFilter_Handler,
3000 },
3001 {
3002 MethodName: "DeleteEventFilter",
3003 Handler: _VolthaService_DeleteEventFilter_Handler,
3004 },
3005 {
3006 MethodName: "ListEventFilters",
3007 Handler: _VolthaService_ListEventFilters_Handler,
3008 },
3009 {
3010 MethodName: "GetImages",
3011 Handler: _VolthaService_GetImages_Handler,
3012 },
3013 {
3014 MethodName: "SelfTest",
3015 Handler: _VolthaService_SelfTest_Handler,
3016 },
3017 {
3018 MethodName: "GetMibDeviceData",
3019 Handler: _VolthaService_GetMibDeviceData_Handler,
3020 },
3021 {
3022 MethodName: "GetAlarmDeviceData",
3023 Handler: _VolthaService_GetAlarmDeviceData_Handler,
3024 },
3025 {
3026 MethodName: "SimulateAlarm",
3027 Handler: _VolthaService_SimulateAlarm_Handler,
3028 },
3029 {
khenaidood948f772021-08-11 17:49:24 -04003030 MethodName: "EnablePort",
3031 Handler: _VolthaService_EnablePort_Handler,
3032 },
3033 {
3034 MethodName: "DisablePort",
3035 Handler: _VolthaService_DisablePort_Handler,
3036 },
3037 {
3038 MethodName: "GetExtValue",
3039 Handler: _VolthaService_GetExtValue_Handler,
3040 },
3041 {
3042 MethodName: "SetExtValue",
3043 Handler: _VolthaService_SetExtValue_Handler,
3044 },
3045 {
3046 MethodName: "StartOmciTestAction",
3047 Handler: _VolthaService_StartOmciTestAction_Handler,
3048 },
3049 },
3050 Streams: []grpc.StreamDesc{
3051 {
3052 StreamName: "StreamPacketsOut",
3053 Handler: _VolthaService_StreamPacketsOut_Handler,
3054 ClientStreams: true,
3055 },
3056 {
3057 StreamName: "ReceivePacketsIn",
3058 Handler: _VolthaService_ReceivePacketsIn_Handler,
3059 ServerStreams: true,
3060 },
3061 {
3062 StreamName: "ReceiveChangeEvents",
3063 Handler: _VolthaService_ReceiveChangeEvents_Handler,
3064 ServerStreams: true,
3065 },
3066 },
3067 Metadata: "voltha_protos/voltha.proto",
3068}