blob: 696061c0af9c641288af4e18e99ed609b3ea0e49 [file] [log] [blame]
samuel8d6b0a92015-07-11 13:22:57 +08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
samuel8d6b0a92015-07-11 13:22:57 +08003 *
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.behaviour;
17
18import java.util.Collection;
19
20import org.onosproject.net.driver.HandlerBehaviour;
21
22/**
23 * Behaviour for handling various drivers for tunnel configuration.
Hyunsun Moondd14e8e2016-06-09 16:17:32 -070024 *
25 * @deprecated version 1.7.0 - Hummingbird; use interface config tunnel mode
samuel8d6b0a92015-07-11 13:22:57 +080026 */
Hyunsun Moondd14e8e2016-06-09 16:17:32 -070027@Deprecated
samuel8d6b0a92015-07-11 13:22:57 +080028public interface TunnelConfig extends HandlerBehaviour {
29
30 /**
Hyunsun Moonaab8c672015-10-27 19:42:12 -070031 * Creates a tunnel interface on a given bridge of this device.
32 *
33 * @param bridgeName bridge name
34 * @param tunnel tunnel description
35 * @return true if succeeds, false otherwise
36 */
37 boolean createTunnelInterface(BridgeName bridgeName, TunnelDescription tunnel);
38
39 /**
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070040 * Removes a tunnel on this device.
samuel8d6b0a92015-07-11 13:22:57 +080041 *
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070042 * @param tunnel tunnel descriptor
samuel8d6b0a92015-07-11 13:22:57 +080043 */
44 void removeTunnel(TunnelDescription tunnel);
45
46 /**
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070047 * Updates a tunnel on this device.
samuel8d6b0a92015-07-11 13:22:57 +080048 *
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070049 * @param tunnel tunnel descriptor
samuel8d6b0a92015-07-11 13:22:57 +080050 */
51 void updateTunnel(TunnelDescription tunnel);
52
53 /**
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070054 * Returns tunnels created on this device.
samuel8d6b0a92015-07-11 13:22:57 +080055 *
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070056 * @return collection of tunnels
samuel8d6b0a92015-07-11 13:22:57 +080057 */
58 Collection<TunnelDescription> getTunnels();
59
60}