Skip to content
GitLab
Menu
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
643c367c
Commit
643c367c
authored
Jun 17, 2021
by
Tien-Thinh Nguyen
Browse files
Update action with support features
parent
8f92ce7c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/smf_app/smf_app.cpp
View file @
643c367c
...
...
@@ -340,17 +340,17 @@ smf_app::smf_app(const std::string& config_file)
throw
;
}
// TODO: should be done when SMF select UPF for a particular UE (should be
// verified)
for
(
std
::
vector
<
pfcp
::
node_id_t
>::
const_iterator
it
=
smf_cfg
.
upfs
.
begin
();
it
!=
smf_cfg
.
upfs
.
end
();
++
it
)
{
start_upf_association
(
*
it
);
}
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
();
}
else
{
// TODO: should be done when SMF select UPF for a particular UE (should be
// verified)
for
(
std
::
vector
<
pfcp
::
node_id_t
>::
const_iterator
it
=
smf_cfg
.
upfs
.
begin
();
it
!=
smf_cfg
.
upfs
.
end
();
++
it
)
{
start_upf_association
(
*
it
);
}
}
// Register to NRF (if this option is enabled)
...
...
src/smf_app/smf_config.cpp
View file @
643c367c
This diff is collapsed.
Click to expand it.
src/smf_app/smf_config.hpp
View file @
643c367c
...
...
@@ -226,12 +226,14 @@ class smf_config {
struct
in_addr
ipv4_addr
;
unsigned
int
port
;
std
::
string
api_version
;
std
::
string
fqdn
;
}
amf_addr
;
struct
{
struct
in_addr
ipv4_addr
;
unsigned
int
port
;
std
::
string
api_version
;
std
::
string
fqdn
;
}
udm_addr
;
std
::
vector
<
pfcp
::
node_id_t
>
upfs
;
...
...
@@ -240,6 +242,7 @@ class smf_config {
struct
in_addr
ipv4_addr
;
unsigned
int
port
;
std
::
string
api_version
;
std
::
string
fqdn
;
}
nrf_addr
;
#define SMF_NUM_SESSION_MANAGEMENT_SUBSCRIPTION_MAX 10
...
...
@@ -299,13 +302,17 @@ class smf_config {
amf_addr
.
ipv4_addr
.
s_addr
=
INADDR_ANY
;
amf_addr
.
port
=
80
;
amf_addr
.
api_version
=
"v1"
;
amf_addr
.
fqdn
=
{};
udm_addr
.
ipv4_addr
.
s_addr
=
INADDR_ANY
;
udm_addr
.
port
=
80
;
udm_addr
.
api_version
=
"v1"
;
udm_addr
.
fqdn
=
{};
nrf_addr
.
ipv4_addr
.
s_addr
=
INADDR_ANY
;
nrf_addr
.
port
=
80
;
nrf_addr
.
api_version
=
"v1"
;
nrf_addr
.
fqdn
=
{};
num_session_management_subscription
=
0
;
...
...
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