blob: 1709c95420a7cb5d1db071ddb869521c9d32f4d8 [file] [log] [blame]
sanghoc853a722016-07-04 21:10:42 +09001/*
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 */
Hyunsun Moon05400872017-02-07 17:11:25 +090016package org.onosproject.openstacknetworking.api;
sanghoc853a722016-07-04 21:10:42 +090017
jskimaa851932016-10-27 17:45:30 +090018import org.onosproject.net.Host;
19
sanghoc853a722016-07-04 21:10:42 +090020import org.onosproject.openstackinterface.OpenstackPort;
21
22/**
23 * Represents OpenstackSecurityGroupService Interface.
24 */
25public interface OpenstackSecurityGroupService {
26
27 /**
28 * Updates the flow rules for Security Group for the VM (OpenstackPort).
29 *
30 * @param osPort OpenstackPort information for the VM
31 */
32 void updateSecurityGroup(OpenstackPort osPort);
jskimaa851932016-10-27 17:45:30 +090033
34 /**
35 * Handles to purge data plane flow of existing VM.
36 *
37 * @param host VM Host information
38 */
39 void purgeVmFlow(Host host);
40
41 /**
42 * Handles to reinstall data plane flow of existing VM.
43 *
44 * @param host VM Host information
45 */
46 void reinstallVmFlow(Host host);
sanghoc853a722016-07-04 21:10:42 +090047}