blob: 038d4b3edbf54785d4211d23d0edd36b7cdee170 [file] [log] [blame]
Brian O'Connor7cbbbb72016-04-09 02:13:23 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Brian O'Connor7cbbbb72016-04-09 02:13:23 -07003 *
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 */
yoonseon6b972c32016-12-06 16:45:03 -080016package org.onosproject.incubator.net.virtual.provider;
Thomas Vachuska3d62fd72015-09-25 14:58:13 -070017
Thomas Vachuska3d62fd72015-09-25 14:58:13 -070018import org.onosproject.net.ConnectPoint;
19import 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 */
25public interface VirtualNetworkProvider extends Provider {
26
27 /**
Brian Stankefb61df42016-07-25 11:47:51 -040028 * 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 Vachuska3d62fd72015-09-25 14:58:13 -070038}