laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/39424?usp=email )
Change subject: pySim/transport: add abstract get_atr method to LinkBase
......................................................................
pySim/transport: add abstract get_atr method to LinkBase
The implementations that inheret from the LinkBase class are expected to
implement a get_atr method. This method is mandatory, since it is one of
the most basic functionalities of pySim to display an ATR. Also the ATR
is sometimes needed to distinguish between different card models.
The modem_atcmd and calypso implementation completely lack the get_atr
method. Apparantly it is not possible to get an ATR in those
environments, so lets add a dummy method there.
Related: OS#6322
Change-Id: I4fc020ca45658af78e495a5c1b985213f83cbb50
---
M pySim/transport/__init__.py
M pySim/transport/calypso.py
M pySim/transport/modem_atcmd.py
3 files changed, 11 insertions(+), 0 deletions(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
diff --git a/pySim/transport/__init__.py b/pySim/transport/__init__.py
index 8055306..5b0ee07 100644
--- a/pySim/transport/__init__.py
+++ b/pySim/transport/__init__.py
@@ -120,6 +120,11 @@
"""
@abc.abstractmethod
+ def get_atr(self) -> Hexstr:
+ """Retrieve card ATR
+ """
+
+ @abc.abstractmethod
def disconnect(self):
"""Disconnect from card
"""
diff --git a/pySim/transport/calypso.py b/pySim/transport/calypso.py
index fa3a9f2..f28e40c 100644
--- a/pySim/transport/calypso.py
+++ b/pySim/transport/calypso.py
@@ -123,6 +123,9 @@
def connect(self):
self.reset_card()
+ def get_atr(self) -> Hexstr:
+ return "3b00" # Dummy ATR
+
def disconnect(self):
pass # Nothing to do really ...
diff --git a/pySim/transport/modem_atcmd.py b/pySim/transport/modem_atcmd.py
index e7614c0..440ec77 100644
--- a/pySim/transport/modem_atcmd.py
+++ b/pySim/transport/modem_atcmd.py
@@ -139,6 +139,9 @@
def connect(self):
pass # Nothing to do really ...
+ def get_atr(self) -> Hexstr:
+ return "3b00" # Dummy ATR
+
def disconnect(self):
pass # Nothing to do really ...
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/39424?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4fc020ca45658af78e495a5c1b985213f83cbb50
Gerrit-Change-Number: 39424
Gerrit-PatchSet: 5
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Attention is currently required from: pespin.
laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/upf-benchmark/+/39458?usp=email )
Change subject: trex-tunmap: Increase test params to 100k sessions
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/upf-benchmark/+/39458?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: upf-benchmark
Gerrit-Branch: master
Gerrit-Change-Id: I8fa40b2d796b74a23d23e88a925626d6f9fff94b
Gerrit-Change-Number: 39458
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 03 Feb 2025 19:11:09 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: osmith, pespin.
laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/upf-benchmark/+/39457?usp=email )
Change subject: trex-tunmap: Introduce setup to test osmo-upf with TRex
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/upf-benchmark/+/39457?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: upf-benchmark
Gerrit-Branch: master
Gerrit-Change-Id: If27d7f4e7a92d14377192eecbf77ab18d1d1032c
Gerrit-Change-Number: 39457
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 03 Feb 2025 19:11:07 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes