summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2018-11-02 08:28:58 -0700
committerahothan <ahothan@cisco.com>2018-11-02 08:28:58 -0700
commit4e91afc87413eb4279fa9b6aeded584ce68f56bf (patch)
tree42b3831d39576fd44d43966f25a3d9dfc76b307e
parentf1d59a8130dce2ac9295bc5495e628fdb752b74d (diff)
NFVBENCH-106 IndexError exception while resolving ARP (EXT)2.0.3
Change-Id: Id3699849810ec16706ff1cdd7f05b6912583cf21 Signed-off-by: ahothan <ahothan@cisco.com>
-rw-r--r--nfvbench/traffic_gen/trex.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nfvbench/traffic_gen/trex.py b/nfvbench/traffic_gen/trex.py
index 5701297..4d7e175 100644
--- a/nfvbench/traffic_gen/trex.py
+++ b/nfvbench/traffic_gen/trex.py
@@ -431,7 +431,7 @@ class TRex(AbstractTrafficGenerator):
"""
self.client.set_service_mode(ports=self.port_handle)
LOG.info('Polling ARP until successful...')
- arps = {}
+ arp_dest_macs = {}
for port, device in zip(self.port_handle, self.generator_config.devices):
# there should be 1 stream config per chain
stream_configs = device.get_stream_configs()
@@ -471,7 +471,7 @@ class TRex(AbstractTrafficGenerator):
else:
unresolved.append(arp_record.dst_ip)
if dst_macs_count == chain_count:
- arps[port] = dst_macs
+ arp_dest_macs[port] = dst_macs
LOG.info('ARP resolved successfully for port %s', port)
break
else:
@@ -488,8 +488,8 @@ class TRex(AbstractTrafficGenerator):
break
self.client.set_service_mode(ports=self.port_handle, enabled=False)
- if len(arps) == len(self.port_handle):
- return arps
+ if len(arp_dest_macs) == len(self.port_handle):
+ return arp_dest_macs
return None
def __is_rate_enough(self, l2frame_size, rates, bidirectional, latency):