summaryrefslogtreecommitdiffstats
path: root/extras/vpp_config/vpplib/VppPCIUtil.py
diff options
context:
space:
mode:
authorjdenisco <jdenisco@cisco.com>2018-11-20 11:25:17 -0500
committerDave Barach <openvpp@barachs.net>2018-11-20 17:24:29 +0000
commit7c37a67fda3c467272f2c5cebff08329ba94994a (patch)
tree247fde8c736fa467d7f5b4a152def35e28986688 /extras/vpp_config/vpplib/VppPCIUtil.py
parent8ee72514d392e1d16638656d5c4a6dc63d3d90cc (diff)
Fix inspection for 18.10, requirements
Change-Id: I1ecc278f43afff184a26f6f18fe22a49d8916eb1 Signed-off-by: jdenisco <jdenisco@cisco.com>
Diffstat (limited to 'extras/vpp_config/vpplib/VppPCIUtil.py')
-rw-r--r--extras/vpp_config/vpplib/VppPCIUtil.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/extras/vpp_config/vpplib/VppPCIUtil.py b/extras/vpp_config/vpplib/VppPCIUtil.py
index 591dfab96cd..fe64c9d4b14 100644
--- a/extras/vpp_config/vpplib/VppPCIUtil.py
+++ b/extras/vpp_config/vpplib/VppPCIUtil.py
@@ -14,6 +14,7 @@
"""VPP PCI Utility libraries"""
import re
+import logging
from vpplib.VPPUtil import VPPUtil
@@ -318,6 +319,7 @@ class VppPCIUtil(object):
:type node: dict
:type driver: string
:type device_id: string
+ :returns ret: Command return code
"""
rootdir = node['rootdir']
@@ -325,5 +327,9 @@ class VppPCIUtil(object):
cmd = dpdk_script + ' -b ' + driver + ' ' + device_id
(ret, stdout, stderr) = VPPUtil.exec_command(cmd)
if ret != 0:
- raise RuntimeError('{} failed on node {} {} {}'.format(
+ logging.error('{} failed on node {}'.format(
cmd, node['host'], stdout, stderr))
+ logging.error('{} {}'.format(
+ stdout, stderr))
+
+ return ret