Committed by
Yuta Higuchi
Changed the generation of MAC addresses when
using the "push-test-intents" CLI command, so each MAC address is unique. Previously, generating intents for multiple apps would create axactly same set of intents for each app; this is less common, and probably not the expected default behavior for this CLI command. Change-Id: I7813512528954da33e458307fc6a0226a7c478ea
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -153,7 +153,7 @@ public class IntentPushTestCommand extends AbstractShellCommand | ... | @@ -153,7 +153,7 @@ public class IntentPushTestCommand extends AbstractShellCommand |
153 | for (int app = 0; app < apps; app++) { | 153 | for (int app = 0; app < apps; app++) { |
154 | for (int i = 1; i <= intentsPerApp; i++) { | 154 | for (int i = 1; i <= intentsPerApp; i++) { |
155 | TrafficSelector s = selector | 155 | TrafficSelector s = selector |
156 | - .matchEthSrc(MacAddress.valueOf(i)) | 156 | + .matchEthSrc(MacAddress.valueOf(i + app * intentsPerApp)) |
157 | .build(); | 157 | .build(); |
158 | intents.put(app, new PointToPointIntent(appId(app), s, treatment, | 158 | intents.put(app, new PointToPointIntent(appId(app), s, treatment, |
159 | ingress, egress)); | 159 | ingress, egress)); | ... | ... |
-
Please register or login to post a comment