diff options
author | Xueqin Lin <xueqin.lin@intel.com> | 2016-08-18 14:16:25 +0800 |
---|---|---|
committer | Marvin Liu <yong.liu@intel.com> | 2016-08-18 15:37:36 +0800 |
commit | d39fa0d61450e84b0372890c0ab9cb242a70dd3f (patch) | |
tree | d7905dd601b128efda49a67f04d3d9c9d85d0f27 /nics | |
parent | 64f67e5bb7176dcd0b48b55ec34535f9cb19e2f6 (diff) |
nics rrc: reduce timeout value when striping port glort ID
It is impossible to wait so long time for expected output, just fix as default value.
Diffstat (limited to 'nics')
-rw-r--r-- | nics/rrc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nics/rrc.py b/nics/rrc.py index 62dc8d2..a6ac175 100644 --- a/nics/rrc.py +++ b/nics/rrc.py @@ -259,7 +259,7 @@ class RedRockCanyou(NetDevice): return None else: port_value = res.group(2) - out = self.ctrl_crb.send_expect("show stacking logical-port all", "<0>%",10000) + out = self.ctrl_crb.send_expect("show stacking logical-port all", "<0>%") pattern = r"([0-9a-z]{6})+(\s)+(%s)+" %port_value s = re.compile(pattern) res = s.search(out) |