Change in pysim[master]: Move programminig of ePDG Id to generic USIM class

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Oct 3 07:36:46 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/20312 )

Change subject: Move programminig of ePDG Id to generic USIM class
......................................................................

Move programminig of ePDG Id to generic USIM class

Change-Id: I198d2d3303343b24ec92ba73cce21257213f6f89
---
M pySim/cards.py
1 file changed, 6 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/pySim/cards.py b/pySim/cards.py
index 8835cc9..f2a3d2a 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -264,6 +264,11 @@
 		data, sw = self._scc.update_binary(EF_USIM_ADF_map['EHPLMN'], ehplmn)
 		return sw
 
+	def update_epdgid(self, epdgid):
+		epdgid_tlv = enc_epdgid(epdgid)
+		data, sw = self._scc.update_binary(
+						EF_USIM_ADF_map['ePDGId'], epdgid_tlv)
+		return sw
 
 
 class _MagicSimBase(Card):
@@ -1164,8 +1169,7 @@
 			# update EF.ePDGId in ADF.USIM
 			if self.file_exists(EF_USIM_ADF_map['ePDGId']):
 				if p.get('epdgid'):
-					sw = self._scc.update_binary(
-						EF_USIM_ADF_map['ePDGId'], enc_epdgid(p['epdgid']))
+					sw = self.update_epdgid(p['epdgid'])
 					if sw != '9000':
 						print("Programming ePDGId failed with code %s"%sw)
 

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I198d2d3303343b24ec92ba73cce21257213f6f89
Gerrit-Change-Number: 20312
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201003/3ecc524d/attachment.htm>


More information about the gerrit-log mailing list