aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2020-11-16 12:23:48 +0000
committerpmikus <pmikus@cisco.com>2020-11-16 12:42:06 +0000
commite78e0a7028dd1faa917289aa6e88b3ca63700ff0 (patch)
tree3d989098e48dd211729afa5b7b7dd376093e29f8 /resources/libraries/python
parente8b780ab663641ee1e0bae9c9261431d85c864db (diff)
2n-zn2 Epyc backport
- Better to get it fully aligned then cherry-pick spaghetti. Signed-off-by: pmikus <pmikus@cisco.com> Change-Id: If223ef3f0247413d53225eb57f8903a7675632e3
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/TrafficGenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py
index cd100da028..23337b2848 100644
--- a/resources/libraries/python/TrafficGenerator.py
+++ b/resources/libraries/python/TrafficGenerator.py
@@ -247,7 +247,6 @@ class TrafficGenerator(AbstractMeasurer):
)
# TODO: pylint says disable=too-many-locals.
- # A fix is developed in https://gerrit.fd.io/r/c/csit/+/22221
def initialize_traffic_generator(
self, tg_node, tg_if1, tg_if2, tg_if1_adj_node, tg_if1_adj_if,
tg_if2_adj_node, tg_if2_adj_if, osi_layer, tg_if1_dst_mac=None,
@@ -372,7 +371,8 @@ class TrafficGenerator(AbstractMeasurer):
# Configure TRex.
ports = ''
for port in tg_node[u"interfaces"].values():
- ports += f" {port.get(u'pci_address')}"
+ if u'Mellanox' not in port.get(u'model'):
+ ports += f" {port.get(u'pci_address')}"
cmd = f"sh -c \"cd {Constants.TREX_INSTALL_DIR}/scripts/ && " \
f"./dpdk_nic_bind.py -u {ports} || true\""