blob: 6cc4ad8f1999273b0e1e322a8a21b8b0162ff5f6 [file] [log] [blame]
Brian O'Connor7cbbbb72016-04-09 02:13:23 -07001/*
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 Vachuska3d62fd72015-09-25 14:58:13 -070016package org.onosproject.incubator.net.virtual;
17
Brian Stanke4d579882016-04-22 13:28:46 -040018import org.onosproject.net.ConnectPoint;
Thomas Vachuska3d62fd72015-09-25 14:58:13 -070019import org.onosproject.net.provider.ProviderService;
20
21/**
22 * Service through which virtual network providers can inject information into
23 * the core.
24 */
25public interface VirtualNetworkProviderService extends ProviderService<VirtualNetworkProvider> {
Brian Stanke4d579882016-04-22 13:28:46 -040026
27 /**
28 * This method is used to notify the VirtualNetwork service that a tunnel is now ACTIVE.
29 *
30 * @param networkId network identifier
31 * @param src source connection point
32 * @param dst destination connection point
33 */
34 void tunnelUp(NetworkId networkId, ConnectPoint src, ConnectPoint dst);
35
36 /**
37 * This method is used to notify the VirtualNetwork service that a tunnel is now
38 * FAILED or INACTIVE.
39 *
40 * @param networkId network identifier
41 * @param src source connection point
42 * @param dst destination connection point
43 */
44 void tunnelDown(NetworkId networkId, ConnectPoint src, ConnectPoint dst);
45
Thomas Vachuska3d62fd72015-09-25 14:58:13 -070046}