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
8bff2009
Commit
8bff2009
authored
Nov 16, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
1ef4ef71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
src/smf_app/smf_config.cpp
src/smf_app/smf_config.cpp
+2
-6
src/smf_app/smf_config.hpp
src/smf_app/smf_config.hpp
+0
-20
No files found.
src/smf_app/smf_config.cpp
View file @
8bff2009
...
...
@@ -667,8 +667,7 @@ int smf_config::load(const string& config_file) {
if
(
addr_type
!=
0
)
{
// IPv6
// TODO:
throw
(
"DO NOT SUPPORT IPV6 ADDR FOR NRF!"
);
}
else
{
// IPv4
// pfcp::node_id_t n = {};
}
else
{
// IPv4
n
.
node_id_type
=
pfcp
::
NODE_ID_TYPE_IPV4_ADDRESS
;
// actually
n
.
fqdn
=
astring
;
if
(
inet_pton
(
AF_INET
,
util
::
trim
(
address
).
c_str
(),
buf_in_addr
)
==
...
...
@@ -745,7 +744,6 @@ int smf_config::load(const string& config_file) {
"BAD IPv4 ADDRESS FORMAT FOR NRF !"
);
nrf_addr
.
ipv4_addr
=
nrf_ipv4_addr
;
// nrf_addr.port = nrf_port;
// We hardcode nrf port from config for the moment
if
(
!
(
nrf_cfg
.
lookupValue
(
SMF_CONFIG_STRING_NRF_PORT
,
nrf_port
)))
{
Logger
::
smf_app
().
error
(
SMF_CONFIG_STRING_NRF_PORT
"failed"
);
...
...
@@ -760,7 +758,6 @@ int smf_config::load(const string& config_file) {
// Local configuration
if
(
use_local_subscription_info
)
{
// num_session_management_subscription = 0;
const
Setting
&
local_cfg
=
smf_cfg
[
SMF_CONFIG_STRING_LOCAL_CONFIGURATION
];
const
Setting
&
session_management_subscription_list_cfg
=
...
...
@@ -783,6 +780,7 @@ int smf_config::load(const string& config_file) {
string
qos_profile_arp_preemptvuln
=
{};
string
session_ambr_ul
=
{};
string
session_ambr_dl
=
{};
session_management_subscription_cfg
.
lookupValue
(
SMF_CONFIG_STRING_NSSAI_SST
,
nssai_sst
);
session_management_subscription_cfg
.
lookupValue
(
...
...
@@ -825,7 +823,6 @@ int smf_config::load(const string& config_file) {
sub_item
.
default_qos
.
arp
.
preempt_vuln
=
qos_profile_arp_preemptvuln
;
sub_item
.
session_ambr
.
downlink
=
session_ambr_dl
;
sub_item
.
session_ambr
.
uplink
=
session_ambr_ul
;
// num_session_management_subscription++;
session_management_subscriptions
.
push_back
(
sub_item
);
}
}
...
...
@@ -833,7 +830,6 @@ int smf_config::load(const string& config_file) {
Logger
::
smf_app
().
error
(
"%s : %s"
,
nfex
.
what
(),
nfex
.
getPath
());
return
RETURNerror
;
}
// return finalize();
}
//------------------------------------------------------------------------------
...
...
src/smf_app/smf_config.hpp
View file @
8bff2009
...
...
@@ -194,20 +194,6 @@ typedef struct session_management_subscription_s {
session_ambr_t
session_ambr
;
}
session_management_subscription_t
;
/*
#define SMF_NUM_SESSION_MANAGEMENT_SUBSCRIPTION_MAX 10
struct {
snssai_t single_nssai;
std::string session_type;
std::string dnn;
uint8_t ssc_mode;
subscribed_default_qos_t default_qos;
session_ambr_t session_ambr;
} session_management_subscription
[SMF_NUM_SESSION_MANAGEMENT_SUBSCRIPTION_MAX];
uint8_t num_session_management_subscription;
*/
class
smf_config
{
private:
int
load_itti
(
const
libconfig
::
Setting
&
itti_cfg
,
itti_cfg_t
&
cfg
);
...
...
@@ -321,12 +307,6 @@ class smf_config {
nrf_addr
.
api_version
=
"v1"
;
nrf_addr
.
fqdn
=
{};
/* num_session_management_subscription = 0;
for (int i = 0; i < SMF_NUM_SESSION_MANAGEMENT_SUBSCRIPTION_MAX; i++) {
session_management_subscription[i] = {};
}
*/
sbi_http2_port
=
8080
;
sbi_api_version
=
"v1"
;
http_version
=
1
;
...
...
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