osmo-smdpp: Request enable/disable/delete notifications in metadata

this way, the eUICC will send us notifications whenever our profiles are
enabled/disabled/deleted.

Change-Id: I2861290864522b691b30b079c7c2e1466904df2d
This commit is contained in:
Harald Welte
2024-07-16 16:40:23 +02:00
parent 5370178ca2
commit 84077f239f
2 changed files with 15 additions and 0 deletions

View File

@@ -376,6 +376,9 @@ class SmDppHttpServer:
# Put together profileMetadata + _bin
ss.profileMetadata = ProfileMetadata(iccid_bin=h2b(swap_nibbles(iccid_str)), spn="OsmocomSPN", profile_name=matchingId)
# enable notifications for all operations
for event in ['enable', 'disable', 'delete']:
ss.profileMetadata.add_notification(event, self.server_hostname)
profileMetadata_bin = ss.profileMetadata.gen_store_metadata_request()
# Put together smdpSigned2 + _bin