blob: fc935c09605713e9b70033ef214c6955bba77348 [file] [log] [blame]
Jian Li2cc2b632019-02-18 00:56:40 +09001/*
2 * Copyright 2019-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.k8snetworking.api;
17
18import org.onosproject.core.ApplicationId;
19import org.onosproject.net.DeviceId;
20import org.onosproject.net.group.GroupBucket;
21import org.onosproject.net.group.GroupDescription.Type;
22
23import java.util.List;
24
25/**
26 * Service for setting group rules.
27 */
28public interface K8sGroupRuleService {
29
30 /**
31 * Configures the group table rule.
32 *
33 * @param appId application ID
34 * @param deviceId device ID
35 * @param groupId group ID
36 * @param type group type
37 * @param buckets a list of group buckets
38 * @param install true for rule addition, false for rule removal
39 */
40 void setRule(ApplicationId appId, DeviceId deviceId, int groupId,
41 Type type, List<GroupBucket> buckets, boolean install);
42}