blob: 8e3150872f05752daff3db1ab2561827d7aa903b [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Thomas Vachuska58de4162015-09-10 16:15:33 -07003 *
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 */
chengfan2fff70f2015-08-24 18:20:19 -050016package org.onosproject.provider.pcep.tunnel.impl;
17
18import org.onosproject.core.ApplicationId;
19import org.onosproject.incubator.net.tunnel.Tunnel;
20import org.onosproject.incubator.net.tunnel.TunnelEndPoint;
21import org.onosproject.incubator.net.tunnel.TunnelId;
22import org.onosproject.incubator.net.tunnel.TunnelListener;
23import org.onosproject.incubator.net.tunnel.TunnelName;
24import org.onosproject.incubator.net.tunnel.TunnelService;
25import org.onosproject.incubator.net.tunnel.TunnelSubscription;
26import org.onosproject.net.Annotations;
27import org.onosproject.net.DeviceId;
Avantika-Huaweie10a6e92016-04-06 21:06:41 +053028import org.onosproject.net.ElementId;
chengfan2fff70f2015-08-24 18:20:19 -050029
30import java.util.Collection;
31import java.util.Collections;
Avantika-Huaweie10a6e92016-04-06 21:06:41 +053032import org.onosproject.net.Path;
chengfan2fff70f2015-08-24 18:20:19 -050033
34public 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-Huaweie10a6e92016-04-06 21:06:41 +053059 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
chengfan2fff70f2015-08-24 18:20:19 -050069 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) {
Avantika-Huawei56c11842016-04-28 00:56:56 +053097 return Collections.emptySet();
chengfan2fff70f2015-08-24 18:20:19 -050098 }
99
100 @Override
101 public Collection<Tunnel> queryTunnel(Tunnel.Type type) {
Avantika-Huawei56c11842016-04-28 00:56:56 +0530102 return Collections.emptySet();
chengfan2fff70f2015-08-24 18:20:19 -0500103 }
104
105 @Override
106 public Collection<Tunnel> queryTunnel(TunnelEndPoint src, TunnelEndPoint dst) {
Avantika-Huawei56c11842016-04-28 00:56:56 +0530107 return Collections.emptySet();
chengfan2fff70f2015-08-24 18:20:19 -0500108 }
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}