commit | 32600698dec16b17cf1900e871776d806e857126 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Mon Mar 09 10:38:40 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Mar 09 18:38:10 2015 +0000 |
tree | be75be8a951a052bfa493c45a2b946cbaffe0d1c | |
parent | 54b406b1e4ca35292319a8c5594ac9189660ae3c [diff] [blame] |
Add CLI command to view groups on switches Change-Id: I0ce3cca85e8b38d2e713bf1f0abd4303629e15e4
diff --git a/core/api/src/main/java/org/onosproject/net/group/GroupService.java b/core/api/src/main/java/org/onosproject/net/group/GroupService.java index 8502aea..cdd56c7 100644 --- a/core/api/src/main/java/org/onosproject/net/group/GroupService.java +++ b/core/api/src/main/java/org/onosproject/net/group/GroupService.java
@@ -127,6 +127,14 @@ Iterable<Group> getGroups(DeviceId deviceId, ApplicationId appId); /** + * Returns all groups associated with the given device. + * + * @param deviceId device ID to get groups for + * @return iterable of device's groups + */ + Iterable<Group> getGroups(DeviceId deviceId); + + /** * Adds the specified group listener. * * @param listener group listener