diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-09-22 07:10:25 +0200 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2023-09-22 05:16:02 +0000 |
commit | e35dd395bd5cf6e6f86f59095089331ab404bb76 (patch) | |
tree | 400ce617994d1487b2512edf32fa04dc6f04e02f | |
parent | 0117b8de702e8e4ea69625cf416b4bf7f54472ff (diff) |
fix(core): TRex self loop tests
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I8945daffd500f689b3eb630f1ce7e1dc4f05aca8
(cherry picked from commit 38d1d35ea7bdb653b96f0c7e1b3227cd293d8c22)
-rw-r--r-- | resources/libraries/python/TrafficGenerator.py | 2 | ||||
-rw-r--r-- | resources/libraries/robot/shared/suite_setup.robot | 2 |
2 files changed, 2 insertions, 2 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( diff --git a/resources/libraries/robot/shared/suite_setup.robot b/resources/libraries/robot/shared/suite_setup.robot index 1544ea32d0..46e134828f 100644 --- a/resources/libraries/robot/shared/suite_setup.robot +++ b/resources/libraries/robot/shared/suite_setup.robot @@ -252,7 +252,7 @@ | | ${version} = | Get TG Version | ${nodes}[TG] | | Export Dut Type And Version | ${type} | ${version} | | Export TG Type And Version | ${type} | ${version} -| | Initialize traffic generator | L2 +| | Initialize traffic generator | ${osi_layer} | Additional Suite Setup Action For iPerf3 | | [Documentation] |