Code Review
/
trex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
ca243d6
)
fix dpdk_setup_ports.py for Python3
author
Yaroslav Brustinov
<
[email protected]
>
Thu, 20 Oct 2016 03:58:17 +0000
(06:58 +0300)
committer
Yaroslav Brustinov
<
[email protected]
>
Thu, 20 Oct 2016 03:58:17 +0000
(06:58 +0300)
Signed-off-by: Yaroslav Brustinov <
[email protected]
>
scripts/dpdk_setup_ports.py
patch
|
blob
|
history
diff --git
a/scripts/dpdk_setup_ports.py
b/scripts/dpdk_setup_ports.py
index
726d4ee
..
58d5869
100755
(executable)
--- a/
scripts/dpdk_setup_ports.py
+++ b/
scripts/dpdk_setup_ports.py
@@
-140,7
+140,7
@@
class ConfigCreator(object):
config_str += ' zmq_rpc_port: %s\n' % self.zmq_rpc_port
config_str += ' port_info:\n'
for index, interface in enumerate(self.interfaces):
- if
interface.has_key('ip')
:
+ if
'ip' in interface
:
self._exit_if_bad_ip(interface['ip'])
self._exit_if_bad_ip(interface['def_gw'])
config_str += ' '*6 + '- ip: %s\n' % interface['ip']