blob: 3323d660a78777e6bf5fcde007e7d4fd98952511 [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 */
Hyunsun Moonfd5a24e2016-10-19 19:15:48 -070016package org.opencord.cordvtn.api.dependency;
Hyunsun Moon950f6392015-09-10 17:54:10 -070017
Hyunsun Moonfd5a24e2016-10-19 19:15:48 -070018import org.opencord.cordvtn.api.dependency.Dependency.Type;
19import org.opencord.cordvtn.api.net.NetworkId;
Hyunsun Moon01556a52016-02-12 12:48:47 -080020
Hyunsun Moon950f6392015-09-10 17:54:10 -070021/**
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070022 * Provides dependency services.
Hyunsun Moon950f6392015-09-10 17:54:10 -070023 */
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070024public interface DependencyService {
Hyunsun Mooncb799442016-01-15 20:03:18 -080025
Hyunsun Moon950f6392015-09-10 17:54:10 -070026 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080027 * Creates dependencies for a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080028 *
Hyunsun Mooneaf75e62016-09-27 16:40:23 -070029 * @param subscriber subscriber network id
30 * @param provider provider network id
31 * @param type bidirectional access type
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080032 */
Hyunsun Mooneaf75e62016-09-27 16:40:23 -070033 void createDependency(NetworkId subscriber, NetworkId provider, Type type);
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080034
35 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080036 * Removes all dependencies from a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080037 *
Hyunsun Mooneaf75e62016-09-27 16:40:23 -070038 * @param subscriber subscriber network id
39 * @param provider provider network id
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080040 */
Hyunsun Mooneaf75e62016-09-27 16:40:23 -070041 void removeDependency(NetworkId subscriber, NetworkId provider);
Hyunsun Moon950f6392015-09-10 17:54:10 -070042}