Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary fields are added by deregistration #15

Merged
merged 1 commit into from
Oct 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions internal/sbi/producer/ue_context_management.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,39 +391,39 @@ func UpdateAmf3gppAccessProcedure(request models.Amf3GppAccessRegistrationModifi
}

var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "Guami"
patchItemTmp.Path = "/" + "guami"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = *request.Guami
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
}

if request.PurgeFlag {
var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "PurgeFlag"
patchItemTmp.Path = "/" + "purgeFlag"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = request.PurgeFlag
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
}

if request.Pei != "" {
var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "Pei"
patchItemTmp.Path = "/" + "pei"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = request.Pei
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
}

if request.ImsVoPs != "" {
var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "ImsVoPs"
patchItemTmp.Path = "/" + "imsVoPs"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = request.ImsVoPs
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
}

if request.BackupAmfInfo != nil {
var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "BackupAmfInfo"
patchItemTmp.Path = "/" + "backupAmfInfo"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = request.BackupAmfInfo
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
Expand Down Expand Up @@ -508,39 +508,39 @@ func UpdateAmfNon3gppAccessProcedure(request models.AmfNon3GppAccessRegistration
}

var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "Guami"
patchItemTmp.Path = "/" + "guami"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = *request.Guami
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
}

if request.PurgeFlag {
var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "PurgeFlag"
patchItemTmp.Path = "/" + "purgeFlag"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = request.PurgeFlag
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
}

if request.Pei != "" {
var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "Pei"
patchItemTmp.Path = "/" + "pei"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = request.Pei
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
}

if request.ImsVoPs != "" {
var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "ImsVoPs"
patchItemTmp.Path = "/" + "imsVoPs"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = request.ImsVoPs
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
}

if request.BackupAmfInfo != nil {
var patchItemTmp models.PatchItem
patchItemTmp.Path = "/" + "BackupAmfInfo"
patchItemTmp.Path = "/" + "backupAmfInfo"
patchItemTmp.Op = models.PatchOperation_REPLACE
patchItemTmp.Value = request.BackupAmfInfo
patchItemReqArray = append(patchItemReqArray, patchItemTmp)
Expand Down