From: Hanoh Haim Date: Sun, 11 Dec 2016 15:05:18 +0000 (+0200) Subject: Cantos MTU is printed in a different way X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=c8410413e0c7aea0aa353b7d5dd85b0d96766197;p=trex.git Cantos MTU is printed in a different way Signed-off-by: Hanoh Haim --- diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py index e445a402..ce6d2b2f 100755 --- a/scripts/dpdk_setup_ports.py +++ b/scripts/dpdk_setup_ports.py @@ -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: