Yoonseon Han | ffcc32f | 2017-05-03 14:42:17 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2017-present Open Networking Foundation |
Yoonseon Han | ffcc32f | 2017-05-03 14:42:17 -0700 | [diff] [blame] | 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 | |
| 17 | package org.onosproject.incubator.net.virtual; |
| 18 | |
| 19 | import org.onlab.packet.IpAddress; |
| 20 | import org.onlab.packet.MacAddress; |
| 21 | import org.onlab.packet.VlanId; |
| 22 | import org.onosproject.net.ConnectPoint; |
| 23 | import org.onosproject.net.DeviceId; |
| 24 | import org.onosproject.net.HostId; |
| 25 | import org.onosproject.net.HostLocation; |
| 26 | import org.onosproject.net.PortNumber; |
| 27 | |
| 28 | import java.util.Set; |
| 29 | |
| 30 | /** |
| 31 | * Test adapter for virtual network admin service. |
| 32 | */ |
| 33 | public 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 Chiu | 579969d | 2017-10-06 14:32:18 -0400 | [diff] [blame^] | 107 | public void updatePortState(NetworkId networkId, DeviceId deviceId, PortNumber portNumber, boolean isEnabled) { |
| 108 | |
| 109 | } |
| 110 | |
| 111 | @Override |
Yoonseon Han | ffcc32f | 2017-05-03 14:42:17 -0700 | [diff] [blame] | 112 | public void removeVirtualPort(NetworkId networkId, DeviceId deviceId, PortNumber portNumber) { |
| 113 | |
| 114 | } |
| 115 | } |