5G-MAG / open5gs

Open5GS is a C-language Open Source implementation for 5G Core and EPC, i.e. the core network of LTE/NR network (Release-17)
https://open5gs.org
GNU Affero General Public License v3.0
4 stars 0 forks source link

[MB-SMF] SBI: TMGI Deallocate Service operation #11

Closed Borjis131 closed 5 months ago

Borjis131 commented 11 months ago

Following 3GPP TS 29.532 - Release 17.4.0

Ch. 5.2.2.3 - TMGI Deallocate Service operation

Borjis131 commented 10 months ago

To send the TMGI Deallocate request from the AF, to deallocate an existing TMGI:

# TMGI Deallocate request: /nmbsmf-tmgi/v1/tmgi
curl --http2-prior-knowledge \
  --request DELETE \
  --header "Content-Type: application/json" \
  smf.open5gs.org:80/nmbsmf-tmgi/v1/tmgi?tmgi-list=%5B%7B%22mbsServiceId%22%3A%22762AE4%22%2C%22plmnId%22%3A%7B%22mcc%22%3A%22001%22%2C%22mnc%22%3A%2201%22%7D%7D%5D

# If you are using curl version > 7.87 you can use:
# TMGI Deallocate request: /nmbsmf-tmgi/v1/tmgi
curl --http2-prior-knowledge \
  --request DELETE \
  --header "Content-Type: application/json" \
  --url-query 'tmgi-list=[{"mbsServiceId":"762AE4","plmnId":{"mcc":"001","mnc":"01"}}]' \
  smf.open5gs.org:80/nmbsmf-tmgi/v1/tmgi

Note: Use an online URL encoder for the first method

Borjis131 commented 10 months ago

The tmgi-list is not checked for TMGI duplicates.