blob: b0efdfacb4d67f15ef7d4537142ad45caf2c496d [file] [log] [blame]
Jian Li3e70d8a2018-03-28 13:56:41 +09001/*
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 */
16package org.onosproject.openstacknetworking.impl;
17
18import com.google.common.collect.ImmutableSet;
19import org.onlab.packet.IpAddress;
20import org.onlab.packet.MacAddress;
21import org.onosproject.openstacknetworking.api.InstancePort;
22import org.onosproject.openstacknetworking.api.InstancePortListener;
23import org.onosproject.openstacknetworking.api.InstancePortService;
24
25import java.util.Set;
26
27/**
28 * Test adapter for instance port service.
29 */
30public 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
Jian Lic38e9032018-08-09 17:08:38 +090057 public IpAddress floatingIp(String osPortId) {
58 return null;
59 }
60
61 @Override
Jian Li3e70d8a2018-03-28 13:56:41 +090062 public void addListener(InstancePortListener listener) {
63
64 }
65
66 @Override
67 public void removeListener(InstancePortListener listener) {
68
69 }
70}