Skip to content

Commit 796a2de

Browse files
authored
Merge pull request #200 from timyl/feat/smf-policy-create-ue-location
feat: include UE location info in SM Policy Association Create request
2 parents f204b60 + 4dc9c90 commit 796a2de

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

internal/sbi/consumer/pcf_service.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ func (s *npcfService) SendSMPolicyAssociationCreate(smContext *smf_context.SMCon
9090
Mnc: smContext.ServingNetwork.Mnc,
9191
}
9292
smPolicyData.SuppFeat = "F"
93+
if smContext.UeLocation != nil {
94+
ueLocation := *smContext.UeLocation
95+
if ueLocation.NrLocation != nil && ueLocation.NrLocation.AgeOfLocationInformation < 0 {
96+
nrLoc := *ueLocation.NrLocation
97+
nrLoc.AgeOfLocationInformation = 0
98+
ueLocation.NrLocation = &nrLoc
99+
}
100+
smPolicyData.UserLocationInfo = &ueLocation
101+
}
93102

94103
ctx, _, err := smf_context.GetSelf().
95104
GetTokenCtx(models.ServiceName_NPCF_SMPOLICYCONTROL, models.NrfNfManagementNfType_PCF)

0 commit comments

Comments
 (0)