Yunpeng Zhang
Committed by Gerrit Code Review

Add a MAX_PRIORITY for demo flowtest

Change-Id: Ic79069ebf0d8f5fd72f4e3e35146553a49f73e10
...@@ -553,7 +553,7 @@ public class DemoInstaller implements DemoApi { ...@@ -553,7 +553,7 @@ public class DemoInstaller implements DemoApi {
553 .matchEthDst(MacAddress.valueOf((Integer.MAX_VALUE - i) * RandomUtils.nextInt())); 553 .matchEthDst(MacAddress.valueOf((Integer.MAX_VALUE - i) * RandomUtils.nextInt()));
554 554
555 555
556 - int randomPriority = RandomUtils.nextInt(); 556 + int randomPriority = RandomUtils.nextInt(FlowRule.MAX_PRIORITY);
557 FlowRule f = DefaultFlowRule.builder() 557 FlowRule f = DefaultFlowRule.builder()
558 .forDevice(d.id()) 558 .forDevice(d.id())
559 .withSelector(sbuilder.build()) 559 .withSelector(sbuilder.build())
......