Commit d6e4e49f authored by Reem Bahsoun's avatar Reem Bahsoun

Reduce the time given to the UE to re-attach after failure

Number of tries is reduced from 4 to 3
After each failure the timeout is incremented by 20
parent 92980ceb
......@@ -111,10 +111,11 @@ class Module_UE:
return self._collectTrace(ctx)
return None
def attach(self, attach_tries = 4, attach_timeout = 60):
def attach(self, attach_tries = 3, attach_timeout = 0):
ip = None
while attach_tries > 0:
self._command(self.cmd_dict["attach"])
attach_timeout += 20
timeout = attach_timeout
logging.debug("Waiting for IP address to be assigned")
ip = self.getIP(silent=False, reportNonZero=True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment