Skip to content

Commit

Permalink
Fix: add allowedNfTypes in NfProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Dec 7, 2023
1 parent c897c43 commit ef80364
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,9 @@ func (context *UDMContext) InitNFService(serviceList []factory.ServiceList, vers
for index, service := range serviceList {
name := models.ServiceName(service.ServiceName)
allowNfTypes := make([]models.NfType, len(service.AllowedNfTypes))
for idx, nf := range service.AllowedNfTypes {
allowNfTypes[idx] = models.NfType(nf)
}
context.NfService[name] = models.NfService{
ServiceInstanceId: strconv.Itoa(index),
ServiceName: name,
Expand All @@ -480,8 +483,6 @@ func (context *UDMContext) InitNFService(serviceList []factory.ServiceList, vers
Port: int32(context.SBIPort),
},
},
// TODO
// Not yet implement the verification of allowNfTypes using this parameters
AllowedNfTypes: allowNfTypes,
}
}
Expand Down

0 comments on commit ef80364

Please sign in to comment.