blob: 87125d4566e2f07ca063f2b42f220864ce805536 [file] [log] [blame]
Hyunsun Moonab2cf252015-09-10 17:54:10 -07001/*
2 * Copyright 2014-2015 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 */
16package org.onosproject.cordvtn;
17
Hyunsun Moonb77b60f2016-01-15 20:03:18 -080018import org.onosproject.net.ConnectPoint;
Hyunsun Moonab2cf252015-09-10 17:54:10 -070019
20/**
21 * Service for provisioning overlay virtual networks on compute nodes.
22 */
23public interface CordVtnService {
Hyunsun Moon2b530322015-09-23 13:24:35 -070024
25 String CORDVTN_APP_ID = "org.onosproject.cordvtn";
Hyunsun Moonb77b60f2016-01-15 20:03:18 -080026
Hyunsun Moonab2cf252015-09-10 17:54:10 -070027 /**
Hyunsun Moonb77b60f2016-01-15 20:03:18 -080028 * Adds a new VM on a given node and connect point.
Hyunsun Moonab2cf252015-09-10 17:54:10 -070029 *
Hyunsun Moon8539b042015-11-07 22:08:43 -080030 * @param node cordvtn node
Hyunsun Moonb77b60f2016-01-15 20:03:18 -080031 * @param connectPoint connect point
Hyunsun Moonab2cf252015-09-10 17:54:10 -070032 */
Hyunsun Moonb77b60f2016-01-15 20:03:18 -080033 void addServiceVm(CordVtnNode node, ConnectPoint connectPoint);
Hyunsun Moonab2cf252015-09-10 17:54:10 -070034
35 /**
Hyunsun Moonb77b60f2016-01-15 20:03:18 -080036 * Removes a VM from a given node and connect point.
Hyunsun Moonab2cf252015-09-10 17:54:10 -070037 *
Hyunsun Moonb77b60f2016-01-15 20:03:18 -080038 * @param connectPoint connect point
Hyunsun Moonab2cf252015-09-10 17:54:10 -070039 */
Hyunsun Moonb77b60f2016-01-15 20:03:18 -080040 void removeServiceVm(ConnectPoint connectPoint);
Hyunsun Moon699f46b2015-12-04 11:35:25 -080041
42 /**
Hyunsun Moonbfc47d12015-12-07 14:06:28 -080043 * Creates dependencies for a given tenant service.
Hyunsun Moon699f46b2015-12-04 11:35:25 -080044 *
Hyunsun Moonc71231d2015-12-16 20:53:23 -080045 * @param tServiceId id of the service which has a dependency
46 * @param pServiceId id of the service which provide dependency
Hyunsun Moon640f183e2016-02-10 17:02:37 -080047 * @param isBidirectional true to enable bidirectional connectivity between two services
Hyunsun Moon699f46b2015-12-04 11:35:25 -080048 */
Hyunsun Moon640f183e2016-02-10 17:02:37 -080049 void createServiceDependency(CordServiceId tServiceId,
50 CordServiceId pServiceId,
51 boolean isBidirectional);
Hyunsun Moon699f46b2015-12-04 11:35:25 -080052
53 /**
Hyunsun Moonbfc47d12015-12-07 14:06:28 -080054 * Removes all dependencies from a given tenant service.
Hyunsun Moon699f46b2015-12-04 11:35:25 -080055 *
Hyunsun Moonc71231d2015-12-16 20:53:23 -080056 * @param tServiceId id of the service which has a dependency
57 * @param pServiceId id of the service which provide dependency
Hyunsun Moon699f46b2015-12-04 11:35:25 -080058 */
Hyunsun Moonc71231d2015-12-16 20:53:23 -080059 void removeServiceDependency(CordServiceId tServiceId, CordServiceId pServiceId);
Hyunsun Moonab2cf252015-09-10 17:54:10 -070060}