Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
cn5g
oai-cn5g-smf
Commits
6f0d879d
Commit
6f0d879d
authored
Feb 12, 2021
by
Tien-Thinh Nguyen
Browse files
Merge branch 'fix_issues_with_NRF' into 'develop'
Fix issue when restart SMF (with NRF) See merge request
!41
parents
0c2292c9
9ff8681d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/smf_app/smf_app.cpp
View file @
6f0d879d
...
...
@@ -343,15 +343,17 @@ smf_app::smf_app(const std::string& config_file)
start_upf_association
(
*
it
);
}
// Register to NRF (if this option is enabled)
if
(
smf_cfg
.
register_nrf
)
register_to_nrf
();
if
(
smf_cfg
.
discover_upf
)
{
// Trigger NFStatusNotify subscription to be noticed when a new UPF becomes
// available (if this option is enabled)
trigger_upf_status_notification_subscribe
();
}
// Register to NRF (if this option is enabled)
if
(
smf_cfg
.
register_nrf
)
{
unsigned
int
microsecond
=
10000
;
// 10ms
usleep
(
microsecond
);
trigger_upf_status_notification_subscribe
();
register_to_nrf
();
}
Logger
::
smf_app
().
startup
(
"Started"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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