wei wei | 89ddc32 | 2015-03-22 16:29:04 -0500 | [diff] [blame] | 1 | /* |
| 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 | */ |
Thomas Vachuska | bf916ea | 2015-05-20 18:24:34 -0700 | [diff] [blame] | 16 | |
| 17 | package org.onosproject.incubator.net.tunnel; |
wei wei | 89ddc32 | 2015-03-22 16:29:04 -0500 | [diff] [blame] | 18 | |
Brian O'Connor | 2bed5ce | 2015-06-25 15:10:28 -0400 | [diff] [blame] | 19 | import com.google.common.annotations.Beta; |
wei wei | 89ddc32 | 2015-03-22 16:29:04 -0500 | [diff] [blame] | 20 | import org.onosproject.net.provider.ProviderService; |
| 21 | |
| 22 | /** |
| 23 | * APIs for tunnel provider to notify the tunnel subSystem. |
| 24 | */ |
Brian O'Connor | 2bed5ce | 2015-06-25 15:10:28 -0400 | [diff] [blame] | 25 | @Beta |
wei wei | 89ddc32 | 2015-03-22 16:29:04 -0500 | [diff] [blame] | 26 | public interface TunnelProviderService extends ProviderService<TunnelProvider> { |
| 27 | |
| 28 | /** |
| 29 | * Signals that the provider has added a tunnel. |
| 30 | * |
| 31 | * @param tunnel tunnel information |
jcc | 4a20a5f | 2015-04-30 15:43:39 +0800 | [diff] [blame] | 32 | * @return tunnel identity |
wei wei | 89ddc32 | 2015-03-22 16:29:04 -0500 | [diff] [blame] | 33 | */ |
jcc | 4a20a5f | 2015-04-30 15:43:39 +0800 | [diff] [blame] | 34 | TunnelId tunnelAdded(TunnelDescription tunnel); |
wei wei | 89ddc32 | 2015-03-22 16:29:04 -0500 | [diff] [blame] | 35 | |
| 36 | /** |
| 37 | * Signals that the provider has removed a tunnel. |
| 38 | * |
| 39 | * @param tunnel tunnel information |
| 40 | */ |
| 41 | void tunnelRemoved(TunnelDescription tunnel); |
| 42 | |
| 43 | /** |
| 44 | * Signals that the a tunnel was changed (e.g., sensing changes of tunnel). |
| 45 | * |
| 46 | * @param tunnel tunnel information |
| 47 | */ |
| 48 | void tunnelUpdated(TunnelDescription tunnel); |
| 49 | |
samuel | 7a5691a | 2015-05-23 00:36:32 +0800 | [diff] [blame] | 50 | /** |
| 51 | * Signals that the a tunnel was queried. |
| 52 | * |
| 53 | * @param tunnelId tunnel identity |
| 54 | * @return tunnel entity |
| 55 | */ |
| 56 | Tunnel tunnelQueryById(TunnelId tunnelId); |
| 57 | |
wei wei | 89ddc32 | 2015-03-22 16:29:04 -0500 | [diff] [blame] | 58 | } |