Committed by
Gerrit Code Review
Add a MAX_PRIORITY for demo flowtest
Change-Id: Ic79069ebf0d8f5fd72f4e3e35146553a49f73e10
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