Cantos MTU is printed in a different way 90/4290/1
authorHanoh Haim <[email protected]>
Sun, 11 Dec 2016 15:05:18 +0000 (17:05 +0200)
committerHanoh Haim <[email protected]>
Sun, 11 Dec 2016 15:05:18 +0000 (17:05 +0200)
Signed-off-by: Hanoh Haim <[email protected]>
scripts/dpdk_setup_ports.py

index e445a40..ce6d2b2 100755 (executable)
@@ -324,7 +324,11 @@ Other network devices
             if obj:
                 return int(obj.group(1));
             else:
-                return -1
+                obj=re.search(r'mtu (\d+)',out,flags=re.MULTILINE|re.DOTALL);
+                if obj:
+                    return int(obj.group(1));
+                else:
+                    return -1
 
     def set_mtu_mlx5 (self,dev_id,new_mtu):
         if len(dev_id)>0: