blob: 16d26f7edc5bc0e29bb1b6b36cb174066f224649 [file] [log] [blame]
Hyunsun Moon950f6392015-09-10 17:54:10 -07001/*
Brian O'Connor8e57fd52016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Hyunsun Moon950f6392015-09-10 17:54:10 -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 */
alshabibb4d31712016-06-01 18:51:03 -070016package org.opencord.cordvtn.api;
Hyunsun Moon950f6392015-09-10 17:54:10 -070017
Hyunsun Moon486ed1b2016-05-13 18:58:35 -070018import org.onosproject.xosclient.api.VtnServiceId;
Hyunsun Moon01556a52016-02-12 12:48:47 -080019
Hyunsun Moon950f6392015-09-10 17:54:10 -070020/**
21 * Service for provisioning overlay virtual networks on compute nodes.
22 */
23public interface CordVtnService {
Hyunsun Moon9661d642015-09-23 13:24:35 -070024
Hyunsun Moon20379372016-06-07 14:52:46 -070025 String CORDVTN_APP_ID = "org.opencord.vtn";
Hyunsun Mooncb799442016-01-15 20:03:18 -080026
Hyunsun Moon950f6392015-09-10 17:54:10 -070027 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080028 * Creates dependencies for a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080029 *
Hyunsun Moonba290072015-12-16 20:53:23 -080030 * @param tServiceId id of the service which has a dependency
31 * @param pServiceId id of the service which provide dependency
Hyunsun Moon5f7ed8a2016-02-10 17:02:37 -080032 * @param isBidirectional true to enable bidirectional connectivity between two services
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080033 */
Hyunsun Moon486ed1b2016-05-13 18:58:35 -070034 void createServiceDependency(VtnServiceId tServiceId, VtnServiceId pServiceId,
Hyunsun Moon5f7ed8a2016-02-10 17:02:37 -080035 boolean isBidirectional);
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080036
37 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080038 * Removes all dependencies from a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080039 *
Hyunsun Moonba290072015-12-16 20:53:23 -080040 * @param tServiceId id of the service which has a dependency
41 * @param pServiceId id of the service which provide dependency
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080042 */
Hyunsun Moon486ed1b2016-05-13 18:58:35 -070043 void removeServiceDependency(VtnServiceId tServiceId, VtnServiceId pServiceId);
Hyunsun Moon950f6392015-09-10 17:54:10 -070044}