summaryrefslogtreecommitdiffstats
path: root/scripts/dpdk_setup_ports.py
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-12-11 09:52:48 +0200
committerHanoh Haim <hhaim@cisco.com>2016-12-11 11:50:18 +0200
commit568d62a95612dd3210497c870be3d57eb728f45c (patch)
treeee899a1bd94ec73a5f70daebccaa703c132d6bab /scripts/dpdk_setup_ports.py
parent266ac2d8209e9f63170e3ff32eefb331fca53300 (diff)
more flexiable OFED version check
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'scripts/dpdk_setup_ports.py')
-rwxr-xr-xscripts/dpdk_setup_ports.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py
index 8475bdee..e445a402 100755
--- a/scripts/dpdk_setup_ports.py
+++ b/scripts/dpdk_setup_ports.py
@@ -352,7 +352,9 @@ Other network devices
def check_ofe_version (self):
ofed_info='/usr/bin/ofed_info'
- ofed_ver= 'MLNX_OFED_LINUX-3.4-1.0.0.0'
+ ofed_ver= '-3.4-'
+ ofed_ver_show= '3.4-1'
+
if not os.path.isfile(ofed_info):
print("OFED %s is not installed on this setup" % ofed_info)
@@ -368,7 +370,7 @@ Other network devices
if len(lines)>1:
if not (ofed_ver in str(lines[0])):
- print("installed OFED version is '%s' should be '%s' " % (lines[0],ofed_ver))
+ print("installed OFED version is '%s' should be at least '%s' and up" % (lines[0],ofed_ver_show))
exit(-1);
@@ -989,6 +991,8 @@ def main ():
print(e)
exit(-1)
+
+
if __name__ == '__main__':
main()