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
diff --git a/cli/src/main/java/org/onosproject/cli/net/IntentPushTestCommand.java b/cli/src/main/java/org/onosproject/cli/net/IntentPushTestCommand.java
index c694fed..7ee207c 100644
--- a/cli/src/main/java/org/onosproject/cli/net/IntentPushTestCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/IntentPushTestCommand.java
@@ -153,7 +153,7 @@
for (int app = 0; app < apps; app++) {
for (int i = 1; i <= intentsPerApp; i++) {
TrafficSelector s = selector
- .matchEthSrc(MacAddress.valueOf(i))
+ .matchEthSrc(MacAddress.valueOf(i + app * intentsPerApp))
.build();
intents.put(app, new PointToPointIntent(appId(app), s, treatment,
ingress, egress));