aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2023-05-25 10:10:56 +0200
committerPeter Mikus <peter.mikus@protonmail.ch>2023-05-25 08:33:07 +0000
commite36da34931ee2b6f9e839c0c201298aa24e7684b (patch)
tree5abcd8bd74fdec0da8935d2a52f5115721167f47 /resources
parentbf8b7604c89e9db9d98a8001cc604eab7d25a228 (diff)
fix(TrafficGenerator): correct tg_topology reverse
Change-Id: Ibef272705ea889d58bb9c5b69a8566f6e38de1d1 Signed-off-by: Vratko Polak <vrpolak@cisco.com> (cherry picked from commit 06d9ceaaffd3183155610a60e4897ebbab64384e)
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/TrafficGenerator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py
index 46c8b01f9e..afb9388111 100644
--- a/resources/libraries/python/TrafficGenerator.py
+++ b/resources/libraries/python/TrafficGenerator.py
@@ -332,7 +332,7 @@ class TrafficGenerator(AbstractMeasurer):
if2_pci = Topology().get_interface_pci_addr(self._node, tg_if2)
if min(if1_pci, if2_pci) != if1_pci:
self._ifaces_reordered = True
- tg_topology.sort(reverse=True)
+ tg_topology.reverse()
TrexInitConfig.init_trex_startup_configuration(tg_node, tg_topology)
TrafficGenerator.startup_trex(tg_node, osi_layer, subtype=subtype)