Andrea Campanella | 7e6200a | 2016-03-21 09:48:40 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Andrea Campanella | 7e6200a | 2016-03-21 09:48:40 -0700 | [diff] [blame] | 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 | |
Yuta HIGUCHI | e3ae821 | 2017-04-20 10:18:41 -0700 | [diff] [blame] | 17 | package org.onosproject.netconf.ctl.impl; |
Andrea Campanella | 7e6200a | 2016-03-21 09:48:40 -0700 | [diff] [blame] | 18 | |
| 19 | import org.onosproject.net.Device; |
| 20 | import org.onosproject.net.DeviceId; |
| 21 | import org.onosproject.net.MastershipRole; |
| 22 | import org.onosproject.net.Port; |
| 23 | import org.onosproject.net.PortNumber; |
| 24 | import org.onosproject.net.device.DeviceListener; |
| 25 | import org.onosproject.net.device.DeviceService; |
| 26 | import org.onosproject.net.device.PortStatistics; |
| 27 | |
| 28 | import java.util.List; |
| 29 | |
| 30 | /** |
| 31 | * Mock device Service. |
| 32 | */ |
| 33 | class 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 KSP | 22774cd | 2016-08-20 20:06:30 +0530 | [diff] [blame] | 86 | 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 Campanella | 7e6200a | 2016-03-21 09:48:40 -0700 | [diff] [blame] | 96 | 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 Das | d5ec9e9 | 2017-01-17 10:40:18 -0800 | [diff] [blame] | 114 | |
| 115 | @Override |
| 116 | public String localStatus(DeviceId deviceId) { |
| 117 | return null; |
| 118 | } |
Ray Milkey | 054e23d | 2018-03-22 13:37:11 -0700 | [diff] [blame^] | 119 | |
| 120 | @Override |
| 121 | public long getLastUpdatedInstant(DeviceId deviceId) { |
| 122 | return 0; |
| 123 | } |
Andrea Campanella | 7e6200a | 2016-03-21 09:48:40 -0700 | [diff] [blame] | 124 | } |