blob: 62a4cee95430ae8fdaed6268d0cac4068f793d9b [file] [log] [blame]
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +05301/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +05303 *
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;
lishuai8798bbe2016-05-05 16:02:03 +080027import org.onosproject.vtnrsc.TenantRouter;
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053028import org.onosproject.vtnrsc.VirtualPortId;
29import org.onosproject.vtnrsc.event.VtnRscListener;
30import org.onosproject.vtnrsc.service.VtnRscService;
31
32/**
33 * Provides implementation of the VtnRsc service.
34 */
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053035public class VtnRscAdapter implements VtnRscService {
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053036 @Override
37 public void addListener(VtnRscListener listener) {
38 }
39
40 @Override
41 public void removeListener(VtnRscListener listener) {
42 }
43
44 @Override
45 public SegmentationId getL3vni(TenantId tenantId) {
46 return null;
47 }
48
49 @Override
50 public Iterator<Device> getClassifierOfTenant(TenantId tenantId) {
51 return null;
52 }
53
54 @Override
Jonathan Hart51539b82015-10-29 09:53:04 -070055 public Iterator<Device> getSffOfTenant(TenantId tenantId) {
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053056 return null;
57 }
58
59 @Override
60 public MacAddress getGatewayMac(HostId hostId) {
61 return null;
62 }
63
64 @Override
65 public boolean isServiceFunction(VirtualPortId portId) {
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053066 return false;
67 }
68
69 @Override
Jonathan Hart51539b82015-10-29 09:53:04 -070070 public DeviceId getSfToSffMaping(VirtualPortId portId) {
Phaneendra Manda0f21ad62016-02-12 19:32:13 +053071 return DeviceId.deviceId("of:000000000000001");
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053072 }
lishuaib43dbf72016-01-06 11:11:35 +080073
74 @Override
75 public void addDeviceIdOfOvsMap(VirtualPortId virtualPortId,
76 TenantId tenantId, DeviceId deviceId) {
77 }
78
79 @Override
80 public void removeDeviceIdOfOvsMap(Host host, TenantId tenantId,
81 DeviceId deviceId) {
82 }
lishuai8798bbe2016-05-05 16:02:03 +080083
84 @Override
85 public SegmentationId getL3vni(TenantRouter tenantRouter) {
86 return null;
87 }
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053088}