blob: 26145cc724712a02e78a23a5af600c8090f7b751 [file] [log] [blame]
Yoonseon Hanffcc32f2017-05-03 14:42:17 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Yoonseon Hanffcc32f2017-05-03 14:42:17 -07003 *
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
17package org.onosproject.incubator.net.virtual;
18
19import org.onlab.packet.IpAddress;
20import org.onlab.packet.MacAddress;
21import org.onlab.packet.VlanId;
22import org.onosproject.net.ConnectPoint;
23import org.onosproject.net.DeviceId;
24import org.onosproject.net.HostId;
25import org.onosproject.net.HostLocation;
26import org.onosproject.net.PortNumber;
27
28import java.util.Set;
29
30/**
31 * Test adapter for virtual network admin service.
32 */
33public class VirtualNetworkAdminServiceAdapter
34 extends VirtualNetworkServiceAdapter
35 implements VirtualNetworkAdminService {
36
37 @Override
38 public void registerTenantId(TenantId tenantId) {
39
40 }
41
42 @Override
43 public void unregisterTenantId(TenantId tenantId) {
44
45 }
46
47 @Override
48 public Set<TenantId> getTenantIds() {
49 return null;
50 }
51
52 @Override
53 public VirtualNetwork createVirtualNetwork(TenantId tenantId) {
54 return null;
55 }
56
57 @Override
58 public void removeVirtualNetwork(NetworkId networkId) {
59
60 }
61
62 @Override
63 public VirtualDevice createVirtualDevice(NetworkId networkId, DeviceId deviceId) {
64 return null;
65 }
66
67 @Override
68 public void removeVirtualDevice(NetworkId networkId, DeviceId deviceId) {
69
70 }
71
72 @Override
73 public VirtualHost createVirtualHost(NetworkId networkId, HostId hostId,
74 MacAddress mac, VlanId vlan,
75 HostLocation location, Set<IpAddress> ips) {
76 return null;
77 }
78
79 @Override
80 public void removeVirtualHost(NetworkId networkId, HostId hostId) {
81
82 }
83
84 @Override
85 public VirtualLink createVirtualLink(NetworkId networkId, ConnectPoint src, ConnectPoint dst) {
86 return null;
87 }
88
89 @Override
90 public void removeVirtualLink(NetworkId networkId, ConnectPoint src, ConnectPoint dst) {
91
92 }
93
94 @Override
95 public VirtualPort createVirtualPort(NetworkId networkId, DeviceId deviceId,
96 PortNumber portNumber, ConnectPoint realizedBy) {
97 return null;
98 }
99
100 @Override
101 public void bindVirtualPort(NetworkId networkId, DeviceId deviceId,
102 PortNumber portNumber, ConnectPoint realizedBy) {
103
104 }
105
106 @Override
Claudine Chiu579969d2017-10-06 14:32:18 -0400107 public void updatePortState(NetworkId networkId, DeviceId deviceId, PortNumber portNumber, boolean isEnabled) {
108
109 }
110
111 @Override
Yoonseon Hanffcc32f2017-05-03 14:42:17 -0700112 public void removeVirtualPort(NetworkId networkId, DeviceId deviceId, PortNumber portNumber) {
113
114 }
115}