Skip to content

Commit

Permalink
remove stream with profile id
Browse files Browse the repository at this point in the history
Signed-off-by: Leo Ma <[email protected]>
  • Loading branch information
leomaatEric committed Jun 17, 2019
1 parent 8e4297a commit 2852230
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/cisco/trex/stateless/TRexClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ public void removeStream(int portIndex, int streamId) {
callMethod("remove_stream", payload);
}

public void removeStream(int portIndex, String profileId, int streamId) {
Map<String, Object> payload = createPayload(portIndex, profileId);
payload.put("stream_id", streamId);
callMethod("remove_stream", payload);
}

public void removeAllStreams(int portIndex) {
removeAllStreams(portIndex, "");
}
Expand Down

0 comments on commit 2852230

Please sign in to comment.