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