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 | |
Thomas Vachuska | 3d62fd7 | 2015-09-25 14:58:13 -0700 | [diff] [blame] | 18 | import org.onosproject.net.ConnectPoint; |
| 19 | import org.onosproject.net.provider.Provider; |
| 20 | |
| 21 | /** |
| 22 | * Entity capable of providing traffic isolation constructs for use in |
| 23 | * implementation of virtual devices and virtual links. |
| 24 | */ |
| 25 | public interface VirtualNetworkProvider extends Provider { |
| 26 | |
| 27 | /** |
Brian Stanke | fb61df4 | 2016-07-25 11:47:51 -0400 | [diff] [blame] | 28 | * Indicates whether or not the specified connect points on the underlying |
| 29 | * network are traversable/reachable. |
| 30 | * |
| 31 | * @param src source connection point |
| 32 | * @param dst destination connection point |
| 33 | * @return true if the destination is reachable from the source |
| 34 | */ |
| 35 | boolean isTraversable(ConnectPoint src, ConnectPoint dst); |
| 36 | |
| 37 | // TODO: Further enhance this interface to support the virtual intent programming across this boundary. |
Thomas Vachuska | 3d62fd7 | 2015-09-25 14:58:13 -0700 | [diff] [blame] | 38 | } |