Charles Chan

[CORD-328] Shows type in groups command

Change-Id: I508c8066052d07e6784da13cfc1d200a95087e11
...@@ -46,7 +46,7 @@ import static com.google.common.collect.Lists.newArrayList; ...@@ -46,7 +46,7 @@ import static com.google.common.collect.Lists.newArrayList;
46 public class GroupsListCommand extends AbstractShellCommand { 46 public class GroupsListCommand extends AbstractShellCommand {
47 47
48 private static final String FORMAT = 48 private static final String FORMAT =
49 - " id=%s, state=%s, bytes=%s, packets=%s, appId=%s"; 49 + " id=%s, state=%s, type=%s, bytes=%s, packets=%s, appId=%s";
50 private static final String BUCKET_FORMAT = 50 private static final String BUCKET_FORMAT =
51 " id=%s, bucket=%s, bytes=%s, packets=%s, actions=%s"; 51 " id=%s, bucket=%s, bytes=%s, packets=%s, actions=%s";
52 52
...@@ -121,7 +121,7 @@ public class GroupsListCommand extends AbstractShellCommand { ...@@ -121,7 +121,7 @@ public class GroupsListCommand extends AbstractShellCommand {
121 private void printGroups(DeviceId deviceId, List<Group> groups) { 121 private void printGroups(DeviceId deviceId, List<Group> groups) {
122 print("deviceId=%s", deviceId); 122 print("deviceId=%s", deviceId);
123 for (Group group : groups) { 123 for (Group group : groups) {
124 - print(FORMAT, group.id().id(), group.state(), 124 + print(FORMAT, group.id().id(), group.state(), group.type(),
125 group.bytes(), group.packets(), group.appId().name()); 125 group.bytes(), group.packets(), group.appId().name());
126 int i = 0; 126 int i = 0;
127 for (GroupBucket bucket:group.buckets().buckets()) { 127 for (GroupBucket bucket:group.buckets().buckets()) {
......