add support for open cells SIM cards

Change-Id: I4df5681952eefd7a67f5e2b0a96a9e01c9d960d2
This commit is contained in:
Todd Neal
2018-04-25 15:36:29 -05:00
parent 6cbecaaf5c
commit 9eeadfc46b
2 changed files with 54 additions and 4 deletions

View File

@@ -254,8 +254,8 @@ def gen_parameters(opts):
# ICCID (19 digits, E.118), though some phase1 vendors use 20 :(
if opts.iccid is not None:
iccid = opts.iccid
if not _isnum(iccid, 19):
raise ValueError('ICCID must be 19 digits !');
if not _isnum(iccid, 19) and not _isnum(iccid, 20):
raise ValueError('ICCID must be 19 or 20 digits !');
else:
if opts.num is None: