diff options
author | Vratko Polak <vrpolak@cisco.com> | 2024-08-30 14:19:32 +0200 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2024-08-30 13:15:04 +0000 |
commit | e21047b08666977e4afb520ffd7ba16741efdba2 (patch) | |
tree | 8a21ceec9a417bb3808cb2673be6d4062049536b /resources/libraries/python | |
parent | c2cecd4d98a01572d2f1a375301a5ea80f01a3c2 (diff) |
fix(trex): do not match substringoper-240812
Fixes: d78103b24d3bd68f3bd390fa527924bbb1019a23
Change-Id: I098752553ed34c6fef0cf4eed61662b78c8fd97c
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
(cherry picked from commit eae94fe0d9bd621fbe979e3ee806e0266852baae)
Diffstat (limited to 'resources/libraries/python')
-rw-r--r-- | resources/libraries/python/TrafficGenerator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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}") |