blob: 5be93d2ad08f8edf96cfe7ff14621f53595a8fc8 [file] [log] [blame]
Andrea Campanella6ee73922016-02-03 18:00:00 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Andrea Campanella6ee73922016-02-03 18:00:00 -08003 *
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 */
16
17package org.onosproject.net.group;
18
Andrea Campanella1ea15102017-09-04 16:00:09 +020019import com.google.common.collect.ImmutableList;
Andrea Campanella6ee73922016-02-03 18:00:00 -080020import org.onosproject.net.DeviceId;
21import org.onosproject.net.driver.HandlerBehaviour;
22
Andrea Campanella1ea15102017-09-04 16:00:09 +020023import java.util.Collection;
24
Andrea Campanella6ee73922016-02-03 18:00:00 -080025/**
26 * Group programmable device behaviour.
27 */
28public interface GroupProgrammable extends HandlerBehaviour {
29
30 /**
31 * Performs the Group operations for the specified device.
32 *
33 * @param deviceId ID of the device
34 * @param groupOps operations to be performed
35 */
36 void performGroupOperation(DeviceId deviceId, GroupOperations groupOps);
Andrea Campanella1ea15102017-09-04 16:00:09 +020037
38 /**
39 * Queries the groups from the device.
40 *
41 * @return collection of groups
42 */
43 default Collection<Group> getGroups() {
44 return ImmutableList.of();
45 }
Andrea Campanella6ee73922016-02-03 18:00:00 -080046}