Skip to content

Commit dd226bd

Browse files
Update TRexClient.java
core mask needs to be of type long
1 parent 826e19d commit dd226bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/cisco/trex/stateless/TRexClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public PGIdStatsRPCResult getPgidStats(int[] ids) {
318318
}
319319

320320
public void startTraffic(
321-
int portIndex, double duration, boolean force, Map<String, Object> mul, int coreMask) {
321+
int portIndex, double duration, boolean force, Map<String, Object> mul, long coreMask) {
322322
startTraffic(portIndex, "", duration, force, mul, coreMask);
323323
}
324324

@@ -328,7 +328,7 @@ public void startTraffic(
328328
double duration,
329329
boolean force,
330330
Map<String, Object> mul,
331-
int coreMask) {
331+
long coreMask) {
332332
Map<String, Object> payload = createPayload(portIndex, profileId);
333333
if (coreMask > 0) {
334334
payload.put("core_mask", coreMask);
@@ -340,7 +340,7 @@ public void startTraffic(
340340
}
341341

342342
public void startAllTraffic(
343-
int portIndex, double duration, boolean force, Map<String, Object> mul, int coreMask) {
343+
int portIndex, double duration, boolean force, Map<String, Object> mul, long coreMask) {
344344
List<String> profileIds = getProfileIds(portIndex);
345345
for (String profileId : profileIds) {
346346
startTraffic(portIndex, profileId, duration, force, mul, coreMask);

0 commit comments

Comments
 (0)