[NFVBENCH-72] ARP retry log may cause exception 23/53023/1
authorahothan <ahothan@cisco.com>
Sat, 3 Mar 2018 01:06:26 +0000 (17:06 -0800)
committerahothan <ahothan@cisco.com>
Sat, 3 Mar 2018 01:06:26 +0000 (17:06 -0800)
Fix exception - use proper type
May happen when retrying wait for ARP replies

Change-Id: Idc33926306268b662117deba499a35eac66affc4
Signed-off-by: ahothan <ahothan@cisco.com>
nfvbench/traffic_gen/trex.py

index 23faebc..e42afce 100644 (file)
@@ -354,7 +354,7 @@ class TRex(AbstractTrafficGenerator):
                 else:
                     failed = [arp.get_record().dst_ip for arp in arps
                               if arp.get_record().dst_mac is None]
-                    LOG.info('Retrying ARP for: %d (%d / %d)',
+                    LOG.info('Retrying ARP for: %s (%d / %d)',
                              failed, attempt, self.config.generic_retry_count)
                     time.sleep(self.config.generic_poll_sec)