Thomas Vachuska | 58de416 | 2015-09-10 16:15:33 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Laboratory |
Thomas Vachuska | 58de416 | 2015-09-10 16:15:33 -0700 | [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 | */ |
chengfan | 2fff70f | 2015-08-24 18:20:19 -0500 | [diff] [blame] | 16 | package org.onosproject.provider.pcep.tunnel.impl; |
| 17 | |
| 18 | import org.onosproject.core.ApplicationId; |
| 19 | import org.onosproject.incubator.net.tunnel.Tunnel; |
| 20 | import org.onosproject.incubator.net.tunnel.TunnelEndPoint; |
| 21 | import org.onosproject.incubator.net.tunnel.TunnelId; |
| 22 | import org.onosproject.incubator.net.tunnel.TunnelListener; |
| 23 | import org.onosproject.incubator.net.tunnel.TunnelName; |
| 24 | import org.onosproject.incubator.net.tunnel.TunnelService; |
| 25 | import org.onosproject.incubator.net.tunnel.TunnelSubscription; |
| 26 | import org.onosproject.net.Annotations; |
| 27 | import org.onosproject.net.DeviceId; |
Avantika-Huawei | e10a6e9 | 2016-04-06 21:06:41 +0530 | [diff] [blame^] | 28 | import org.onosproject.net.ElementId; |
chengfan | 2fff70f | 2015-08-24 18:20:19 -0500 | [diff] [blame] | 29 | |
| 30 | import java.util.Collection; |
| 31 | import java.util.Collections; |
Avantika-Huawei | e10a6e9 | 2016-04-06 21:06:41 +0530 | [diff] [blame^] | 32 | import org.onosproject.net.Path; |
chengfan | 2fff70f | 2015-08-24 18:20:19 -0500 | [diff] [blame] | 33 | |
| 34 | public class TunnelServiceAdapter implements TunnelService { |
| 35 | @Override |
| 36 | public Tunnel borrowTunnel(ApplicationId consumerId, TunnelId tunnelId, Annotations... annotations) { |
| 37 | return null; |
| 38 | } |
| 39 | |
| 40 | @Override |
| 41 | public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelName tunnelName, |
| 42 | Annotations... annotations) { |
| 43 | return null; |
| 44 | } |
| 45 | |
| 46 | @Override |
| 47 | public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, |
| 48 | Annotations... annotations) { |
| 49 | return null; |
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public Collection<Tunnel> borrowTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, |
| 54 | Tunnel.Type type, Annotations... annotations) { |
| 55 | return null; |
| 56 | } |
| 57 | |
| 58 | @Override |
Avantika-Huawei | e10a6e9 | 2016-04-06 21:06:41 +0530 | [diff] [blame^] | 59 | public TunnelId setupTunnel(ApplicationId producerId, ElementId srcElementId, Tunnel tunnel, Path path) { |
| 60 | return null; |
| 61 | } |
| 62 | |
| 63 | @Override |
| 64 | public boolean downTunnel(ApplicationId producerId, TunnelId tunnelId) { |
| 65 | return false; |
| 66 | } |
| 67 | |
| 68 | @Override |
chengfan | 2fff70f | 2015-08-24 18:20:19 -0500 | [diff] [blame] | 69 | public boolean returnTunnel(ApplicationId consumerId, TunnelId tunnelId, Annotations... annotations) { |
| 70 | return false; |
| 71 | } |
| 72 | |
| 73 | @Override |
| 74 | public boolean returnTunnel(ApplicationId consumerId, TunnelName tunnelName, Annotations... annotations) { |
| 75 | return false; |
| 76 | } |
| 77 | |
| 78 | @Override |
| 79 | public boolean returnTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, |
| 80 | Tunnel.Type type, Annotations... annotations) { |
| 81 | return false; |
| 82 | } |
| 83 | |
| 84 | @Override |
| 85 | public boolean returnTunnel(ApplicationId consumerId, TunnelEndPoint src, TunnelEndPoint dst, |
| 86 | Annotations... annotations) { |
| 87 | return false; |
| 88 | } |
| 89 | |
| 90 | @Override |
| 91 | public Tunnel queryTunnel(TunnelId tunnelId) { |
| 92 | return null; |
| 93 | } |
| 94 | |
| 95 | @Override |
| 96 | public Collection<TunnelSubscription> queryTunnelSubscription(ApplicationId consumerId) { |
| 97 | return null; |
| 98 | } |
| 99 | |
| 100 | @Override |
| 101 | public Collection<Tunnel> queryTunnel(Tunnel.Type type) { |
| 102 | return null; |
| 103 | } |
| 104 | |
| 105 | @Override |
| 106 | public Collection<Tunnel> queryTunnel(TunnelEndPoint src, TunnelEndPoint dst) { |
| 107 | return null; |
| 108 | } |
| 109 | |
| 110 | @Override |
| 111 | public Collection<Tunnel> queryAllTunnels() { |
| 112 | return Collections.emptyList(); |
| 113 | } |
| 114 | |
| 115 | @Override |
| 116 | public int tunnelCount() { |
| 117 | return 0; |
| 118 | } |
| 119 | |
| 120 | @Override |
| 121 | public Iterable<Tunnel> getTunnels(DeviceId deviceId) { |
| 122 | return null; |
| 123 | } |
| 124 | |
| 125 | @Override |
| 126 | public void addListener(TunnelListener listener) { |
| 127 | |
| 128 | } |
| 129 | |
| 130 | @Override |
| 131 | public void removeListener(TunnelListener listener) { |
| 132 | |
| 133 | } |
| 134 | } |