diff options
author | Vratko Polak <vrpolak@cisco.com> | 2024-08-21 19:15:47 +0200 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2024-08-22 11:34:29 +0200 |
commit | 229f32b91828e7de865a137dbf1f4a2066004d49 (patch) | |
tree | ec668672e69b3edb15fb5c3c59df48178414fbb9 /GPL/tools/trex | |
parent | a016cc4d87fcd4726d86e38750b2087bde925bc2 (diff) |
fix(ip4scale6): 6 TRex ports means 6 traffic directions
Without this, Robot computes from single-port load incorrectly.
Change-Id: I4c83e959c64be1e7d2dd557db20b95be1ce3d0ae
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'GPL/tools/trex')
-rw-r--r-- | GPL/tools/trex/trex_stl_profile.py | 4 |
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, |