Skip to content

Commit 95a0bb8

Browse files
authored
Merge pull request #160 from andy89923/fix/service-endpoints
fix: add IpEndPoints in NfProfile Service List
2 parents 41c4c04 + a0b9328 commit 95a0bb8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

internal/context/nf_profile.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ func (c *SMFContext) SetupNFProfile(nfProfileconfig *factory.Config) {
3939
Scheme: models.UriScheme_HTTPS,
4040
NfServiceStatus: models.NfServiceStatus_REGISTERED,
4141
ApiPrefix: fmt.Sprintf("%s://%s:%d", GetSelf().URIScheme, GetSelf().RegisterIPv4, GetSelf().SBIPort),
42+
IpEndPoints: []models.IpEndPoint{
43+
{
44+
Ipv4Address: GetSelf().RegisterIPv4,
45+
Port: int32(GetSelf().SBIPort),
46+
},
47+
},
4248
})
4349
}
4450

@@ -79,6 +85,5 @@ func SNssaiSmfInfo() []models.SnssaiSmfInfoItem {
7985

8086
snssaiInfo = append(snssaiInfo, snssaiInfoModel)
8187
}
82-
8388
return snssaiInfo
8489
}

0 commit comments

Comments
 (0)