blob: 1179dc0b1f1caf14e6e062f60a15821a93b82f2e [file] [log] [blame]
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +05301/*
2 * Copyright 2015 Open Networking Laboratory
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.sfc.util;
17
18import java.util.Iterator;
19
20import org.onlab.packet.MacAddress;
21import org.onosproject.net.Device;
22import org.onosproject.net.DeviceId;
lishuaib43dbf72016-01-06 11:11:35 +080023import org.onosproject.net.Host;
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053024import org.onosproject.net.HostId;
25import org.onosproject.vtnrsc.SegmentationId;
26import org.onosproject.vtnrsc.TenantId;
27import org.onosproject.vtnrsc.VirtualPortId;
28import org.onosproject.vtnrsc.event.VtnRscListener;
29import org.onosproject.vtnrsc.service.VtnRscService;
30
31/**
32 * Provides implementation of the VtnRsc service.
33 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053034public class VtnRscAdapter implements VtnRscService {
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053035 @Override
36 public void addListener(VtnRscListener listener) {
37 }
38
39 @Override
40 public void removeListener(VtnRscListener listener) {
41 }
42
43 @Override
44 public SegmentationId getL3vni(TenantId tenantId) {
45 return null;
46 }
47
48 @Override
49 public Iterator<Device> getClassifierOfTenant(TenantId tenantId) {
50 return null;
51 }
52
53 @Override
Jonathan Hart51539b82015-10-29 09:53:04 -070054 public Iterator<Device> getSffOfTenant(TenantId tenantId) {
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053055 return null;
56 }
57
58 @Override
59 public MacAddress getGatewayMac(HostId hostId) {
60 return null;
61 }
62
63 @Override
64 public boolean isServiceFunction(VirtualPortId portId) {
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053065 return false;
66 }
67
68 @Override
Jonathan Hart51539b82015-10-29 09:53:04 -070069 public DeviceId getSfToSffMaping(VirtualPortId portId) {
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053070 return DeviceId.deviceId("of:000000000000001");
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053071 }
lishuaib43dbf72016-01-06 11:11:35 +080072
73 @Override
74 public void addDeviceIdOfOvsMap(VirtualPortId virtualPortId,
75 TenantId tenantId, DeviceId deviceId) {
76 }
77
78 @Override
79 public void removeDeviceIdOfOvsMap(Host host, TenantId tenantId,
80 DeviceId deviceId) {
81 }
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053082}