Skip to content

Commit 2852230

Browse files
committed
remove stream with profile id
Signed-off-by: Leo Ma <[email protected]>
1 parent 8e4297a commit 2852230

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ public void removeStream(int portIndex, int streamId) {
177177
callMethod("remove_stream", payload);
178178
}
179179

180+
public void removeStream(int portIndex, String profileId, int streamId) {
181+
Map<String, Object> payload = createPayload(portIndex, profileId);
182+
payload.put("stream_id", streamId);
183+
callMethod("remove_stream", payload);
184+
}
185+
180186
public void removeAllStreams(int portIndex) {
181187
removeAllStreams(portIndex, "");
182188
}

0 commit comments

Comments
 (0)