Improve IST/UST check documentation (for the user manual)

Change-Id: I18093d795721f2e729eff858c8922edde9e84451
This commit is contained in:
Harald Welte 2022-02-12 21:53:18 +01:00
parent aceb2a548a
commit 3bb516b2b1
2 changed files with 15 additions and 10 deletions

View File

@ -644,7 +644,12 @@ class EF_UST(EF_UServiceTable):
self._cmd.card.update_ust(int(arg), 0)
def do_ust_service_check(self, arg):
"""Check consistency between services of this file and files present/activated"""
"""Check consistency between services of this file and files present/activated.
Many services determine if one or multiple files shall be present/activated or if they shall be
absent/deactivated. This performs a consistency check to ensure that no services are activated
for files that are not - and vice-versa, no files are activated for services that are not. Error
messages are printed for every inconsistency found."""
selected_file = self._cmd.rs.selected_file
num_problems = selected_file.ust_service_check(self._cmd)
# obtain list of currently active services
@ -802,13 +807,6 @@ class EF_EST(EF_UServiceTable):
"""Deactivate a service within EF.UST"""
self._cmd.card.update_est(int(arg), 0)
def do_est_service_check(self, arg):
"""Check consistency between services of this file and files present/activated"""
# obtain list of currently active services
(service_data, sw) = self._cmd.rs.read_binary_dec()
active_services = service_data.keys()
# TS 31.102 Section 4.2.48
class EF_ACL(TransparentEF):
def __init__(self, fid='6f57', sfid=None, name='EF.ACL', size={32, None},

View File

@ -125,9 +125,16 @@ class EF_IST(EF_UServiceTable):
self._cmd.card.update_ist(int(arg), 0)
def do_ist_service_check(self, arg):
"""Check consistency between services of this file and files present/activated"""
"""Check consistency between services of this file and files present/activated.
Many services determine if one or multiple files shall be present/activated or if they shall be
absent/deactivated. This performs a consistency check to ensure that no services are activated
for files that are not - and vice-versa, no files are activated for services that are not. Error
messages are printed for every inconsistency found."""
selected_file = self._cmd.rs.selected_file
selected_file.ust_service_check(self._cmd)
num_problems = selected_file.ust_service_check(self._cmd)
self._cmd.poutput("===> %u service / file inconsistencies detected" % num_problems)
# TS 31.103 Section 4.2.8
class EF_PCSCF(LinFixedEF):