blob: 08ad58d5a1d545527fb065553f60ad45a8b67d0d [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 Mooneaf75e62016-09-27 16:40:23 -070018import org.opencord.cordvtn.api.Dependency.Type;
Hyunsun Moon01556a52016-02-12 12:48:47 -080019
Hyunsun Moon950f6392015-09-10 17:54:10 -070020/**
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070021 * Provides dependency services.
Hyunsun Moon950f6392015-09-10 17:54:10 -070022 */
Hyunsun Moon5401aaa2016-06-12 17:40:34 -070023public interface DependencyService {
Hyunsun Mooncb799442016-01-15 20:03:18 -080024
Hyunsun Moon950f6392015-09-10 17:54:10 -070025 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080026 * Creates dependencies for a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080027 *
Hyunsun Mooneaf75e62016-09-27 16:40:23 -070028 * @param subscriber subscriber network id
29 * @param provider provider network id
30 * @param type bidirectional access type
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080031 */
Hyunsun Mooneaf75e62016-09-27 16:40:23 -070032 void createDependency(NetworkId subscriber, NetworkId provider, Type type);
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080033
34 /**
Hyunsun Moon97eaf502015-12-07 14:06:28 -080035 * Removes all dependencies from a given tenant service.
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080036 *
Hyunsun Mooneaf75e62016-09-27 16:40:23 -070037 * @param subscriber subscriber network id
38 * @param provider provider network id
Hyunsun Moon9274aaf2015-12-04 11:35:25 -080039 */
Hyunsun Mooneaf75e62016-09-27 16:40:23 -070040 void removeDependency(NetworkId subscriber, NetworkId provider);
Hyunsun Moon950f6392015-09-10 17:54:10 -070041}