blob: 3c6cf3f4b551e8d574f6324fff3a10083a1bd5bf [file] [log] [blame]
wei wei89ddc322015-03-22 16:29:04 -05001/*
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 */
Thomas Vachuskabf916ea2015-05-20 18:24:34 -070016
17package org.onosproject.incubator.net.tunnel;
wei wei89ddc322015-03-22 16:29:04 -050018
wei wei89ddc322015-03-22 16:29:04 -050019import org.onosproject.net.Path;
jcc4a20a5f2015-04-30 15:43:39 +080020import org.onosproject.net.provider.ProviderId;
wei wei89ddc322015-03-22 16:29:04 -050021
22/**
23 * Service for administering the inventory of provisioned tunnels.
24 */
25public interface TunnelAdminService {
26
27 /**
28 * Removes the provisioned tunnel.
29 *
30 * @param tunnelId tunnel ID
31 */
32 void removeTunnel(TunnelId tunnelId);
33
34 /**
35 * Removes the provisioned tunnel leading to and from the
36 * specified labels.
37 *
38 * @param src source label
39 * @param dst destination label
jcc4a20a5f2015-04-30 15:43:39 +080040 * @param producerName producer name
wei wei89ddc322015-03-22 16:29:04 -050041 */
jcc4a20a5f2015-04-30 15:43:39 +080042 void removeTunnels(TunnelEndPoint src, TunnelEndPoint dst, ProviderId producerName);
wei wei89ddc322015-03-22 16:29:04 -050043
44 /**
45 * Removes all provisioned tunnels leading to and from the
46 * specified connection point.
47 *
48 * @param src source connection point
49 * @param dst destination connection point
50 * @param type tunnel type
jcc4a20a5f2015-04-30 15:43:39 +080051 * @param producerName producer name
wei wei89ddc322015-03-22 16:29:04 -050052 */
jcc4a20a5f2015-04-30 15:43:39 +080053 void removeTunnels(TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, ProviderId producerName);
wei wei89ddc322015-03-22 16:29:04 -050054
55 /**
56 * Invokes the core to update a tunnel based on specified tunnel parameters.
57 *
58 * @param tunnel Tunnel
59 * @param path explicit route (path changed) or null (path not changed) for the tunnel
60 */
61 void updateTunnel(Tunnel tunnel, Path path);
62
63}