Skip to content

Commit

Permalink
fix:add tai in NSSelectionGetForRegistration
Browse files Browse the repository at this point in the history
  • Loading branch information
donald1218 committed Jun 20, 2024
1 parent f829f66 commit e30b2ce
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions internal/sbi/consumer/nssf_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ func (s *nssfService) NSSelectionGetForRegistration(ue *amf_context.AmfUe, reque

var paramOpt Nnssf_NSSelection.NSSelectionGetParamOpts
if e, errsliceinfo := json.Marshal(sliceInfo); errsliceinfo != nil {
logger.ConsumerLog.Warnf("json marshal failed: %+v", errsliceinfo)
logger.ConsumerLog.Warnf("slice json marshal failed: %+v", errsliceinfo)
} else {
tai, taierr := json.Marshal(ue.Tai)
if taierr != nil {
logger.ConsumerLog.Warnf("tai json marshal failed: %+v", taierr)
}
paramOpt = Nnssf_NSSelection.NSSelectionGetParamOpts{
SliceInfoRequestForRegistration: optional.NewInterface(string(e)),
Tai: optional.NewInterface(string(tai)), // TS 29.531 R15.3 6.1.3.2.3.1
}
}

Expand Down Expand Up @@ -122,11 +127,11 @@ func (s *nssfService) NSSelectionGetForPduSession(ue *amf_context.AmfUe, snssai

e, err := json.Marshal(sliceInfoForPduSession)
if err != nil {
logger.ConsumerLog.Warnf("json marshal failed: %+v", err)
logger.ConsumerLog.Warnf("slice json marshal failed: %+v", err)
}
tai, taierr := json.Marshal(ue.Tai)
if taierr != nil {
logger.ConsumerLog.Warnf("json marshal failed: %+v", taierr)
logger.ConsumerLog.Warnf("tai json marshal failed: %+v", taierr)
}
paramOpt := Nnssf_NSSelection.NSSelectionGetParamOpts{
SliceInfoRequestForPduSession: optional.NewInterface(string(e)),
Expand Down

0 comments on commit e30b2ce

Please sign in to comment.