blob: a3b96be36d4e30ca669879b16c0e09a5881285f2 [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;
Jian Li4b5048a2020-10-08 02:57:45 +090019import org.onlab.packet.IpAddress;
Jian Li3e70d8a2018-03-28 13:56:41 +090020import org.onosproject.net.DeviceId;
21import org.onosproject.openstacknode.api.OpenstackNode;
22import org.onosproject.openstacknode.api.OpenstackNodeListener;
23import org.onosproject.openstacknode.api.OpenstackNodeService;
24
25import java.util.Set;
26
27/**
28 * Test adapter for OpenstackNodeService.
29 */
30public class OpenstackNodeServiceAdapter implements OpenstackNodeService {
31 @Override
32 public Set<OpenstackNode> nodes() {
33 return ImmutableSet.of();
34 }
35
36 @Override
37 public Set<OpenstackNode> nodes(OpenstackNode.NodeType type) {
38 return ImmutableSet.of();
39 }
40
41 @Override
42 public Set<OpenstackNode> completeNodes() {
43 return ImmutableSet.of();
44 }
45
46 @Override
47 public Set<OpenstackNode> completeNodes(OpenstackNode.NodeType type) {
48 return ImmutableSet.of();
49 }
50
51 @Override
52 public OpenstackNode node(String hostname) {
53 return null;
54 }
55
56 @Override
57 public OpenstackNode node(DeviceId deviceId) {
58 return null;
59 }
60
61 @Override
Jian Li4b5048a2020-10-08 02:57:45 +090062 public OpenstackNode node(IpAddress mgmtIp) {
63 return null;
64 }
65
66 @Override
Daniel Parkc4d06402018-05-28 15:57:37 +090067 public void addVfPort(OpenstackNode osNode, String portName) {
68 }
69
70 @Override
71 public void removeVfPort(OpenstackNode osNode, String portName) {
72 }
73
74
75 @Override
Jian Li3e70d8a2018-03-28 13:56:41 +090076 public void addListener(OpenstackNodeListener listener) {
77
78 }
79
80 @Override
81 public void removeListener(OpenstackNodeListener listener) {
82
83 }
84}