Skip to content

Commit 13790d2

Browse files
Update TRexClient.java
fix setFlowControlMode
1 parent 05b3a39 commit 13790d2

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)