Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
A bit of cleanup, updated the README, started vhost test.
[vpp.git]
/
extras
/
vpp_config
/
vpplib
/
VppPCIUtil.py
diff --git
a/extras/vpp_config/vpplib/VppPCIUtil.py
b/extras/vpp_config/vpplib/VppPCIUtil.py
index
829d66a
..
591dfab
100644
(file)
--- a/
extras/vpp_config/vpplib/VppPCIUtil.py
+++ b/
extras/vpp_config/vpplib/VppPCIUtil.py
@@
-251,11
+251,12
@@
class VppPCIUtil(object):
:param devices: A list of devices
:param show_interfaces: show the kernel information
:param devices: A list of devices
:param show_interfaces: show the kernel information
+ :param show_header: Display the header if true
:type devices: dict
:type show_interfaces: bool
:type devices: dict
:type show_interfaces: bool
+ :type show_header: bool
"""
"""
-
if show_interfaces:
header = "{:15} {:25} {:50}".format("PCI ID",
"Kernel Interface(s)",
if show_interfaces:
header = "{:15} {:25} {:50}".format("PCI ID",
"Kernel Interface(s)",
@@
-265,8
+266,7
@@
class VppPCIUtil(object):
"Description")
dashseparator = ("-" * (len(header) - 2))
"Description")
dashseparator = ("-" * (len(header) - 2))
-
- if show_header == True:
+ if show_header is True:
print header
print dashseparator
for dit in devices.items():
print header
print dashseparator
for dit in devices.items():
@@
-298,7
+298,6
@@
class VppPCIUtil(object):
:type device_id: string
"""
:type device_id: string
"""
-
rootdir = node['rootdir']
dpdk_script = rootdir + DPDK_SCRIPT
cmd = dpdk_script + ' -u ' + ' ' + device_id
rootdir = node['rootdir']
dpdk_script = rootdir + DPDK_SCRIPT
cmd = dpdk_script + ' -u ' + ' ' + device_id