Skip to content

Commit

Permalink
Due to Typo error, subriber deltion is not working (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
vthiruveedula authored Mar 10, 2022
1 parent 02f7325 commit 6bf5a23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion producer/smpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func HandleDeleteSmPolicyContextRequest(request *http_wrapper.Request) *http_wra
logger.SMpolicylog.Infof("Handle DeleteSmPolicyContext")

// step 2: retrieve request
smPolicyID := request.Params["smPolicyID"]
smPolicyID := request.Params["smPolicyId"]

// step 3: handle the message
problemDetails := deleteSmPolicyContextProcedure(smPolicyID)
Expand All @@ -309,6 +309,7 @@ func deleteSmPolicyContextProcedure(smPolicyID string) *models.ProblemDetails {
logger.AMpolicylog.Traceln("Handle SM Policy Delete")

ue := pcf_context.PCF_Self().PCFUeFindByPolicyId(smPolicyID)
logger.SMpolicylog.Infof("smPolicyID: %v, ue: %v", smPolicyID, ue)
if ue == nil || ue.SmPolicyData[smPolicyID] == nil {
problemDetail := util.GetProblemDetail("smPolicyID not found in PCF", util.CONTEXT_NOT_FOUND)
logger.SMpolicylog.Warnf(problemDetail.Detail)
Expand Down
2 changes: 1 addition & 1 deletion service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ func UpdatePcfSubsriberPolicyData(slice *protos.NetworkSlice) {
}

case protos.OpType_SLICE_DELETE:
logger.GrpcLog.Infof("Received Slice with OperationType: Update from ConfigPod")
logger.GrpcLog.Infof("Received Slice with OperationType: Delete from ConfigPod")
for _, imsi := range slice.DeletedImsis {
policyData, ok := self.PcfSubscriberPolicyData[imsi]
if !ok {
Expand Down

0 comments on commit 6bf5a23

Please sign in to comment.