khenaidoo | ab1f7bd | 2019-11-14 14:00:27 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019-present Open Networking Foundation |
| 3 | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | package mocks |
| 17 | |
| 18 | import ( |
| 19 | "context" |
| 20 | "github.com/opencord/voltha-protos/v2/go/voltha" |
| 21 | ) |
| 22 | |
| 23 | type DeviceManager struct { |
| 24 | } |
| 25 | |
| 26 | func (dm *DeviceManager) GetDevice(deviceId string) (*voltha.Device, error) { |
| 27 | return nil, nil |
| 28 | } |
| 29 | func (dm *DeviceManager) IsRootDevice(deviceId string) (bool, error) { |
| 30 | return false, nil |
| 31 | } |
| 32 | |
| 33 | func (dm *DeviceManager) NotifyInvalidTransition(pcDevice *voltha.Device) error { |
| 34 | return nil |
| 35 | } |
| 36 | |
| 37 | func (dm *DeviceManager) SetAdminStateToEnable(cDevice *voltha.Device) error { |
| 38 | return nil |
| 39 | } |
| 40 | |
| 41 | func (dm *DeviceManager) CreateLogicalDevice(cDevice *voltha.Device) error { |
| 42 | return nil |
| 43 | } |
| 44 | |
| 45 | func (dm *DeviceManager) SetupUNILogicalPorts(cDevice *voltha.Device) error { |
| 46 | return nil |
| 47 | } |
| 48 | |
| 49 | func (dm *DeviceManager) DisableAllChildDevices(cDevice *voltha.Device) error { |
| 50 | return nil |
| 51 | } |
| 52 | |
| 53 | func (dm *DeviceManager) DeleteLogicalDevice(cDevice *voltha.Device) error { |
| 54 | return nil |
| 55 | } |
| 56 | |
| 57 | func (dm *DeviceManager) DeleteLogicalPorts(cDevice *voltha.Device) error { |
| 58 | return nil |
| 59 | } |
| 60 | |
| 61 | func (dm *DeviceManager) DeleteAllChildDevices(cDevice *voltha.Device) error { |
| 62 | return nil |
| 63 | } |
| 64 | |
| 65 | func (dm *DeviceManager) RunPostDeviceDelete(cDevice *voltha.Device) error { |
| 66 | return nil |
| 67 | } |
| 68 | |
| 69 | func (dm *DeviceManager) ListDevices() (*voltha.Devices, error) { |
| 70 | return nil, nil |
| 71 | } |
| 72 | |
| 73 | func (dm *DeviceManager) ListDeviceIds() (*voltha.IDs, error) { |
| 74 | return nil, nil |
| 75 | } |
| 76 | |
| 77 | func (dm *DeviceManager) ReconcileDevices(ctx context.Context, ids *voltha.IDs, ch chan interface{}) { |
| 78 | } |
| 79 | |
| 80 | func (dm *DeviceManager) CreateDevice(ctx context.Context, device *voltha.Device, ch chan interface{}) { |
| 81 | } |
| 82 | |
| 83 | func (dm *DeviceManager) EnableDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) { |
| 84 | } |
| 85 | |
| 86 | func (dm *DeviceManager) DisableDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) { |
| 87 | } |
| 88 | |
| 89 | func (dm *DeviceManager) RebootDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) { |
| 90 | } |
| 91 | |
| 92 | func (dm *DeviceManager) DeleteDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) { |
| 93 | } |
| 94 | |
| 95 | func (dm *DeviceManager) StopManagingDevice(id string) { |
| 96 | } |
| 97 | |
| 98 | func (dm *DeviceManager) DownloadImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) { |
| 99 | } |
| 100 | |
| 101 | func (dm *DeviceManager) CancelImageDownload(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) { |
| 102 | } |
| 103 | |
| 104 | func (dm *DeviceManager) ActivateImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) { |
| 105 | } |
| 106 | |
| 107 | func (dm *DeviceManager) RevertImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) { |
| 108 | } |
| 109 | |
| 110 | func (dm *DeviceManager) GetImageDownloadStatus(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) { |
| 111 | } |
| 112 | |
| 113 | func (dm *DeviceManager) UpdateImageDownload(deviceId string, img *voltha.ImageDownload) error { |
| 114 | return nil |
| 115 | } |
| 116 | |
| 117 | func (dm *DeviceManager) SimulateAlarm(ctx context.Context, simulatereq *voltha.SimulateAlarmRequest, ch chan interface{}) { |
| 118 | } |
| 119 | |
| 120 | func (dm *DeviceManager) GetImageDownload(ctx context.Context, img *voltha.ImageDownload) (*voltha.ImageDownload, error) { |
| 121 | return nil, nil |
| 122 | } |
| 123 | |
| 124 | func (dm *DeviceManager) ListImageDownloads(ctx context.Context, deviceId string) (*voltha.ImageDownloads, error) { |
| 125 | return nil, nil |
| 126 | } |
| 127 | |
| 128 | func (dm *DeviceManager) UpdatePmConfigs(ctx context.Context, pmConfigs *voltha.PmConfigs, ch chan interface{}) { |
| 129 | } |
| 130 | |
| 131 | func (dm *DeviceManager) ListPmConfigs(ctx context.Context, deviceId string) (*voltha.PmConfigs, error) { |
| 132 | return nil, nil |
| 133 | } |
| 134 | |
| 135 | func (dm *DeviceManager) DeletePeerPorts(fromDeviceId string, deviceId string) error { |
| 136 | return nil |
| 137 | } |
| 138 | |
| 139 | func (dm *DeviceManager) ProcessTransition(previous *voltha.Device, current *voltha.Device) error { |
| 140 | return nil |
| 141 | } |