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
ba1e891e
Commit
ba1e891e
authored
Oct 18, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug info for UPF Info
parent
e1b9699a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
src/common/smf.h
src/common/smf.h
+16
-0
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+5
-0
No files found.
src/common/smf.h
View file @
ba1e891e
...
...
@@ -342,6 +342,22 @@ typedef struct interface_upf_info_item_s {
typedef
struct
upf_info_s
{
std
::
vector
<
interface_upf_info_item_t
>
interface_upf_info_list
;
std
::
vector
<
snssai_upf_info_item_t
>
snssai_upf_info_list
;
std
::
string
to_string
()
const
{
std
::
string
s
=
{};
// TODO: Interface UPF Info List
if
(
!
snssai_upf_info_list
.
empty
())
{
s
.
append
(
"SNSSAI UPF Info:
\n
"
);
for
(
auto
sn
:
snssai_upf_info_list
)
{
s
.
append
(
"SNSSAI: "
+
sn
.
snssai
.
toString
()
+
"
\n
"
);
s
.
append
(
"DNN UPF Info: "
);
for
(
auto
d
:
sn
.
dnn_upf_info_list
)
{
s
.
append
(
","
+
d
.
dnn
);
}
}
}
return
s
;
}
}
upf_info_t
;
typedef
struct
patch_item_s
{
...
...
src/smf_app/smf_pfcp_association.cpp
View file @
ba1e891e
...
...
@@ -418,6 +418,7 @@ bool pfcp_associations::select_up_node(
pfcp
::
node_id_t
&
node_id
,
const
snssai_t
&
snssai
,
const
std
::
string
&
dnn
)
{
node_id
=
{};
if
(
associations
.
empty
())
{
Logger
::
smf_app
().
debug
(
"No UPF available"
);
return
false
;
}
folly
::
AtomicHashMap
<
int32_t
,
std
::
shared_ptr
<
pfcp_association
>>::
iterator
it
;
...
...
@@ -433,7 +434,11 @@ bool pfcp_associations::select_up_node(
// else, verify that UPF belongs to the same slice and supports this dnn
std
::
vector
<
snssai_t
>
snssais
=
{};
upf_info_t
upf_info
=
{};
a
->
upf_node_profile
.
get_upf_info
(
upf_info
);
Logger
::
smf_app
().
debug
(
"UPF profile info: %s"
,
upf_info
.
to_string
().
c_str
());
for
(
auto
ui
:
upf_info
.
snssai_upf_info_list
)
{
if
(
ui
.
snssai
==
snssai
)
{
for
(
auto
d
:
ui
.
dnn_upf_info_list
)
{
...
...
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