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
538ba20f
Commit
538ba20f
authored
Nov 23, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue to create Edge from UPF info
parent
e78d8e49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
src/common/smf.h
src/common/smf.h
+1
-1
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+14
-3
No files found.
src/common/smf.h
View file @
538ba20f
...
@@ -441,7 +441,7 @@ typedef struct snssai_upf_info_item_s {
...
@@ -441,7 +441,7 @@ typedef struct snssai_upf_info_item_s {
std
::
string
to_string
()
const
{
std
::
string
to_string
()
const
{
std
::
string
s
=
{};
std
::
string
s
=
{};
s
.
append
(
"SNSSAI Info: "
+
snssai
.
toString
()
+
","
);
s
.
append
(
"SNSSAI Info: "
+
snssai
.
toString
()
+
",
"
);
if
(
dnn_upf_info_list
.
size
()
>
0
)
{
if
(
dnn_upf_info_list
.
size
()
>
0
)
{
s
.
append
(
"DNN UPF Info list: {"
);
s
.
append
(
"DNN UPF Info list: {"
);
...
...
src/smf_app/smf_pfcp_association.cpp
View file @
538ba20f
...
@@ -52,9 +52,20 @@ edge edge::from_upf_info(const upf_info_t& upf_info) {
...
@@ -52,9 +52,20 @@ edge edge::from_upf_info(const upf_info_t& upf_info) {
"Edge from UPF info, UPF info %s"
,
upf_info
.
to_string
().
c_str
());
"Edge from UPF info, UPF info %s"
,
upf_info
.
to_string
().
c_str
());
for
(
const
auto
&
snssai
:
upf_info
.
snssai_upf_info_list
)
{
for
(
const
auto
&
snssai
:
upf_info
.
snssai_upf_info_list
)
{
snssai_item
.
snssai
=
snssai
.
snssai
;
snssai_item
.
snssai
=
snssai
.
snssai
;
snssai_item
.
dnn_upf_info_list
=
snssai
.
dnn_upf_info_list
;
bool
found
=
false
;
e
.
snssai_dnns
.
insert
(
snssai_item
);
for
(
auto
&
item
:
e
.
snssai_dnns
)
{
if
(
item
.
snssai
==
snssai
.
snssai
)
{
// update item
found
=
true
;
item
.
dnn_upf_info_list
.
insert
(
snssai
.
dnn_upf_info_list
);
break
;
}
}
if
(
!
found
)
{
snssai_item
.
dnn_upf_info_list
=
snssai
.
dnn_upf_info_list
;
e
.
snssai_dnns
.
insert
(
snssai_item
);
}
}
}
if
(
!
e
.
snssai_dnns
.
empty
())
{
if
(
!
e
.
snssai_dnns
.
empty
())
{
...
...
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