blob: a0244cb086630955b7b4e468610ea2f34b01ffd8 [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 /**
28 * Create a tunnel.
29 *
30 * @param tunnel tunnel entity
31 */
32 void createTunnel(TunnelDescription tunnel);
33
34 /**
35 * Remove a tunnel.
36 *
37 * @param tunnel tunnel entity
38 */
39 void removeTunnel(TunnelDescription tunnel);
40
41 /**
42 * Update a tunnel.
43 *
44 * @param tunnel tunnel entity
45 */
46 void updateTunnel(TunnelDescription tunnel);
47
48 /**
49 * Gets tunnels.
50 *
51 * return collection of tunnel
52 */
53 Collection<TunnelDescription> getTunnels();
54
55}