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