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

Snssai.Sd values to lower case #13

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Snssai.Sd values to lower case #13

merged 1 commit into from
Jul 27, 2023

Conversation

brianchennn
Copy link
Contributor

This PR is for free5gc issue #435

@@ -1481,6 +1488,12 @@ func PolicyDataUesUeIdSmDataGetProcedure(collName string, ueId string, snssai mo
smPolicyDataResp.UmData[element.LimitId] = element
}
}

for sstSd, snssaiData := range smPolicyDataResp.SmPolicySnssaiData {
Copy link
Collaborator

@tim-ywliu tim-ywliu Jul 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need this for loop

@@ -1456,6 +1460,9 @@ func PolicyDataUesUeIdSmDataGetProcedure(collName string, ueId string, snssai mo
}
tmpSmPolicySnssaiData := make(map[string]models.SmPolicySnssaiData)
for snssai, snssaiData := range smPolicyDataResp.SmPolicySnssaiData {
snssai = strings.ToLower(snssai)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename snssai to sstSd

@@ -1535,6 +1556,12 @@ func PolicyDataUesUeIdSmDataPatchProcedure(collName string, ueId string,
logger.DataRepoLog.Warnln(err)
}

for sstSd, snssaiData := range smPolicyData.SmPolicySnssaiData {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a new map to add, and replace smPolicyData.SmPolicySnssaiData with the new map

@tim-ywliu tim-ywliu merged commit a0a3860 into free5gc:main Jul 27, 2023
4 checks passed
tim-ywliu added a commit that referenced this pull request Aug 6, 2023
tim-ywliu added a commit that referenced this pull request Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants