Konstantinos Kanonakis

Show meter and/or table transition in GUI even if flow entry has no other treatment instructions.

Change-Id: Ia1ae053b7fd8264a9a33735717328eea89e177f6
...@@ -156,7 +156,9 @@ public class FlowViewMessageHandler extends UiMessageHandler { ...@@ -156,7 +156,9 @@ public class FlowViewMessageHandler extends UiMessageHandler {
156 FlowEntry flow = (FlowEntry) value; 156 FlowEntry flow = (FlowEntry) value;
157 List<Instruction> instructions = flow.treatment().allInstructions(); 157 List<Instruction> instructions = flow.treatment().allInstructions();
158 158
159 - if (instructions.isEmpty()) { 159 + if (instructions.isEmpty()
160 + && flow.treatment().metered() == null
161 + && flow.treatment().tableTransition() == null) {
160 return "(No traffic treatment instructions for this flow)"; 162 return "(No traffic treatment instructions for this flow)";
161 } 163 }
162 StringBuilder sb = new StringBuilder("Treatment Instructions: "); 164 StringBuilder sb = new StringBuilder("Treatment Instructions: ");
......