blob: 48420987424592ecb942afc0806a041cb75f01d2 [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
18import org.onosproject.net.provider.ProviderService;
19
20/**
21 * APIs for tunnel provider to notify the tunnel subSystem.
22 */
23public interface TunnelProviderService extends ProviderService<TunnelProvider> {
24
25 /**
26 * Signals that the provider has added a tunnel.
27 *
28 * @param tunnel tunnel information
29 */
30 void tunnelAdded(TunnelDescription tunnel);
31
32 /**
33 * Signals that the provider has removed a tunnel.
34 *
35 * @param tunnel tunnel information
36 */
37 void tunnelRemoved(TunnelDescription tunnel);
38
39 /**
40 * Signals that the a tunnel was changed (e.g., sensing changes of tunnel).
41 *
42 * @param tunnel tunnel information
43 */
44 void tunnelUpdated(TunnelDescription tunnel);
45
46}