Committed by
Gerrit Code Review
Add a MAX_PRIORITY for demo flowtest
Change-Id: Ib74be79cb8a5b9d01ed8f9eeaac49a7fe4939b19
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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()) | ... | ... |
-
Please register or login to post a comment