-
Notifications
You must be signed in to change notification settings - Fork 47
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
Conversation
@@ -1481,6 +1488,12 @@ func PolicyDataUesUeIdSmDataGetProcedure(collName string, ueId string, snssai mo | |||
smPolicyDataResp.UmData[element.LimitId] = element | |||
} | |||
} | |||
|
|||
for sstSd, snssaiData := range smPolicyDataResp.SmPolicySnssaiData { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
This PR is for free5gc issue #435