blob: c8bf1ca4f719daa064a7c6465f521252e361cfd6 [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 */
16package mocks
17
18import (
19 "context"
20 "github.com/opencord/voltha-protos/v2/go/voltha"
21)
22
23type DeviceManager struct {
24}
25
26func (dm *DeviceManager) GetDevice(deviceId string) (*voltha.Device, error) {
27 return nil, nil
28}
29func (dm *DeviceManager) IsRootDevice(deviceId string) (bool, error) {
30 return false, nil
31}
32
33func (dm *DeviceManager) NotifyInvalidTransition(pcDevice *voltha.Device) error {
34 return nil
35}
36
37func (dm *DeviceManager) SetAdminStateToEnable(cDevice *voltha.Device) error {
38 return nil
39}
40
41func (dm *DeviceManager) CreateLogicalDevice(cDevice *voltha.Device) error {
42 return nil
43}
44
45func (dm *DeviceManager) SetupUNILogicalPorts(cDevice *voltha.Device) error {
46 return nil
47}
48
49func (dm *DeviceManager) DisableAllChildDevices(cDevice *voltha.Device) error {
50 return nil
51}
52
53func (dm *DeviceManager) DeleteLogicalDevice(cDevice *voltha.Device) error {
54 return nil
55}
56
57func (dm *DeviceManager) DeleteLogicalPorts(cDevice *voltha.Device) error {
58 return nil
59}
60
61func (dm *DeviceManager) DeleteAllChildDevices(cDevice *voltha.Device) error {
62 return nil
63}
64
65func (dm *DeviceManager) RunPostDeviceDelete(cDevice *voltha.Device) error {
66 return nil
67}
68
69func (dm *DeviceManager) ListDevices() (*voltha.Devices, error) {
70 return nil, nil
71}
72
73func (dm *DeviceManager) ListDeviceIds() (*voltha.IDs, error) {
74 return nil, nil
75}
76
77func (dm *DeviceManager) ReconcileDevices(ctx context.Context, ids *voltha.IDs, ch chan interface{}) {
78}
79
80func (dm *DeviceManager) CreateDevice(ctx context.Context, device *voltha.Device, ch chan interface{}) {
81}
82
83func (dm *DeviceManager) EnableDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
84}
85
86func (dm *DeviceManager) DisableDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
87}
88
89func (dm *DeviceManager) RebootDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
90}
91
92func (dm *DeviceManager) DeleteDevice(ctx context.Context, id *voltha.ID, ch chan interface{}) {
93}
94
95func (dm *DeviceManager) StopManagingDevice(id string) {
96}
97
98func (dm *DeviceManager) DownloadImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
99}
100
101func (dm *DeviceManager) CancelImageDownload(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
102}
103
104func (dm *DeviceManager) ActivateImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
105}
106
107func (dm *DeviceManager) RevertImage(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
108}
109
110func (dm *DeviceManager) GetImageDownloadStatus(ctx context.Context, img *voltha.ImageDownload, ch chan interface{}) {
111}
112
113func (dm *DeviceManager) UpdateImageDownload(deviceId string, img *voltha.ImageDownload) error {
114 return nil
115}
116
117func (dm *DeviceManager) SimulateAlarm(ctx context.Context, simulatereq *voltha.SimulateAlarmRequest, ch chan interface{}) {
118}
119
120func (dm *DeviceManager) GetImageDownload(ctx context.Context, img *voltha.ImageDownload) (*voltha.ImageDownload, error) {
121 return nil, nil
122}
123
124func (dm *DeviceManager) ListImageDownloads(ctx context.Context, deviceId string) (*voltha.ImageDownloads, error) {
125 return nil, nil
126}
127
128func (dm *DeviceManager) UpdatePmConfigs(ctx context.Context, pmConfigs *voltha.PmConfigs, ch chan interface{}) {
129}
130
131func (dm *DeviceManager) ListPmConfigs(ctx context.Context, deviceId string) (*voltha.PmConfigs, error) {
132 return nil, nil
133}
134
135func (dm *DeviceManager) DeletePeerPorts(fromDeviceId string, deviceId string) error {
136 return nil
137}
138
139func (dm *DeviceManager) ProcessTransition(previous *voltha.Device, current *voltha.Device) error {
140 return nil
141}