diff --git a/internal/context/datapath.go b/internal/context/datapath.go index 4992eb86..d8a31d59 100644 --- a/internal/context/datapath.go +++ b/internal/context/datapath.go @@ -409,17 +409,6 @@ func (datapath *DataPath) addUrrToPath(smContext *SMContext) { MAQEUrrId = smContext.UrrIdMap[N9N6_MAQE_URR] } - // if curDataPathNode.IsANUPF() { - // MBQEUrrId, err = curDataPathNode.UPF.urrIDGenerator.Allocate() - // if err != nil { - // logger.CtxLog.Warnf("MBQE URR ID allocate error: %v\n", err) - // } - // MAQEUrrId, err = curDataPathNode.UPF.urrIDGenerator.Allocate() - // if err != nil { - // logger.CtxLog.Warnf("MAQE URR ID allocate error: %v\n", err) - // } - // } - curDataPathNode.addUrrToNode(smContext, MBQEUrrId, true, true) curDataPathNode.addUrrToNode(smContext, MAQEUrrId, true, false) } diff --git a/internal/context/sm_context.go b/internal/context/sm_context.go index 378ec99f..30bbb061 100644 --- a/internal/context/sm_context.go +++ b/internal/context/sm_context.go @@ -216,8 +216,6 @@ type SMContext struct { // However, a rating group may map to more than one urr // e.g. In UL CL case, the rating group for recoreding PDU Session volume may map to two URR // one is for PSA 1, the other is for PSA 2. - // Note: the premise is that urrid in a pdu session is unique, urr in same or different upf cannot have the same urrid - // TODO: curerrently have not tested the case where multiple urr share the same rating group ChargingInfo map[uint32]*ChargingInfo // NAS Pti uint8 @@ -913,15 +911,6 @@ func (smContext *SMContext) IsAllowedPDUSessionType(requestedPDUSessionType uint return nil } -// func (smContext *SMContext) GetUrrTypeById(urrId uint32) (UrrType, error) { -// for urrType, id := range smContext.UrrIdMap { -// if id == urrId { -// return urrType, nil -// } -// } -// return NOT_FOUND_URR, fmt.Errorf("Urr type not found ") -// } - func (smContext *SMContext) StopT3591() { if smContext.T3591 != nil { smContext.T3591.Stop()