blob: 4188cee61e39c160812670c70313a5414293ef35 [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;
23import org.onosproject.net.HostId;
24import org.onosproject.vtnrsc.SegmentationId;
25import org.onosproject.vtnrsc.TenantId;
26import org.onosproject.vtnrsc.VirtualPortId;
27import org.onosproject.vtnrsc.event.VtnRscListener;
28import org.onosproject.vtnrsc.service.VtnRscService;
29
30/**
31 * Provides implementation of the VtnRsc service.
32 */
33public class VtnRscManagerTestImpl implements VtnRscService {
34 @Override
35 public void addListener(VtnRscListener listener) {
36 }
37
38 @Override
39 public void removeListener(VtnRscListener listener) {
40 }
41
42 @Override
43 public SegmentationId getL3vni(TenantId tenantId) {
44 return null;
45 }
46
47 @Override
48 public Iterator<Device> getClassifierOfTenant(TenantId tenantId) {
49 return null;
50 }
51
52 @Override
53 public Iterator<Device> getSFFOfTenant(TenantId tenantId) {
54 return null;
55 }
56
57 @Override
58 public MacAddress getGatewayMac(HostId hostId) {
59 return null;
60 }
61
62 @Override
63 public boolean isServiceFunction(VirtualPortId portId) {
64 // TODO Auto-generated method stub
65 return false;
66 }
67
68 @Override
69 public DeviceId getSFToSFFMaping(VirtualPortId portId) {
70 return DeviceId.deviceId("www.google.com");
71 }
72}