forked from public/pysim
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:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user