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
c2f53e73
Commit
c2f53e73
authored
Nov 23, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debugging log
parent
8657c430
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+2
-1
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+12
-5
No files found.
src/smf_app/smf_app.cpp
View file @
c2f53e73
...
...
@@ -1500,7 +1500,8 @@ bool smf_app::handle_nf_status_notification(
itti_msg
->
get_msg_name
());
}
}
else
{
Logger
::
smf_app
().
debug
(
"No IP Addr/FQDN found"
);
Logger
::
smf_app
().
debug
(
"No IP Addr/FQDN found or UPF node already exist"
);
return
false
;
}
}
...
...
src/smf_app/smf_pfcp_association.cpp
View file @
c2f53e73
...
...
@@ -45,13 +45,22 @@ extern smf_n4* smf_n4_inst;
extern
smf_config
smf_cfg
;
edge
edge
::
from_upf_info
(
const
upf_info_t
&
upf_info
)
{
edge
e
;
snssai_upf_info_item_s
snssai_item
;
edge
e
=
{}
;
snssai_upf_info_item_s
snssai_item
=
{}
;
for
(
const
auto
&
snssai
:
upf_info
.
snssai_upf_info_list
)
{
snssai_item
.
snssai
=
snssai
.
snssai
;
snssai_item
.
dnn_upf_info_list
=
snssai
.
dnn_upf_info_list
;
e
.
snssai_dnns
.
insert
(
snssai
);
e
.
snssai_dnns
.
insert
(
snssai_item
);
}
if
(
!
e
.
snssai_dnns
.
empty
())
{
Logger
::
smf_app
().
debug
(
"Edge from UPF info"
);
for
(
const
auto
s
:
e
.
snssai_dnns
)
{
Logger
::
smf_app
().
debug
(
"info: %s"
,
s
.
to_string
().
c_str
());
}
}
else
{
Logger
::
smf_app
().
debug
(
"Edge from UPF info, empty"
);
}
return
e
;
}
...
...
@@ -999,11 +1008,9 @@ void upf_graph::add_upf_graph_edge(
std
::
unique_lock
lock_graph
(
graph_mutex
);
auto
it_src
=
adjacency_list
.
find
(
source
);
if
(
it_src
==
adjacency_list
.
end
())
{
return
;
}
bool
exists
=
false
;
for
(
const
auto
&
edge
:
it_src
->
second
)
{
if
(
edge
==
edge_info_src_dst
)
{
...
...
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