blob: b5f1673449ab2329b6adfe7fb00098fd8a7a499c [file] [log] [blame]
Jonathan Hartb14221c2016-03-07 09:55:50 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Jonathan Hartb14221c2016-03-07 09:55:50 -08003 *
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 Milkeyfacf2862017-08-03 11:58:29 -070017package org.onosproject.net.intf;
Jonathan Hartb14221c2016-03-07 09:55:50 -080018
19import org.onlab.packet.IpAddress;
20import org.onlab.packet.VlanId;
21import org.onosproject.net.ConnectPoint;
22
23import java.util.Set;
24
25/**
26 * Interface service adapter class for tests.
27 */
28public 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 Chanb3b09cd2017-03-14 12:53:46 -070060 public Set<Interface> getMatchingInterfaces(IpAddress ip) {
61 return null;
62 }
63
64 @Override
Jonathan Hartb14221c2016-03-07 09:55:50 -080065 public void addListener(InterfaceListener listener) {
66
67 }
68
69 @Override
70 public void removeListener(InterfaceListener listener) {
71
72 }
Saurav Das9a554292018-04-27 18:42:30 -070073
74 @Override
75 public boolean isConfigured(ConnectPoint connectPoint) {
76 return false;
77 }
Jonathan Hartb14221c2016-03-07 09:55:50 -080078}