Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
9d2804cb
Commit
9d2804cb
authored
Feb 22, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add log for UPF selection function
parent
e3cd0205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+6
-0
No files found.
src/smf_app/smf_pfcp_association.cpp
View file @
9d2804cb
...
@@ -323,6 +323,8 @@ bool pfcp_associations::select_up_node(
...
@@ -323,6 +323,8 @@ bool pfcp_associations::select_up_node(
// get the first node id if there's no upf profile (get UPFs from conf file)
// get the first node id if there's no upf profile (get UPFs from conf file)
if
(
!
a
->
upf_profile_is_set
)
{
if
(
!
a
->
upf_profile_is_set
)
{
node_id
=
it
->
second
->
node_id
;
node_id
=
it
->
second
->
node_id
;
Logger
::
smf_app
().
info
(
"Could not found UPF profile, select the first available UPF"
);
return
true
;
return
true
;
}
}
// else, verify that UPF belongs to the same slice and supports this dnn
// else, verify that UPF belongs to the same slice and supports this dnn
...
@@ -334,6 +336,10 @@ bool pfcp_associations::select_up_node(
...
@@ -334,6 +336,10 @@ bool pfcp_associations::select_up_node(
for
(
auto
d
:
ui
.
dnn_upf_info_list
)
{
for
(
auto
d
:
ui
.
dnn_upf_info_list
)
{
if
(
d
.
dnn
.
compare
(
dnn
)
==
0
)
{
if
(
d
.
dnn
.
compare
(
dnn
)
==
0
)
{
node_id
=
it
->
second
->
node_id
;
node_id
=
it
->
second
->
node_id
;
Logger
::
smf_app
().
info
(
"Select the UPF for the corresponding DNN %s, NSSSAI (SD: %s, "
"SST: %d) "
,
d
.
dnn
.
c_str
(),
snssai
.
sD
,
snssai
.
sST
);
return
true
;
return
true
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment