-
Notifications
You must be signed in to change notification settings - Fork 98
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 not working; close #141 #147
Conversation
@lyz508 Thanks! |
internal/context/sm_context.go
Outdated
@@ -587,7 +605,7 @@ func (c *SMContext) SelectDefaultDataPath() error { | |||
c.Log.Infof("Has pre-config default path") | |||
uePreConfigPaths := GetUEPreConfigPaths(c.Supi, c.SelectedUPF.Name) | |||
for _, dp := range uePreConfigPaths.DataPathPool { | |||
if !dp.IsDefaultPath { | |||
if dp.IsDefaultPath { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @louisroyer,
If we add the default path created by the ULCL config here,
SMF will create a PDR without a decision from the PCF (e.g., additional charging URRs).
Maybe we could directly use the default path created by PCC rules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lyz508,
how can we use this path? According to
smf/internal/sbi/processor/pdu_session.go
Line 228 in 9ab42f1
// SelectDefaultDataPath() will create a default data path if default data path is not found. |
SelectDefaultDataPath
is called to create the default datapath when it is not found…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @louisroyer,
Sorry for the late reply.
Maybe we could add a check before adding the ULCL default path to SMContext?
defaultPath = uePreConfigPaths.DataPathPool.GetDefaultPath()
if c.Tunnel.DataPathPool.GetDefaultPath() == nil {
c.Tunnel.AddDataPath(defaultPath)
}
Since the default path is added to SMContext when handling PCCRules creation, this approach would help prevent duplicate creation of the default path.
smf/internal/context/sm_context.go
Line 649 in 9ab42f1
createdDataPath.IsDefaultPath = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@louisroyer Yes, thanks for the update!
@ianchen0119 LGTM. |
Hi @Alonza0314 Please test the PR on next branch by using CI-TEST. Thanks. |
I rebased on next. |
It passed the tests. 🎉 |
No description provided.