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
02960d61
Commit
02960d61
authored
Feb 24, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for UPF selection (w/wo NRF)/remove local_configuration
parent
682223fb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
src/smf_app/smf_config.cpp
src/smf_app/smf_config.cpp
+1
-2
src/smf_app/smf_config.hpp
src/smf_app/smf_config.hpp
+0
-3
src/smf_app/smf_pfcp_association.cpp
src/smf_app/smf_pfcp_association.cpp
+2
-2
src/smf_app/smf_pfcp_association.hpp
src/smf_app/smf_pfcp_association.hpp
+1
-0
No files found.
src/smf_app/smf_config.cpp
View file @
02960d61
...
...
@@ -687,7 +687,6 @@ int smf_config::load(const string& config_file) {
// Local configuration
num_session_management_subscription
=
0
;
const
Setting
&
local_cfg
=
smf_cfg
[
SMF_CONFIG_STRING_LOCAL_CONFIGURATION
];
string
local_configuration_str
=
{};
const
Setting
&
session_management_subscription_list_cfg
=
local_cfg
[
SMF_CONFIG_STRING_SESSION_MANAGEMENT_SUBSCRIPTION_LIST
];
...
...
@@ -918,7 +917,7 @@ void smf_config::display() {
Logger
::
smf_app
().
info
(
" Push PCO (DNS+MTU).........: %s"
,
force_push_pco
?
"Yes"
:
"No"
);
if
(
local_configuration
)
{
if
(
use_local_subscription_info
)
{
Logger
::
smf_app
().
info
(
"- "
SMF_CONFIG_STRING_SESSION_MANAGEMENT_SUBSCRIPTION_LIST
":"
);
for
(
int
i
=
0
;
i
<
num_session_management_subscription
;
i
++
)
{
...
...
src/smf_app/smf_config.hpp
View file @
02960d61
...
...
@@ -238,8 +238,6 @@ class smf_config {
std
::
string
api_version
;
}
nrf_addr
;
// Local configuration
bool
local_configuration
;
#define SMF_NUM_SESSION_MANAGEMENT_SUBSCRIPTION_MAX 5
struct
{
snssai_t
single_nssai
;
...
...
@@ -305,7 +303,6 @@ class smf_config {
nrf_addr
.
port
=
80
;
nrf_addr
.
api_version
=
"v1"
;
local_configuration
=
false
;
num_session_management_subscription
=
0
;
for
(
int
i
=
0
;
i
<
SMF_NUM_SESSION_MANAGEMENT_SUBSCRIPTION_MAX
;
i
++
)
{
...
...
src/smf_app/smf_pfcp_association.cpp
View file @
02960d61
...
...
@@ -104,7 +104,7 @@ bool pfcp_associations::add_association(
for
(
std
::
vector
<
std
::
shared_ptr
<
pfcp_association
>>::
iterator
it
=
pending_associations
.
begin
();
it
<
pending_associations
.
end
();
++
it
)
{
if
((
*
it
)
->
node_id
==
node_id
)
{
if
((
(
*
it
)
->
node_id
==
node_id
)
and
((
*
it
)
->
is_upf_profile_set
())
)
{
Logger
::
smf_app
().
info
(
"Associate with UPF profile"
);
sa
->
set_upf_node_profile
((
*
it
)
->
get_upf_node_profile
());
break
;
...
...
@@ -146,7 +146,7 @@ bool pfcp_associations::add_association(
for
(
std
::
vector
<
std
::
shared_ptr
<
pfcp_association
>>::
iterator
it
=
pending_associations
.
begin
();
it
<
pending_associations
.
end
();
++
it
)
{
if
((
*
it
)
->
node_id
==
node_id
)
{
if
((
(
*
it
)
->
node_id
==
node_id
)
and
((
*
it
)
->
is_upf_profile_set
())
)
{
Logger
::
smf_app
().
info
(
"Associate with UPF profile"
);
sa
->
set_upf_node_profile
((
*
it
)
->
get_upf_node_profile
());
break
;
...
...
src/smf_app/smf_pfcp_association.hpp
View file @
02960d61
...
...
@@ -145,6 +145,7 @@ class pfcp_association {
upf_node_profile
=
profile
;
upf_profile_is_set
=
true
;
};
bool
is_upf_profile_set
()
{
return
upf_profile_is_set
;
}
void
get_upf_node_profile
(
upf_profile
&
profile
)
const
{
profile
=
upf_node_profile
;
};
...
...
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