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
643c367c
Commit
643c367c
authored
Jun 17, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update action with support features
parent
8f92ce7c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
249 additions
and
207 deletions
+249
-207
src/smf_app/smf_app.cpp
src/smf_app/smf_app.cpp
+7
-7
src/smf_app/smf_config.cpp
src/smf_app/smf_config.cpp
+235
-200
src/smf_app/smf_config.hpp
src/smf_app/smf_config.hpp
+7
-0
No files found.
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