blob: 18f8053c67522673f5c031a0659d3189ab35f125 [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 */
34public class VtnRscManagerTestImpl implements VtnRscService {
35 @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
54 public Iterator<Device> getSFFOfTenant(TenantId tenantId) {
55 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) {
65 // TODO Auto-generated method stub
66 return false;
67 }
68
69 @Override
70 public DeviceId getSFToSFFMaping(VirtualPortId portId) {
71 return DeviceId.deviceId("www.google.com");
72 }
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 }
Mahesh Poojary Huawei9bc86932015-12-04 02:38:26 +053083}