blob: c7c5896ea4e3cc3eea78e11b7843f2d935d97b76 [file] [log] [blame]
Jian Li47e7af72021-03-05 01:32:04 +09001/*
2 * Copyright 2021-present Open Networking Foundation
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.kubevirtnetworking.api;
17
18/**
19 * Service for administering the inventory of kubevirty security group.
20 */
21public interface KubevirtSecurityGroupAdminService extends KubevirtSecurityGroupService {
22
23 /**
24 * Creates a security group.
25 *
26 * @param sg security group
27 */
28 void createSecurityGroup(KubevirtSecurityGroup sg);
29
30 /**
31 * Updates the security group.
32 *
33 * @param sg security group
34 */
35 void updateSecurityGroup(KubevirtSecurityGroup sg);
36
37 /**
38 * Removes the security group.
39 *
40 * @param sgId security group ID
41 */
42 void removeSecurityGroup(String sgId);
43
44 /**
45 * Creates a security group rule.
46 *
47 * @param sgRule security group rule
48 */
49 void createSecurityGroupRule(KubevirtSecurityGroupRule sgRule);
50
51 /**
52 * Removes the security group rule.
53 *
54 * @param sgRuleId security group rule ID
55 */
56 void removeSecurityGroupRule(String sgRuleId);
57
58 /**
59 * Removes the existing security groups.
60 */
61 void clear();
62}