blob: 3e9a6141698c56e57111be5921c88f8ed784a9cd [file] [log] [blame]
Andrea Campanella7e6200a2016-03-21 09:48:40 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Andrea Campanella7e6200a2016-03-21 09:48:40 -07003 *
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
Yuta HIGUCHIe3ae8212017-04-20 10:18:41 -070017package org.onosproject.netconf.ctl.impl;
Andrea Campanella7e6200a2016-03-21 09:48:40 -070018
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
Viswanath KSP22774cd2016-08-20 20:06:30 +053086 public PortStatistics getStatisticsForPort(DeviceId deviceId, PortNumber portNumber) {
87 return null;
88 }
89
90 @Override
91 public PortStatistics getDeltaStatisticsForPort(DeviceId deviceId, PortNumber portNumber) {
92 return null;
93 }
94
95 @Override
Andrea Campanella7e6200a2016-03-21 09:48:40 -070096 public Port getPort(DeviceId deviceId, PortNumber portNumber) {
97 return null;
98 }
99
100 @Override
101 public boolean isAvailable(DeviceId deviceId) {
102 return false;
103 }
104
105 @Override
106 public void addListener(DeviceListener listener) {
107
108 }
109
110 @Override
111 public void removeListener(DeviceListener listener) {
112
113 }
Saurav Dasd5ec9e92017-01-17 10:40:18 -0800114
115 @Override
116 public String localStatus(DeviceId deviceId) {
117 return null;
118 }
Andrea Campanella7e6200a2016-03-21 09:48:40 -0700119}