blob: e355bbd22ba02687e1ed067194214c9345a29814 [file] [log] [blame]
Andrea Campanella7e6200a2016-03-21 09:48:40 -07001/*
2 * Copyright 2016 Open Networking Laboratory
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
17package org.onosproject.netconf.ctl;
18
19import org.onosproject.net.Device;
20import org.onosproject.net.DeviceId;
21import org.onosproject.net.MastershipRole;
22import org.onosproject.net.Port;
23import org.onosproject.net.PortNumber;
24import org.onosproject.net.device.DeviceListener;
25import org.onosproject.net.device.DeviceService;
26import org.onosproject.net.device.PortStatistics;
27
28import java.util.List;
29
30/**
31 * Mock device Service.
32 */
33class NetconfDeviceServiceMock implements DeviceService {
34
35 @Override
36 public int getDeviceCount() {
37 return 0;
38 }
39
40 @Override
41 public Iterable<Device> getDevices() {
42 return null;
43 }
44
45 @Override
46 public Iterable<Device> getDevices(Device.Type type) {
47 return null;
48 }
49
50 @Override
51 public Iterable<Device> getAvailableDevices() {
52 return null;
53 }
54
55 @Override
56 public Iterable<Device> getAvailableDevices(Device.Type type) {
57 return null;
58 }
59
60 @Override
61 public Device getDevice(DeviceId deviceId) {
62 return null;
63 }
64
65 @Override
66 public MastershipRole getRole(DeviceId deviceId) {
67 return null;
68 }
69
70 @Override
71 public List<Port> getPorts(DeviceId deviceId) {
72 return null;
73 }
74
75 @Override
76 public List<PortStatistics> getPortStatistics(DeviceId deviceId) {
77 return null;
78 }
79
80 @Override
81 public List<PortStatistics> getPortDeltaStatistics(DeviceId deviceId) {
82 return null;
83 }
84
85 @Override
86 public Port getPort(DeviceId deviceId, PortNumber portNumber) {
87 return null;
88 }
89
90 @Override
91 public boolean isAvailable(DeviceId deviceId) {
92 return false;
93 }
94
95 @Override
96 public void addListener(DeviceListener listener) {
97
98 }
99
100 @Override
101 public void removeListener(DeviceListener listener) {
102
103 }
104}