more flexiable OFED version check 84/4284/1
authorHanoh Haim <[email protected]>
Sun, 11 Dec 2016 07:52:48 +0000 (09:52 +0200)
committerHanoh Haim <[email protected]>
Sun, 11 Dec 2016 09:50:18 +0000 (11:50 +0200)
Signed-off-by: Hanoh Haim <[email protected]>
scripts/dpdk_setup_ports.py

index 8475bde..e445a40 100755 (executable)
@@ -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()