aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2023-05-25 10:10:56 +0200
committerVratko Polak <vrpolak@cisco.com>2023-05-25 10:10:56 +0200
commit06d9ceaaffd3183155610a60e4897ebbab64384e (patch)
tree6d5af05374ed637be985a6722f625a3a4cebe9c6
parent74aa13757057a4c93d62704ad0de7a71c5cf1357 (diff)
fix(TrafficGenerator): correct tg_topology reverse
Change-Id: Ibef272705ea889d58bb9c5b69a8566f6e38de1d1 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
-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)