aboutsummaryrefslogtreecommitdiffstats
path: root/GPL
diff options
context:
space:
mode:
Diffstat (limited to 'GPL')
-rw-r--r--GPL/tools/trex/trex_stl_profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/GPL/tools/trex/trex_stl_profile.py b/GPL/tools/trex/trex_stl_profile.py
index ac53e90571..e3a3c8c0f9 100644
--- a/GPL/tools/trex/trex_stl_profile.py
+++ b/GPL/tools/trex/trex_stl_profile.py
@@ -1,6 +1,6 @@
#!/usr/bin/python3
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2024 Cisco and/or its affiliates.
#
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
#
@@ -190,7 +190,7 @@ def simple_burst(
# Choose rate and start traffic:
client.start(
- ports=ports[::] if traffic_directions == 2 else ports[::2],
+ ports=ports[::2] if traffic_directions == 1 else ports[::],
mult=rate,
duration=duration,
force=force,