We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18d9339 commit 40bf862Copy full SHA for 40bf862
src/main/java/com/cisco/trex/stateful/api/lowlevel/ASTFProgram.java
@@ -400,6 +400,17 @@ public void setKeepAliveMsg(int msec) {
400
this.fields.get(COMMANDS).add(new ASTFCmdRecvMsg(this.totalRcvBytes, false));
401
}
402
403
+ /**
404
+ * set var command
405
+ *
406
+ * @param varId
407
+ * @param value
408
+ */
409
+ public void setVar(String varId, int value) {
410
+ addVar(varId);
411
+ fields.get(COMMANDS).add(new ASTFCmdSetVal(varId, (long) value));
412
+ }
413
+
414
/**
415
* set var command
416
*
0 commit comments