Skip to content

Commit

Permalink
Fix merge conflict issue. Removed duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
saileshvvr committed Apr 6, 2024
1 parent 8a0d7bf commit e775b57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion internal/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ func InitSmfContext(config *factory.Config) {
smfContext.Ues = InitSmfUeData()

TeidGenerator = idgenerator.NewGenerator(1, math.MaxUint32)

}

func InitSMFUERouting(routingConfig *factory.RoutingConfig) {
Expand Down
4 changes: 4 additions & 0 deletions internal/context/ngap_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func HandlePDUSessionResourceSetupResponseTransfer(b []byte, ctx *SMContext) (er
resourceSetupResponseTransfer := ngapType.PDUSessionResourceSetupResponseTransfer{}

err = aper.UnmarshalWithParams(b, &resourceSetupResponseTransfer, "valueExt")

if err != nil {
return err
}
Expand Down Expand Up @@ -108,6 +109,7 @@ func HandlePDUSessionResourceSetupUnsuccessfulTransfer(b []byte, ctx *SMContext)
resourceSetupUnsuccessfulTransfer := ngapType.PDUSessionResourceSetupUnsuccessfulTransfer{}

err = aper.UnmarshalWithParams(b, &resourceSetupUnsuccessfulTransfer, "valueExt")

if err != nil {
return err
}
Expand Down Expand Up @@ -194,6 +196,7 @@ func HandlePathSwitchRequestSetupFailedTransfer(b []byte, ctx *SMContext) (err e
pathSwitchRequestSetupFailedTransfer := ngapType.PathSwitchRequestSetupFailedTransfer{}

err = aper.UnmarshalWithParams(b, &pathSwitchRequestSetupFailedTransfer, "valueExt")

if err != nil {
return err
}
Expand Down Expand Up @@ -226,6 +229,7 @@ func HandleHandoverRequestAcknowledgeTransfer(b []byte, ctx *SMContext) (err err
handoverRequestAcknowledgeTransfer := ngapType.HandoverRequestAcknowledgeTransfer{}

err = aper.UnmarshalWithParams(b, &handoverRequestAcknowledgeTransfer, "valueExt")

if err != nil {
return err
}
Expand Down
4 changes: 0 additions & 4 deletions internal/sbi/producer/pdu_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,6 @@ func HandlePDUSessionSMContextCreate(isDone <-chan struct{},
&Nsmf_PDUSession.InsufficientResourceSliceDnn)
}

if err = smContext.ApplyPccRules(smPolicyDecision); err != nil {
smContext.Log.Errorf("apply sm policy decision error: %+v", err)
}

// UECM registration
problemDetails, err = consumer.UeCmRegistration(smContext)
if problemDetails != nil {
Expand Down

0 comments on commit e775b57

Please sign in to comment.