blob: 5d63c7dee7abceb241922f53be12bfceec8848ba [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 Stanke612cebf2016-05-02 10:21:33 -040018import org.onosproject.incubator.net.tunnel.TunnelId;
Brian Stanke4d579882016-04-22 13:28:46 -040019import org.onosproject.net.ConnectPoint;
Thomas Vachuska3d62fd72015-09-25 14:58:13 -070020import org.onosproject.net.provider.ProviderService;
21
22/**
23 * Service through which virtual network providers can inject information into
24 * the core.
25 */
26public interface VirtualNetworkProviderService extends ProviderService<VirtualNetworkProvider> {
Brian Stanke4d579882016-04-22 13:28:46 -040027
28 /**
29 * This method is used to notify the VirtualNetwork service that a tunnel is now ACTIVE.
30 *
31 * @param networkId network identifier
32 * @param src source connection point
33 * @param dst destination connection point
Brian Stanke612cebf2016-05-02 10:21:33 -040034 * @param tunnelId tunnel identifier
Brian Stanke4d579882016-04-22 13:28:46 -040035 */
Brian Stanke612cebf2016-05-02 10:21:33 -040036 void tunnelUp(NetworkId networkId, ConnectPoint src, ConnectPoint dst, TunnelId tunnelId);
Brian Stanke4d579882016-04-22 13:28:46 -040037
38 /**
39 * This method is used to notify the VirtualNetwork service that a tunnel is now
40 * FAILED or INACTIVE.
41 *
42 * @param networkId network identifier
43 * @param src source connection point
44 * @param dst destination connection point
Brian Stanke612cebf2016-05-02 10:21:33 -040045 * @param tunnelId tunnel identifier
Brian Stanke4d579882016-04-22 13:28:46 -040046 */
Brian Stanke612cebf2016-05-02 10:21:33 -040047 void tunnelDown(NetworkId networkId, ConnectPoint src, ConnectPoint dst, TunnelId tunnelId);
Brian Stanke4d579882016-04-22 13:28:46 -040048
Thomas Vachuska3d62fd72015-09-25 14:58:13 -070049}