From eae94fe0d9bd621fbe979e3ee806e0266852baae Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Fri, 30 Aug 2024 14:19:32 +0200 Subject: fix(trex): do not match substring Fixes: d78103b24d3bd68f3bd390fa527924bbb1019a23 Change-Id: I098752553ed34c6fef0cf4eed61662b78c8fd97c Signed-off-by: Vratko Polak --- resources/libraries/python/TrafficGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py index 20ab50c7e0..ae01f8d3a6 100644 --- a/resources/libraries/python/TrafficGenerator.py +++ b/resources/libraries/python/TrafficGenerator.py @@ -304,7 +304,7 @@ class TrafficGenerator(AbstractMeasurer): for link in range(1, pfs, 2): tg_if1_adj_addr = topology[f"TG_pf{link+1}_mac"][0] tg_if2_adj_addr = topology[f"TG_pf{link}_mac"][0] - skip = 0 if osi_layer in ("L3_1") else 1 + skip = 0 if osi_layer in ("L3_1",) else 1 if osi_layer in ("L3", "L3_1", "L7") and "DUT1" \ in topology.keys(): ifl = BuiltIn().get_variable_value("${int}") -- cgit 1.2.3-korg