blob: 7e79a57e033da4f2fcafedc4e6ce60ffcd83debe [file] [log] [blame]
samuel8d6b0a92015-07-11 13:22:57 +08001/*
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.behaviour;
17
18import java.util.Collection;
19
20import org.onosproject.net.driver.HandlerBehaviour;
21
22/**
23 * Behaviour for handling various drivers for tunnel configuration.
24 */
25public interface TunnelConfig extends HandlerBehaviour {
26
27 /**
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070028 * Creates a tunnel on this device.
samuel8d6b0a92015-07-11 13:22:57 +080029 *
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070030 * @param tunnel tunnel descriptor
samuel8d6b0a92015-07-11 13:22:57 +080031 */
32 void createTunnel(TunnelDescription tunnel);
33
34 /**
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070035 * Removes a tunnel on this device.
samuel8d6b0a92015-07-11 13:22:57 +080036 *
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070037 * @param tunnel tunnel descriptor
samuel8d6b0a92015-07-11 13:22:57 +080038 */
39 void removeTunnel(TunnelDescription tunnel);
40
41 /**
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070042 * Updates a tunnel on this device.
samuel8d6b0a92015-07-11 13:22:57 +080043 *
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070044 * @param tunnel tunnel descriptor
samuel8d6b0a92015-07-11 13:22:57 +080045 */
46 void updateTunnel(TunnelDescription tunnel);
47
48 /**
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070049 * Returns tunnels created on this device.
samuel8d6b0a92015-07-11 13:22:57 +080050 *
Thomas Vachuskad894b5d2015-07-30 11:59:07 -070051 * @return collection of tunnels
samuel8d6b0a92015-07-11 13:22:57 +080052 */
53 Collection<TunnelDescription> getTunnels();
54
55}