blob: 9f70a00e374bc8e2f27456bfdaf4ba2430d51a0e [file] [log] [blame]
sangho0c2a3da2016-02-16 13:39:07 +09001/*
2 * Copyright 2015-2016 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.openstacknetworking;
17
18import java.util.Map;
19
20/**
21 * Handles port management REST API from Openstack for VMs.
22 */
23public interface OpenstackSwitchingService {
24
25 /**
26 * Store the port information created by Openstack.
27 *
28 * @param openstackPort port information
29 */
30 void createPorts(OpenstackPort openstackPort);
31
32 /**
33 * Removes flow rules corresponding to the port removed by Openstack.
34 *
35 * @param uuid UUID
36 */
37 void removePort(String uuid);
38
39 /**
40 * Updates flow rules corresponding to the port information updated by Openstack.
41 *
42 * @param openstackPort OpenStack port
43 */
44 void updatePort(OpenstackPort openstackPort);
45
46 /**
47 * Stores the network information created by openstack.
48 *
49 * @param openstackNetwork network information
50 */
51 void createNetwork(OpenstackNetwork openstackNetwork);
52
53 /**
54 * Stores the subnet information created by openstack.
55 *
56 * @param openstackSubnet subnet information
57 */
58 void createSubnet(OpenstackSubnet openstackSubnet);
59
60 /**
61 * Retruns OpenstackPortInfo map.
62 *
63 * @return OpenstackPortInfo map
64 */
65 Map<String, OpenstackPortInfo> openstackPortInfo();
66
67}