summaryrefslogtreecommitdiffstats
path: root/extras/vpp_config/vpplib/VppPCIUtil.py
diff options
context:
space:
mode:
authorJohn DeNisco <jdenisco@cisco.com>2017-11-01 12:37:47 -0400
committerChris Luke <chris_luke@comcast.com>2017-11-01 18:06:33 +0000
commitc6b2a206b6a27bd136adb856cf51828bf91d892d (patch)
tree51a38aa2b75cfd344e742311778c635b317a2434 /extras/vpp_config/vpplib/VppPCIUtil.py
parenta74b7419bd6c7c5b23f59253b0b0b6c0d683794d (diff)
A bit of cleanup, updated the README, started vhost test.
Change-Id: I49b998644b8b79c778c1186fc09831b1cd8fc015 Signed-off-by: John DeNisco <jdenisco@cisco.com>
Diffstat (limited to 'extras/vpp_config/vpplib/VppPCIUtil.py')
-rw-r--r--extras/vpp_config/vpplib/VppPCIUtil.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/extras/vpp_config/vpplib/VppPCIUtil.py b/extras/vpp_config/vpplib/VppPCIUtil.py
index 829d66ae374..591dfab96cd 100644
--- 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 show_header: Display the header if true
:type devices: dict
:type show_interfaces: bool
+ :type show_header: bool
"""
-
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))
-
- if show_header == True:
+ if show_header is True:
print header
print dashseparator
for dit in devices.items():
@@ -298,7 +298,6 @@ class VppPCIUtil(object):
:type device_id: string
"""
-
rootdir = node['rootdir']
dpdk_script = rootdir + DPDK_SCRIPT
cmd = dpdk_script + ' -u ' + ' ' + device_id