[M] Change in pysim[master]: docs: shell: update output in examples

2023-11-02 Thread laforge
laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/pysim/+/34940?usp=email )

Change subject: docs: shell: update output in examples
..

docs: shell: update output in examples

pySim-shell output has changed over time, so some examples were
showing outdated content.  Let's update those.

Change-Id: I4058719c32b61689522e90eba37253e8accb8ba5
---
M docs/shell.rst
1 file changed, 48 insertions(+), 20 deletions(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  laforge: Looks good to me, approved




diff --git a/docs/shell.rst b/docs/shell.rst
index 13d71bb..ab67738 100644
--- a/docs/shell.rst
+++ b/docs/shell.rst
@@ -215,7 +215,11 @@
   },
   "life_cycle_status_int": "operational_activated",
   "security_attrib_compact": "00",
-  "pin_status_template_do": "90017083010183018183010A83010B"
+  "pin_status_template_do": {
+  "ps_do": "70",
+  "key_reference": 11
+  }
+
   }
   pySIM-shell (00:MF/ADF.USIM)>

@@ -467,29 +471,40 @@
 parameter.   That's where the JSONpath support comes in handy:  You can 
specify a JSONpath to an element
 inside the document as well as a new value for tat field:

-Th below example demonstrates this by modifying the ofm field within EF.AD:
+The below example demonstrates this by modifying the ciphering indicator field 
within EF.AD:

 ::

   pySIM-shell (00:MF/ADF.USIM/EF.AD)> read_binary_decoded
