Committed by
Thomas Vachuska
[ONOS-3163] Test stub on VtnRscManager
Change-Id: I424a918f4633a4f45baf2f26f3887e381ec4fd24
Showing
1 changed file
with
72 additions
and
0 deletions
| 1 | +/* | ||
| 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 | + */ | ||
| 16 | +package org.onosproject.sfc.util; | ||
| 17 | + | ||
| 18 | +import java.util.Iterator; | ||
| 19 | + | ||
| 20 | +import org.onlab.packet.MacAddress; | ||
| 21 | +import org.onosproject.net.Device; | ||
| 22 | +import org.onosproject.net.DeviceId; | ||
| 23 | +import org.onosproject.net.HostId; | ||
| 24 | +import org.onosproject.vtnrsc.SegmentationId; | ||
| 25 | +import org.onosproject.vtnrsc.TenantId; | ||
| 26 | +import org.onosproject.vtnrsc.VirtualPortId; | ||
| 27 | +import org.onosproject.vtnrsc.event.VtnRscListener; | ||
| 28 | +import org.onosproject.vtnrsc.service.VtnRscService; | ||
| 29 | + | ||
| 30 | +/** | ||
| 31 | + * Provides implementation of the VtnRsc service. | ||
| 32 | + */ | ||
| 33 | +public 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 | +} |
-
Please register or login to post a comment