blob: d140600beaff4e395221e2a34921c5342947ca70 [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 */
16package org.onosproject.net.tunnel;
17
wei wei89ddc322015-03-22 16:29:04 -050018import org.onosproject.net.Path;
jcc4a20a5f2015-04-30 15:43:39 +080019import org.onosproject.net.provider.ProviderId;
wei wei89ddc322015-03-22 16:29:04 -050020
21/**
22 * Service for administering the inventory of provisioned tunnels.
23 */
24public interface TunnelAdminService {
25
26 /**
27 * Removes the provisioned tunnel.
28 *
29 * @param tunnelId tunnel ID
30 */
31 void removeTunnel(TunnelId tunnelId);
32
33 /**
34 * Removes the provisioned tunnel leading to and from the
35 * specified labels.
36 *
37 * @param src source label
38 * @param dst destination label
jcc4a20a5f2015-04-30 15:43:39 +080039 * @param producerName producer name
wei wei89ddc322015-03-22 16:29:04 -050040 */
jcc4a20a5f2015-04-30 15:43:39 +080041 void removeTunnels(TunnelEndPoint src, TunnelEndPoint dst, ProviderId producerName);
wei wei89ddc322015-03-22 16:29:04 -050042
43 /**
44 * Removes all provisioned tunnels leading to and from the
45 * specified connection point.
46 *
47 * @param src source connection point
48 * @param dst destination connection point
49 * @param type tunnel type
jcc4a20a5f2015-04-30 15:43:39 +080050 * @param producerName producer name
wei wei89ddc322015-03-22 16:29:04 -050051 */
jcc4a20a5f2015-04-30 15:43:39 +080052 void removeTunnels(TunnelEndPoint src, TunnelEndPoint dst, Tunnel.Type type, ProviderId producerName);
wei wei89ddc322015-03-22 16:29:04 -050053
54 /**
55 * Invokes the core to update a tunnel based on specified tunnel parameters.
56 *
57 * @param tunnel Tunnel
58 * @param path explicit route (path changed) or null (path not changed) for the tunnel
59 */
60 void updateTunnel(Tunnel tunnel, Path path);
61
62}