Change in pysim[master]: Extract PLMN digits from IMSI in non-batch programming scenario

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Tue May 19 14:25:27 UTC 2020


neels has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/18071 )

Change subject: Extract PLMN digits from IMSI in non-batch programming scenario
......................................................................


Patch Set 7: Code-Review-1

(1 comment)

The aim of this patch is to fix a bug, or to make invocation more convenient?
After this patch, is it still possible to program an IMSI that mismatches the MCC,MNC?

(I'm not sure that I understand the difference between batch and non-batch...)

https://gerrit.osmocom.org/c/pysim/+/18071/7/pySim-prog.py 
File pySim-prog.py:

https://gerrit.osmocom.org/c/pysim/+/18071/7/pySim-prog.py@275 
PS7, Line 275: 	if not mcc.isdigit() or not mnc.isdigit():
There is mcc and mnc validation up here, but your patch changes them again below.
The extraction should happen above this line instead.

Then you also don't need to code-dup the lpad() calls, but simply let the mcc and mnc be left-padded as normally.



-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/18071
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I48bf7cf94d23960db944f39b84f0c3f057d89659
Gerrit-Change-Number: 18071
Gerrit-PatchSet: 7
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Comment-Date: Tue, 19 May 2020 14:25:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200519/9ff427a4/attachment.htm>


More information about the gerrit-log mailing list