blob: a69d0afd4e5f20a47727b79a262fd85fe6307d47 [file] [log] [blame]
Carmelo Cascone42fdec32019-12-09 22:36:48 -08001/*
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
17package org.onosproject.pipelines.fabric.impl.behaviour.bng;
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 implmentation of DeviceService.
32 */
33class MockDeviceService implements DeviceService {
34 @Override
35 public int getDeviceCount() {
36 return 0;
37 }
38
39 @Override
40 public Iterable<Device> getDevices() {
41 return null;
42 }
43
44 @Override
45 public Iterable<Device> getDevices(Device.Type type) {
46 return null;
47 }
48
49 @Override
50 public Iterable<Device> getAvailableDevices() {
51 return null;
52 }
53
54 @Override
55 public Iterable<Device> getAvailableDevices(Device.Type type) {
56 return null;
57 }
58
59 @Override
60 public Device getDevice(DeviceId deviceId) {
61 return null;
62 }
63
64 @Override
65 public MastershipRole getRole(DeviceId deviceId) {
66 return null;
67 }
68
69 @Override
70 public List<Port> getPorts(DeviceId deviceId) {
71 return null;
72 }
73
74 @Override
75 public List<PortStatistics> getPortStatistics(DeviceId deviceId) {
76 return null;
77 }
78
79 @Override
80 public List<PortStatistics> getPortDeltaStatistics(DeviceId deviceId) {
81 return null;
82 }
83
84 @Override
85 public Port getPort(DeviceId deviceId, PortNumber portNumber) {
86 return null;
87 }
88
89 @Override
90 public boolean isAvailable(DeviceId deviceId) {
91 return false;
92 }
93
94 @Override
95 public String localStatus(DeviceId deviceId) {
96 return null;
97 }
98
99 @Override
100 public long getLastUpdatedInstant(DeviceId deviceId) {
101 return 0;
102 }
103
104 @Override
105 public void addListener(DeviceListener listener) {
106
107 }
108
109 @Override
110 public void removeListener(DeviceListener listener) {
111
112 }
113}