alshabib

priority 0 is off limits; because of OF13

Change-Id: I50fb8575450f11c500f532e878597d3b1632e50a
...@@ -50,7 +50,8 @@ public class DefaultFlowRule implements FlowRule { ...@@ -50,7 +50,8 @@ public class DefaultFlowRule implements FlowRule {
50 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector, 50 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
51 TrafficTreatment treatement, int priority, ApplicationId appId, 51 TrafficTreatment treatement, int priority, ApplicationId appId,
52 int timeout) { 52 int timeout) {
53 - this(deviceId, selector, treatement, priority, 53 +
54 + this(deviceId, selector, treatement, priority == 0 ? 1 : priority,
54 FlowRuleState.CREATED, appId, timeout); 55 FlowRuleState.CREATED, appId, timeout);
55 } 56 }
56 57
......