Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ulcl usage report error #131

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions internal/context/sm_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,9 @@ func (c *SMContext) SelectDefaultDataPath() error {

var defaultPath *DataPath
if GetSelf().ULCLSupport && CheckUEHasPreConfig(c.Supi) {
c.Log.Infof("Has pre-config route")
c.Log.Infof("Has pre-config default path")
uePreConfigPaths := GetUEPreConfigPaths(c.Supi, c.SelectedUPF.Name)
c.Tunnel.DataPathPool = uePreConfigPaths.DataPathPool
c.Tunnel.PathIDGenerator = uePreConfigPaths.PathIDGenerator
defaultPath = c.Tunnel.DataPathPool.GetDefaultPath()
defaultPath = uePreConfigPaths.DataPathPool.GetDefaultPath()
} else if c.Tunnel.DataPathPool.GetDefaultPath() == nil {
// UE has no pre-config path and default path
// Use default route
Expand Down
3 changes: 3 additions & 0 deletions internal/context/sm_context_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ func (c *SMContext) ApplyPccRules(
if tgtQosID != "" {
finalQosDatas[tgtQosID] = tgtQosData
}
if tgtChgID != "" {
finalChgDatas[tgtChgID] = tgtChgData
}
}
if err := checkUpPathChangeEvt(c, srcTcData, tgtTcData); err != nil {
c.Log.Warnf("Check UpPathChgEvent err: %v", err)
Expand Down
4 changes: 3 additions & 1 deletion internal/sbi/processor/datapath.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ func ActivateUPFSession(
if node.DownLinkTunnel != nil && node.DownLinkTunnel.PDR != nil {
pdrList = append(pdrList, node.DownLinkTunnel.PDR)
farList = append(farList, node.DownLinkTunnel.PDR.FAR)
urrList = append(urrList, node.DownLinkTunnel.PDR.URR...)
if node.DownLinkTunnel.PDR.URR != nil {
urrList = append(urrList, node.DownLinkTunnel.PDR.URR...)
}
// skip send QER because uplink and downlink shared one QER
}

Expand Down
Loading