blob: 11687f77a42b64154e71df6b7bcf07cc641ba98a [file] [log] [blame]
Hyunsun Moon7ad92202016-04-20 10:36:02 -07001/*
2 * Copyright 2016-present 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.xosclient.api;
17
18import java.util.Set;
19
20/**
21 * Service for interacting with XOS VTN service and service dependency.
22 */
23public interface VtnServiceApi {
24
25 /**
26 * Returns all services list.
27 *
28 * @return service list
29 */
Hyunsun Moon4c396632016-05-13 04:17:53 -070030 Set<VtnServiceId> services();
31
32 /**
33 * Returns VTN service.
34 *
35 * @param serviceId service id
36 * @return vtn service
37 */
38 VtnService service(VtnServiceId serviceId);
Hyunsun Moon7ad92202016-04-20 10:36:02 -070039
40 /**
41 * Returns dependent tenant services of a given provider service.
42 *
Hyunsun Moon4c396632016-05-13 04:17:53 -070043 * @param pServiceId vtn service id
44 * @return set of service ids
Hyunsun Moon7ad92202016-04-20 10:36:02 -070045 */
Hyunsun Moon4c396632016-05-13 04:17:53 -070046 Set<VtnServiceId> tenantServices(VtnServiceId pServiceId);
Hyunsun Moon7ad92202016-04-20 10:36:02 -070047
48 /**
49 * Returns dependent provider services of a given tenant service.
50 *
Hyunsun Moon4c396632016-05-13 04:17:53 -070051 * @param tServiceId vtn service id
52 * @return set of service ids
Hyunsun Moon7ad92202016-04-20 10:36:02 -070053 */
Hyunsun Moon4c396632016-05-13 04:17:53 -070054 Set<VtnServiceId> providerServices(VtnServiceId tServiceId);
Hyunsun Moone0f3e282016-05-13 18:58:35 -070055
56 /**
57 * Returns VTN service from OpenStack.
58 *
59 * @param serviceId service id
60 * @param osAccess openstack access
61 * @return vtn service
62 */
63 // TODO remove this when XOS provides service information
64 VtnService service(VtnServiceId serviceId, OpenStackAccess osAccess);
Hyunsun Moon7ad92202016-04-20 10:36:02 -070065}