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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user