Skip to content

Commit e94f17c

Browse files
Merge pull request #125 from cisco-system-traffic-generator/setFlowControlMode-fix
Update TRexClient.java
2 parents 05b3a39 + 13790d2 commit e94f17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ public void setFlowControlMode(int portIndex, int mode) {
463463
Map<String, Object> payload = createPayload(portIndex);
464464
Map<String, Object> attributes = new HashMap<>();
465465
Map<String, Object> flowCtrlValue = new HashMap<>();
466-
flowCtrlValue.put("enabled", mode);
466+
flowCtrlValue.put("mode", mode);
467467
attributes.put("flow_ctrl_mode", flowCtrlValue);
468468
payload.put("attr", attributes);
469469
callMethod("set_port_attr", payload);

0 commit comments

Comments
 (0)