blob: 55edc5380c8e8c042512e0edd740111036ee859f [file] [log] [blame]
Hyunsun Moon187bf532017-01-19 10:57:40 +09001/*
2 * Copyright 2017-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.opencord.cordvtn.api.core;
17
18import org.opencord.cordvtn.api.net.NetworkId;
19import org.opencord.cordvtn.api.net.PortId;
20import org.opencord.cordvtn.api.net.ServiceNetwork;
21import org.opencord.cordvtn.api.net.ServicePort;
22
23/**
24 * Service for administering the inventory of {@link ServiceNetwork}.
25 */
26public interface ServiceNetworkAdminService extends ServiceNetworkService {
27
28 /**
29 * Purges internal network states.
30 */
31 void purgeStates();
32
33 /**
34 * Creates a service network with the given information.
35 *
36 * @param serviceNetwork the new service network
37 */
38 void createServiceNetwork(ServiceNetwork serviceNetwork);
39
40 /**
41 * Updates a service network with the given information.
42 *
43 * @param serviceNetwork the updated service network
44 */
45 void updateServiceNetwork(ServiceNetwork serviceNetwork);
46
47 /**
48 * Removes a service network with the given network id.
49 *
50 * @param networkId network id
51 */
52 void removeServiceNetwork(NetworkId networkId);
53
54 /**
55 * Creates a service port with the given information.
56 *
57 * @param servicePort the new service port
58 */
59 void createServicePort(ServicePort servicePort);
60
61 /**
62 * Updates a service port with the given information.
63 *
64 * @param servicePort the updated service port
65 */
66 void updateServicePort(ServicePort servicePort);
67
68 /**
69 * Removes a service port with the given port id.
70 *
71 * @param portId port id
72 */
73 void removeServicePort(PortId portId);
74}