blob: b5bef862cd113960ca59129cbf5a2ecfd26af1ba [file] [log] [blame]
Hyunsun Moon950f6392015-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 Mooncb799442016-01-15 20:03:18 -080018import org.onosproject.net.ConnectPoint;
Hyunsun Moon950f6392015-09-10 17:54:10 -070019
20/**
21 * Service for provisioning overlay virtual networks on compute nodes.
22 */
23public interface CordVtnService {
Hyunsun Moon9661d642015-09-23 13:24:35 -070024
25 String CORDVTN_APP_ID = "org.onosproject.cordvtn";
Hyunsun Mooncb799442016-01-15 20:03:18 -080026
Hyunsun Moon950f6392015-09-10 17:54:10 -070027 /**
Hyunsun Mooncb799442016-01-15 20:03:18 -080028 * Adds a new VM on a given node and connect point.
Hyunsun Moon950f6392015-09-10 17:54:10 -070029 *
Hyunsun Moon4edb0172015-11-07 22:08:43 -080030 * @param node cordvtn node
Hyunsun Mooncb799442016-01-15 20:03:18 -080031 * @param connectPoint connect point
Hyunsun Moon950f6392015-09-10 17:54:10 -070032 */
Hyunsun Mooncb799442016-01-15 20:03:18 -080033 void addServiceVm(CordVtnNode node, ConnectPoint connectPoint);
Hyunsun Moon950f6392015-09-10 17:54:10 -070034
35 /**
Hyunsun Mooncb799442016-01-15 20:03:18 -080036 * Removes a VM from a given node and connect point.
Hyunsun Moon950f6392015-09-10 17:54:10 -070037 *
Hyunsun Mooncb799442016-01-15 20:03:18 -080038 * @param connectPoint connect point
Hyunsun Moon950f6392015-09-10 17:54:10 -070039 */
Hyunsun Mooncb799442016-01-15 20:03:18 -080040 void removeServiceVm(ConnectPoint connectPoint);
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080041
42 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080043 * Creates dependencies for a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080044 *
Hyunsun Moonba290072015-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 Moon9274aaf2015-12-04 11:35:25 -080047 */
Hyunsun Moonba290072015-12-16 20:53:23 -080048 void createServiceDependency(CordServiceId tServiceId, CordServiceId pServiceId);
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080049
50 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080051 * Removes all dependencies from a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080052 *
Hyunsun Moonba290072015-12-16 20:53:23 -080053 * @param tServiceId id of the service which has a dependency
54 * @param pServiceId id of the service which provide dependency
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080055 */
Hyunsun Moonba290072015-12-16 20:53:23 -080056 void removeServiceDependency(CordServiceId tServiceId, CordServiceId pServiceId);
Hyunsun Moon950f6392015-09-10 17:54:10 -070057}