+
   {
-  "ms_operation_mode": "normal",
-  "specific_facilities": {
-  "ofm": true
+  "ms_operation_mode": "normal_and_specific_facilities",
+  "additional_info": {
+  "ciphering_indicator": false,
+  "csg_display_control": false,
+  "prose_services": false,
+  "extended_drx": true
   },
-  "len_of_mnc_in_imsi": 2
+  "rfu": 0,
+  "mnc_len": 2,
+  "extensions": "ff"
   }
-  pySIM-shell (00:MF/ADF.USIM/EF.AD)> update_binary_decoded --json-path 
specific_facilities.ofm false
+  pySIM-shell (00:MF/ADF.USIM/EF.AD)> update_binary_decoded --json-path 
additional_info.ciphering_indicator true
+  "01000902ff"
   pySIM-shell (00:MF/ADF.USIM/EF.AD)> read_binary_decoded
   {
-  "ms_operation_mode": "normal",
-  "specific_facilities": {
-  "ofm": false
+  "ms_operation_mode": "normal_and_specific_facilities",
+  "additional_info": {
+  "ciphering_indicator": true,
+  "csg_display_control": false,
+  "prose_services": false,
+  "extended_drx": true
   },
-  "len_of_mnc_in_imsi": 2
+  "rfu": 0,
+  "mnc_len": 2,
+  "extensions": "ff"
   }

-
 edit_binary_decoded
 ~~~
 This command will read the selected binary EF, decode it to its JSON 
representation, save
@@ -736,30 +751,31 @@
 ::

   pySIM-shell (00:MF/ADF.ARA-M)> aram_get_all
+
   [
   {
-  "ResponseAllRefArDO": [
+  "response_all_ref_ar_do": [
   {
-  "RefArDO": [
+  "ref_ar_do": [
   {
-  "RefDO": [
+  "ref_do": [
   {
-  "AidRefDO": ""
+  "aid_ref_do": ""
   },
   {
-  "DevAppIdRefDO": 
"e46872f28b350b7e1f140de535c2a8d5804f0be3"
+  "dev_app_id_ref_do": 
"e46872f28b350b7e1f140de535c2a8d5804f0be3"
   }
   ]
   },
   {
-  "ArDO": [
+  "ar_do": [
   {
-  "ApduArDO": {
+  "apdu_ar_do": {
   "generic_access_rule": "always"
   }
   },
   {
-  "PermArDO": {
+  "perm_ar_do": {
   "permissions": "0001"
   }
   }

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/34940?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4058719c32b61689522e90eba37253e8accb8ba5
Gerrit-Change-Number: 34940
Gerrit-PatchSet: 2
Gerrit-Owner: laforge 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-MessageType: merged


[M] Change in pysim[master]: docs: shell: update output in examples

2023-11-02 Thread laforge
laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/pysim/+/34940?usp=email )

Change subject: docs: shell: update output in examples
..


Patch Set 2: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/34940?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4058719c32b61689522e90eba37253e8accb8ba5
Gerrit-Change-Number: 34940
Gerrit-PatchSet: 2
Gerrit-Owner: laforge 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge 
Gerrit-Reviewer: pespin 
Gerrit-Comment-Date: Thu, 02 Nov 2023 23:42:38 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[M] Change in pysim[master]: docs: shell: update output in examples

2023-11-02 Thread pespin
Attention is currently required from: laforge.

pespin has posted comments on this change. ( 
https://gerrit.osmocom.org/c/pysim/+/34940?usp=email )

Change subject: docs: shell: update output in examples
..


Patch Set 1: Code-Review+1


--
To view, visit https://gerrit.osmocom.org/c/pysim/+/34940?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4058719c32b61689522e90eba37253e8accb8ba5
Gerrit-Change-Number: 34940
Gerrit-PatchSet: 1
Gerrit-Owner: laforge 
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin 
Gerrit-Attention: laforge 
Gerrit-Comment-Date: Thu, 02 Nov 2023 09:23:21 +
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment


[M] Change in pysim[master]: docs: shell: update output in examples

2023-11-01 Thread laforge
laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/34940?usp=email )


Change subject: docs: shell: update output in examples
..

docs: shell: update output in examples

pySim-shell output has changed over time, so some examples were
showing outdated content.  Let's update those.

Change-Id: I4058719c32b61689522e90eba37253e8accb8ba5
---
M docs/shell.rst
1 file changed, 48 insertions(+), 20 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/40/34940/1

diff --git a/docs/shell.rst b/docs/shell.rst
index 1b27edc..2f99cf5 100644
--- a/docs/shell.rst
+++ b/docs/shell.rst
@@ -215,7 +215,11 @@
   },
   "life_cycle_status_int": "operational_activated",
   "security_attrib_compact": "00",
-  "pin_status_template_do": "90017083010183018183010A83010B"
+  "pin_status_template_do": {
+  "ps_do": "70",
+  "key_reference": 11
+  }
+
   }
   pySIM-shell (00:MF/ADF.USIM)>

@@ -467,29 +471,40 @@
 parameter.   That's where the JSONpath support comes in handy:  You can 
specify a JSONpath to an element
 inside the document as well as a new value for tat field:

-Th below example demonstrates this by modifying the ofm field within EF.AD:
+The below example demonstrates this by modifying the ciphering indicator field 
within EF.AD:

 ::

   pySIM-shell (00:MF/ADF.USIM/EF.AD)> read_binary_decoded
+
   {
-  "ms_operation_mode": "normal",
-  "specific_facilities": {
-  "ofm": true
+  "ms_operation_mode": "normal_and_specific_facilities",
+  "additional_info": {
+  "ciphering_indicator": false,
+  "csg_display_control": false,
+  "prose_services": false,
+  "extended_drx": true
   },
-  "len_of_mnc_in_imsi": 2
+  "rfu": 0,
+  "mnc_len": 2,
+  "extensions": "ff"
   }
-  pySIM-shell (00:MF/ADF.USIM/EF.AD)> update_binary_decoded --json-path 
specific_facilities.ofm false
+  pySIM-shell (00:MF/ADF.USIM/EF.AD)> update_binary_decoded --json-path 
additional_info.ciphering_indicator true
+  "01000902ff"
   pySIM-shell (00:MF/ADF.USIM/EF.AD)> read_binary_decoded
   {
-  "ms_operation_mode": "normal",
-  "specific_facilities": {
-  "ofm": false
+  "ms_operation_mode": "normal_and_specific_facilities",
+  "additional_info": {
+  "ciphering_indicator": true,
+  "csg_display_control": false,
+  "prose_services": false,
+  "extended_drx": true
   },
-  "len_of_mnc_in_imsi": 2
+  "rfu": 0,
+  "mnc_len": 2,
+  "extensions": "ff"
   }

-
 edit_binary_decoded
 ~~~
 This command will read the selected binary EF, decode it to its JSON 
representation, save
@@ -736,30 +751,31 @@
 ::

   pySIM-shell (00:MF/ADF.ARA-M)> aram_get_all
+
   [
   {
-  "ResponseAllRefArDO": [
+  "response_all_ref_ar_do": [
   {
-  "RefArDO": [
+  "ref_ar_do": [
   {
-  "RefDO": [
+  "ref_do": [
   {
-  "AidRefDO": ""
+  "aid_ref_do": ""
   },
   {
-  "DevAppIdRefDO": 
"e46872f28b350b7e1f140de535c2a8d5804f0be3"
+  "dev_app_id_ref_do": 
"e46872f28b350b7e1f140de535c2a8d5804f0be3"
   }
   ]
   },
   {
-  "ArDO": [
+  "ar_do": [
   {
-  "ApduArDO": {
+  "apdu_ar_do": {
   "generic_access_rule": "always"
   }
   },
   {
-  "PermArDO": {
+  "perm_ar_do": {
   "permissions": "0001"
   }
   }

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/34940?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4058719c32b61689522e90eba37253e8accb8ba5
Gerrit-Change-Number: 34940
Gerrit-PatchSet: 1
Gerrit-Owner: laforge 
Gerrit-MessageType: newchange