Skip to content

Commit

Permalink
Unnecessary fields are added by deregistration (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariakagi authored Oct 27, 2022
1 parent e8257de commit 8017d05
Showing 1 changed file with 10 additions and 10 deletions.
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

0 comments on commit 8017d05

Please sign in to comment.