blob: bf3acb589fe1880406c718416b0523e8918b087f [file] [log] [blame]
sangho6a9ff0d2017-03-27 11:23:37 +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.onosproject.openstacknetworking.api;
17
18import org.onosproject.event.ListenerService;
19import org.openstack4j.model.network.SecurityGroup;
20import org.openstack4j.model.network.SecurityGroupRule;
21
22/**
23 * Service for interfacing OpenStack SecurityGroup events and SecurityGroup store.
24 *
25 */
26public interface OpenstackSecurityGroupService
27 extends ListenerService<OpenstackSecurityGroupEvent, OpenstackSecurityGroupListener> {
28
29 /**
30 * Returns the security group for the sgId.
31 *
32 * @param sgId security group Id
33 * @return security group
34 */
35 SecurityGroup securityGroup(String sgId);
36
37 /**
38 * Returns the security group rule for the sgRuleId given.
39 *
40 * @param sgRuleId security group rule Id
41 * @return security group rule
42 */
43 SecurityGroupRule securityGroupRule(String sgRuleId);
44
45}