Brian O'Connor | 7cbbbb7 | 2016-04-09 02:13:23 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015-present 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 | 3d62fd7 | 2015-09-25 14:58:13 -0700 | [diff] [blame] | 16 | package org.onosproject.incubator.net.virtual; |
| 17 | |
Brian Stanke | 612cebf | 2016-05-02 10:21:33 -0400 | [diff] [blame] | 18 | import org.onosproject.incubator.net.tunnel.TunnelId; |
Brian Stanke | 4d57988 | 2016-04-22 13:28:46 -0400 | [diff] [blame] | 19 | import org.onosproject.net.ConnectPoint; |
Thomas Vachuska | 3d62fd7 | 2015-09-25 14:58:13 -0700 | [diff] [blame] | 20 | import org.onosproject.net.provider.ProviderService; |
| 21 | |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 22 | import java.util.Set; |
| 23 | |
Thomas Vachuska | 3d62fd7 | 2015-09-25 14:58:13 -0700 | [diff] [blame] | 24 | /** |
| 25 | * Service through which virtual network providers can inject information into |
| 26 | * the core. |
| 27 | */ |
| 28 | public interface VirtualNetworkProviderService extends ProviderService<VirtualNetworkProvider> { |
Brian Stanke | 4d57988 | 2016-04-22 13:28:46 -0400 | [diff] [blame] | 29 | |
| 30 | /** |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 31 | * Set of separate topology clusters expressed in terms of connect points which |
| 32 | * belong to the same SCC of the underlying topology. |
| 33 | * |
| 34 | * @param clusters set of sets of mutually reachable connection points; |
| 35 | * the outer sets are not mutually reachable |
| 36 | */ |
| 37 | void topologyChanged(Set<Set<ConnectPoint>> clusters); |
| 38 | |
| 39 | // TBD: Is the above sufficient to determine health/viability of virtual entities based on |
| 40 | // clustering (SCC) of the physical ones? |
| 41 | |
| 42 | /** |
Brian Stanke | 4d57988 | 2016-04-22 13:28:46 -0400 | [diff] [blame] | 43 | * This method is used to notify the VirtualNetwork service that a tunnel is now ACTIVE. |
| 44 | * |
| 45 | * @param networkId network identifier |
| 46 | * @param src source connection point |
| 47 | * @param dst destination connection point |
Brian Stanke | 612cebf | 2016-05-02 10:21:33 -0400 | [diff] [blame] | 48 | * @param tunnelId tunnel identifier |
Brian Stanke | 4d57988 | 2016-04-22 13:28:46 -0400 | [diff] [blame] | 49 | */ |
Brian Stanke | 612cebf | 2016-05-02 10:21:33 -0400 | [diff] [blame] | 50 | void tunnelUp(NetworkId networkId, ConnectPoint src, ConnectPoint dst, TunnelId tunnelId); |
Brian Stanke | 4d57988 | 2016-04-22 13:28:46 -0400 | [diff] [blame] | 51 | |
| 52 | /** |
| 53 | * This method is used to notify the VirtualNetwork service that a tunnel is now |
| 54 | * FAILED or INACTIVE. |
| 55 | * |
| 56 | * @param networkId network identifier |
| 57 | * @param src source connection point |
| 58 | * @param dst destination connection point |
Brian Stanke | 612cebf | 2016-05-02 10:21:33 -0400 | [diff] [blame] | 59 | * @param tunnelId tunnel identifier |
Brian Stanke | 4d57988 | 2016-04-22 13:28:46 -0400 | [diff] [blame] | 60 | */ |
Brian Stanke | 612cebf | 2016-05-02 10:21:33 -0400 | [diff] [blame] | 61 | void tunnelDown(NetworkId networkId, ConnectPoint src, ConnectPoint dst, TunnelId tunnelId); |
Brian Stanke | 4d57988 | 2016-04-22 13:28:46 -0400 | [diff] [blame] | 62 | |
Thomas Vachuska | 3d62fd7 | 2015-09-25 14:58:13 -0700 | [diff] [blame] | 63 | } |