blob: 45e5af5ab883c25299ec2e76b7fabd2052681bf4 [file] [log] [blame]
khenaidooab1f7bd2019-11-14 14:00:27 -05001/*
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 */
npujar1d86a522019-11-14 17:11:16 +053016
khenaidooab1f7bd2019-11-14 14:00:27 -050017package mocks
18
19import (
20 "context"
npujar1d86a522019-11-14 17:11:16 +053021
serkant.uluderya2ae470f2020-01-21 11:13:09 -080022 "github.com/opencord/voltha-protos/v3/go/voltha"
khenaidooab1f7bd2019-11-14 14:00:27 -050023)
24
npujar1d86a522019-11-14 17:11:16 +053025// DeviceManager -
khenaidooab1f7bd2019-11-14 14:00:27 -050026type DeviceManager struct {
27}
28
npujar1d86a522019-11-14 17:11:16 +053029// GetDevice -
npujar467fe752020-01-16 20:17:45 +053030func (dm *DeviceManager) GetDevice(ctx context.Context, deviceID string) (*voltha.Device, error) {
khenaidooab1f7bd2019-11-14 14:00:27 -050031 return nil, nil
32}
npujar1d86a522019-11-14 17:11:16 +053033
34// IsRootDevice -
35func (dm *DeviceManager) IsRootDevice(deviceID string) (bool, error) {
khenaidooab1f7bd2019-11-14 14:00:27 -050036 return false, nil
37}
38
npujar1d86a522019-11-14 17:11:16 +053039// NotifyInvalidTransition -
npujar467fe752020-01-16 20:17:45 +053040func (dm *DeviceManager) NotifyInvalidTransition(ctx context.Context, pcDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050041 return nil
42}
43
npujar1d86a522019-11-14 17:11:16 +053044// SetAdminStateToEnable -
npujar467fe752020-01-16 20:17:45 +053045func (dm *DeviceManager) SetAdminStateToEnable(ctx context.Context, cDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050046 return nil
47}
48
npujar1d86a522019-11-14 17:11:16 +053049// CreateLogicalDevice -
npujar467fe752020-01-16 20:17:45 +053050func (dm *DeviceManager) CreateLogicalDevice(ctx context.Context, cDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050051 return nil
52}
53
npujar1d86a522019-11-14 17:11:16 +053054// SetupUNILogicalPorts -
npujar467fe752020-01-16 20:17:45 +053055func (dm *DeviceManager) SetupUNILogicalPorts(ctx context.Context, cDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050056 return nil
57}
58
npujar1d86a522019-11-14 17:11:16 +053059// DisableAllChildDevices -
npujar467fe752020-01-16 20:17:45 +053060func (dm *DeviceManager) DisableAllChildDevices(ctx context.Context, cDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050061 return nil
62}
63
npujar1d86a522019-11-14 17:11:16 +053064// DeleteLogicalDevice -
npujar467fe752020-01-16 20:17:45 +053065func (dm *DeviceManager) DeleteLogicalDevice(ctx context.Context, cDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050066 return nil
67}
68
npujar1d86a522019-11-14 17:11:16 +053069// DeleteLogicalPorts -
npujar467fe752020-01-16 20:17:45 +053070func (dm *DeviceManager) DeleteLogicalPorts(ctx context.Context, cDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050071 return nil
72}
73
npujar1d86a522019-11-14 17:11:16 +053074// DeleteAllChildDevices -
npujar467fe752020-01-16 20:17:45 +053075func (dm *DeviceManager) DeleteAllChildDevices(ctx context.Context, cDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050076 return nil
77}
78
Hardik Windlassc704def2020-02-26 18:23:19 +000079// DeleteAllUNILogicalPorts -
80func (dm *DeviceManager) DeleteAllUNILogicalPorts(ctx context.Context, cDevice *voltha.Device) error {
81 return nil
82}
83
npujar1d86a522019-11-14 17:11:16 +053084// RunPostDeviceDelete -
npujar467fe752020-01-16 20:17:45 +053085func (dm *DeviceManager) RunPostDeviceDelete(ctx context.Context, cDevice *voltha.Device) error {
khenaidooab1f7bd2019-11-14 14:00:27 -050086 return nil
87}
88
npujar1d86a522019-11-14 17:11:16 +053089// ListDevices -
khenaidooab1f7bd2019-11-14 14:00:27 -050090func (dm *DeviceManager) ListDevices() (*voltha.Devices, error) {
91 return nil, nil
92}
93
npujar1d86a522019-11-14 17:11:16 +053094// ListDeviceIds -
khenaidooab1f7bd2019-11-14 14:00:27 -050095func (dm *DeviceManager) ListDeviceIds() (*voltha.IDs, error) {
96 return nil, nil
97}
98
npujar1d86a522019-11-14 17:11:16 +053099// ReconcileDevices -
khenaidooab1f7bd2019-11-14 14:00:27 -0500100func (dm *DeviceManager) ReconcileDevices(ctx context.Context, ids *voltha.IDs, ch chan interface{}) {
101}
102
npujar1d86a522019-11-14 17:11:16 +0530103// CreateDevice -
khenaidooab1f7bd2019-11-14 14:00:27 -0500104func (dm *DeviceManager) CreateDevice(ctx context.Context, device *voltha.Device, ch chan interface{}) {
105}
106
npujar1d86a522019-11-14 17:11:16 +0530107// EnableDevice -
khenaidooab1f7bd2019-11-14 14:00:27 -0500108func (dm *DeviceManager) EnableDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
109}
110
npujar1d86a522019-11-14 17:11:16 +0530111// DisableDevice -
khenaidooab1f7bd2019-11-14 14:00:27 -0500112func (dm *DeviceManager) DisableDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
113}
114
npujar1d86a522019-11-14 17:11:16 +0530115// RebootDevice -
khenaidooab1f7bd2019-11-14 14:00:27 -0500116func (dm *DeviceManager) RebootDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
117}
118
npujar1d86a522019-11-14 17:11:16 +0530119// DeleteDevice -
khenaidooab1f7bd2019-11-14 14:00:27 -0500120func (dm *DeviceManager) DeleteDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
121}
122
npujar1d86a522019-11-14 17:11:16 +0530123// StopManagingDevice -
khenaidooab1f7bd2019-11-14 14:00:27 -0500124func (dm *DeviceManager) StopManagingDevice(id string) {
125}
126
npujar1d86a522019-11-14 17:11:16 +0530127// DownloadImage -
khenaidooab1f7bd2019-11-14 14:00:27 -0500128func (dm *DeviceManager) DownloadImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
129}
130
npujar1d86a522019-11-14 17:11:16 +0530131// CancelImageDownload -
khenaidooab1f7bd2019-11-14 14:00:27 -0500132func (dm *DeviceManager) CancelImageDownload(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
133}
134
npujar1d86a522019-11-14 17:11:16 +0530135// ActivateImage -
khenaidooab1f7bd2019-11-14 14:00:27 -0500136func (dm *DeviceManager) ActivateImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
137}
138
npujar1d86a522019-11-14 17:11:16 +0530139// RevertImage -
khenaidooab1f7bd2019-11-14 14:00:27 -0500140func (dm *DeviceManager) RevertImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
141}
142
npujar1d86a522019-11-14 17:11:16 +0530143// GetImageDownloadStatus -
khenaidooab1f7bd2019-11-14 14:00:27 -0500144func (dm *DeviceManager) GetImageDownloadStatus(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
145}
146
npujar1d86a522019-11-14 17:11:16 +0530147// UpdateImageDownload -
148func (dm *DeviceManager) UpdateImageDownload(deviceID string, img *voltha.ImageDownload) error {
khenaidooab1f7bd2019-11-14 14:00:27 -0500149 return nil
150}
151
npujar1d86a522019-11-14 17:11:16 +0530152// SimulateAlarm -
khenaidooab1f7bd2019-11-14 14:00:27 -0500153func (dm *DeviceManager) SimulateAlarm(ctx context.Context, simulatereq *voltha.SimulateAlarmRequest, ch chan interface{}) {
154}
155
npujar1d86a522019-11-14 17:11:16 +0530156// GetImageDownload -
khenaidooab1f7bd2019-11-14 14:00:27 -0500157func (dm *DeviceManager) GetImageDownload(ctx context.Context, img *voltha.ImageDownload) (*voltha.ImageDownload, error) {
158 return nil, nil
159}
160
npujar1d86a522019-11-14 17:11:16 +0530161// ListImageDownloads -
162func (dm *DeviceManager) ListImageDownloads(ctx context.Context, deviceID string) (*voltha.ImageDownloads, error) {
khenaidooab1f7bd2019-11-14 14:00:27 -0500163 return nil, nil
164}
165
npujar1d86a522019-11-14 17:11:16 +0530166// UpdatePmConfigs -
khenaidooab1f7bd2019-11-14 14:00:27 -0500167func (dm *DeviceManager) UpdatePmConfigs(ctx context.Context, pmConfigs *voltha.PmConfigs, ch chan interface{}) {
168}
169
npujar1d86a522019-11-14 17:11:16 +0530170// ListPmConfigs -
171func (dm *DeviceManager) ListPmConfigs(ctx context.Context, deviceID string) (*voltha.PmConfigs, error) {
khenaidooab1f7bd2019-11-14 14:00:27 -0500172 return nil, nil
173}
174
npujar1d86a522019-11-14 17:11:16 +0530175// DeletePeerPorts -
176func (dm *DeviceManager) DeletePeerPorts(fromDeviceID string, deviceID string) error {
khenaidooab1f7bd2019-11-14 14:00:27 -0500177 return nil
178}
179
npujar1d86a522019-11-14 17:11:16 +0530180// ProcessTransition -
khenaidooab1f7bd2019-11-14 14:00:27 -0500181func (dm *DeviceManager) ProcessTransition(previous *voltha.Device, current *voltha.Device) error {
182 return nil
183}
Chaitrashree G S543df3e2020-02-24 22:36:54 -0500184
185// ChildDeviceLost -
186func (dm *DeviceManager) ChildDeviceLost(ctx context.Context, cDevice *voltha.Device) error {
187 return nil
188}