Mahesh Poojary Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Foundation |
Mahesh Poojary Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 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; |
lishuai | b43dbf7 | 2016-01-06 11:11:35 +0800 | [diff] [blame] | 23 | import org.onosproject.net.Host; |
Mahesh Poojary Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 24 | import org.onosproject.net.HostId; |
| 25 | import org.onosproject.vtnrsc.SegmentationId; |
| 26 | import org.onosproject.vtnrsc.TenantId; |
lishuai | 8798bbe | 2016-05-05 16:02:03 +0800 | [diff] [blame] | 27 | import org.onosproject.vtnrsc.TenantRouter; |
Mahesh Poojary Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 28 | import org.onosproject.vtnrsc.VirtualPortId; |
| 29 | import org.onosproject.vtnrsc.event.VtnRscListener; |
| 30 | import org.onosproject.vtnrsc.service.VtnRscService; |
| 31 | |
| 32 | /** |
| 33 | * Provides implementation of the VtnRsc service. |
| 34 | */ |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 35 | public class VtnRscAdapter implements VtnRscService { |
Mahesh Poojary Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 36 | @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 Hart | 51539b8 | 2015-10-29 09:53:04 -0700 | [diff] [blame] | 55 | public Iterator<Device> getSffOfTenant(TenantId tenantId) { |
Mahesh Poojary Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 56 | 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 Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 66 | return false; |
| 67 | } |
| 68 | |
| 69 | @Override |
Jonathan Hart | 51539b8 | 2015-10-29 09:53:04 -0700 | [diff] [blame] | 70 | public DeviceId getSfToSffMaping(VirtualPortId portId) { |
Phaneendra Manda | 0f21ad6 | 2016-02-12 19:32:13 +0530 | [diff] [blame] | 71 | return DeviceId.deviceId("of:000000000000001"); |
Mahesh Poojary Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 72 | } |
lishuai | b43dbf7 | 2016-01-06 11:11:35 +0800 | [diff] [blame] | 73 | |
| 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 | } |
lishuai | 8798bbe | 2016-05-05 16:02:03 +0800 | [diff] [blame] | 83 | |
| 84 | @Override |
| 85 | public SegmentationId getL3vni(TenantRouter tenantRouter) { |
| 86 | return null; |
| 87 | } |
Mahesh Poojary Huawei | 9bc8693 | 2015-12-04 02:38:26 +0530 | [diff] [blame] | 88 | } |