Jonathan Hart | b14221c | 2016-03-07 09:55:50 -0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Jonathan Hart | b14221c | 2016-03-07 09:55:50 -0800 | [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 | |
Ray Milkey | facf286 | 2017-08-03 11:58:29 -0700 | [diff] [blame] | 17 | package org.onosproject.net.intf; |
Jonathan Hart | b14221c | 2016-03-07 09:55:50 -0800 | [diff] [blame] | 18 | |
| 19 | import org.onlab.packet.IpAddress; |
| 20 | import org.onlab.packet.VlanId; |
| 21 | import org.onosproject.net.ConnectPoint; |
| 22 | |
| 23 | import java.util.Set; |
| 24 | |
| 25 | /** |
| 26 | * Interface service adapter class for tests. |
| 27 | */ |
| 28 | public class InterfaceServiceAdapter implements InterfaceService { |
| 29 | @Override |
| 30 | public Set<Interface> getInterfaces() { |
| 31 | return null; |
| 32 | } |
| 33 | |
| 34 | @Override |
| 35 | public Interface getInterfaceByName(ConnectPoint connectPoint, String name) { |
| 36 | return null; |
| 37 | } |
| 38 | |
| 39 | @Override |
| 40 | public Set<Interface> getInterfacesByPort(ConnectPoint port) { |
| 41 | return null; |
| 42 | } |
| 43 | |
| 44 | @Override |
| 45 | public Set<Interface> getInterfacesByIp(IpAddress ip) { |
| 46 | return null; |
| 47 | } |
| 48 | |
| 49 | @Override |
| 50 | public Set<Interface> getInterfacesByVlan(VlanId vlan) { |
| 51 | return null; |
| 52 | } |
| 53 | |
| 54 | @Override |
| 55 | public Interface getMatchingInterface(IpAddress ip) { |
| 56 | return null; |
| 57 | } |
| 58 | |
| 59 | @Override |
Charles Chan | b3b09cd | 2017-03-14 12:53:46 -0700 | [diff] [blame] | 60 | public Set<Interface> getMatchingInterfaces(IpAddress ip) { |
| 61 | return null; |
| 62 | } |
| 63 | |
| 64 | @Override |
Jonathan Hart | b14221c | 2016-03-07 09:55:50 -0800 | [diff] [blame] | 65 | public void addListener(InterfaceListener listener) { |
| 66 | |
| 67 | } |
| 68 | |
| 69 | @Override |
| 70 | public void removeListener(InterfaceListener listener) { |
| 71 | |
| 72 | } |
Saurav Das | 9a55429 | 2018-04-27 18:42:30 -0700 | [diff] [blame] | 73 | |
| 74 | @Override |
| 75 | public boolean isConfigured(ConnectPoint connectPoint) { |
| 76 | return false; |
| 77 | } |
Jonathan Hart | b14221c | 2016-03-07 09:55:50 -0800 | [diff] [blame] | 78 | } |