[ONOS-6986] Implement getGroups in GroupProgrammable
Change-Id: I9f25bddb6a8baad74e8e74abd44187a9c3f6520a
diff --git a/core/api/src/main/java/org/onosproject/net/group/GroupProgrammable.java b/core/api/src/main/java/org/onosproject/net/group/GroupProgrammable.java
index 178a288..5be93d2 100644
--- a/core/api/src/main/java/org/onosproject/net/group/GroupProgrammable.java
+++ b/core/api/src/main/java/org/onosproject/net/group/GroupProgrammable.java
@@ -16,9 +16,12 @@
package org.onosproject.net.group;
+import com.google.common.collect.ImmutableList;
import org.onosproject.net.DeviceId;
import org.onosproject.net.driver.HandlerBehaviour;
+import java.util.Collection;
+
/**
* Group programmable device behaviour.
*/
@@ -31,4 +34,13 @@
* @param groupOps operations to be performed
*/
void performGroupOperation(DeviceId deviceId, GroupOperations groupOps);
+
+ /**
+ * Queries the groups from the device.
+ *
+ * @return collection of groups
+ */
+ default Collection<Group> getGroups() {
+ return ImmutableList.of();
+ }
}