Jian Li | 3e70d8a | 2018-03-28 13:56:41 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-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 | package org.onosproject.openstacknetworking.impl; |
| 17 | |
| 18 | import com.google.common.collect.ImmutableSet; |
| 19 | import org.onlab.packet.IpAddress; |
| 20 | import org.onlab.packet.MacAddress; |
| 21 | import org.onosproject.openstacknetworking.api.InstancePort; |
| 22 | import org.onosproject.openstacknetworking.api.InstancePortListener; |
| 23 | import org.onosproject.openstacknetworking.api.InstancePortService; |
| 24 | |
| 25 | import java.util.Set; |
| 26 | |
| 27 | /** |
| 28 | * Test adapter for instance port service. |
| 29 | */ |
| 30 | public class InstancePortServiceAdapter implements InstancePortService { |
| 31 | @Override |
| 32 | public InstancePort instancePort(MacAddress macAddress) { |
| 33 | return null; |
| 34 | } |
| 35 | |
| 36 | @Override |
| 37 | public InstancePort instancePort(IpAddress ipAddress, String osNetId) { |
| 38 | return null; |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | public InstancePort instancePort(String osPortId) { |
| 43 | return null; |
| 44 | } |
| 45 | |
| 46 | @Override |
| 47 | public Set<InstancePort> instancePorts() { |
| 48 | return ImmutableSet.of(); |
| 49 | } |
| 50 | |
| 51 | @Override |
| 52 | public Set<InstancePort> instancePorts(String osNetId) { |
| 53 | return ImmutableSet.of(); |
| 54 | } |
| 55 | |
| 56 | @Override |
| 57 | public void addListener(InstancePortListener listener) { |
| 58 | |
| 59 | } |
| 60 | |
| 61 | @Override |
| 62 | public void removeListener(InstancePortListener listener) { |
| 63 | |
| 64 | } |
| 65 | } |