esim.saip: Add ProfileElementSequence.remove_naas_of_type

This method allows the caller to remove all NAAs of a certain type,
for example to remove all CSIM instances from a given profile.

Change-Id: I64438bf0be58bad7a561c3744b7e9b1338a7857c
This commit is contained in:
Harald Welte
2024-05-31 18:28:20 +02:00
parent 0cb0e02c5c
commit 4680503acc
2 changed files with 87 additions and 0 deletions

View File

@@ -38,6 +38,10 @@ class OID:
def __repr__(self) -> str:
return 'OID(%s)' % (str(self))
def prefix_match(self, oid_str):
"""determine if oid_str is equal or below our OID."""
return oid_str.startswith(str(self))
class eOID(OID):
"""OID helper for TCA eUICC prefix"""