From 8a6d59371a52dbefd25b5bccbcf04ca6b5fa814d Mon Sep 17 00:00:00 2001 From: "CTFang@WireLab" Date: Thu, 7 Dec 2023 04:41:39 +0000 Subject: [PATCH] Fix: add allowedNfTypes in NfProfile --- internal/context/context.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/context/context.go b/internal/context/context.go index 88bf6d7..33c154d 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -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, @@ -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, } }