aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/TrafficGenerator.py
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-09-22 07:10:25 +0200
committerPeter Mikus <peter.mikus@protonmail.ch>2023-09-22 05:15:40 +0000
commit38d1d35ea7bdb653b96f0c7e1b3227cd293d8c22 (patch)
treee6437d7b8496ffe04abb4032c54848f576a15295 /resources/libraries/python/TrafficGenerator.py
parent9409865ed1c3b9b1c0d488eb01188e1d9d58e244 (diff)
fix(core): TRex self loop tests
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I8945daffd500f689b3eb630f1ce7e1dc4f05aca8
Diffstat (limited to 'resources/libraries/python/TrafficGenerator.py')
-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 4543bae87b..f759f52d3a 100644
--- a/resources/libraries/python/TrafficGenerator.py
+++ b/resources/libraries/python/TrafficGenerator.py
@@ -301,7 +301,7 @@ class TrafficGenerator(AbstractMeasurer):
for l in range(1, parallel_links*2, 2):
tg_if1_adj_addr = topology[f"TG_pf{l+1}_mac"][0]
tg_if2_adj_addr = topology[f"TG_pf{l}_mac"][0]
- if osi_layer in ("L3", "L7"):
+ if osi_layer in ("L3", "L7") and "DUT1" in topology.keys():
ifl = BuiltIn().get_variable_value("${int}")
last = topology["duts_count"]
tg_if1_adj_addr = Topology().get_interface_mac(