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