Dusan Pajin

Flow timeout shows in the FlowsList CLI command

Change-Id: Ia559f726dfd9a3507f6fc7c7351dc19f465fd60f
...@@ -53,7 +53,7 @@ public class FlowsListCommand extends AbstractShellCommand { ...@@ -53,7 +53,7 @@ public class FlowsListCommand extends AbstractShellCommand {
53 public static final String ANY = "any"; 53 public static final String ANY = "any";
54 54
55 private static final String FMT = 55 private static final String FMT =
56 - " id=%s, state=%s, bytes=%s, packets=%s, duration=%s, priority=%s, tableId=%s appId=%s"; 56 + " id=%s, state=%s, bytes=%s, packets=%s, duration=%s, priority=%s, tableId=%s, timeout=%s, appId=%s";
57 private static final String TFMT = " treatment=%s"; 57 private static final String TFMT = " treatment=%s";
58 private static final String SFMT = " selector=%s"; 58 private static final String SFMT = " selector=%s";
59 59
...@@ -193,7 +193,7 @@ public class FlowsListCommand extends AbstractShellCommand { ...@@ -193,7 +193,7 @@ public class FlowsListCommand extends AbstractShellCommand {
193 for (FlowEntry f : flows) { 193 for (FlowEntry f : flows) {
194 print(FMT, Long.toHexString(f.id().value()), f.state(), 194 print(FMT, Long.toHexString(f.id().value()), f.state(),
195 f.bytes(), f.packets(), f.life(), f.priority(), f.tableId(), 195 f.bytes(), f.packets(), f.life(), f.priority(), f.tableId(),
196 - coreService.getAppId(f.appId()).name()); 196 + f.timeout(), coreService.getAppId(f.appId()).name());
197 print(SFMT, f.selector().criteria()); 197 print(SFMT, f.selector().criteria());
198 print(TFMT, f.treatment()); 198 print(TFMT, f.treatment());
199 } 199 }
......