Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
21d251c6
Commit
21d251c6
authored
Jun 14, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
To Json: remove SD for standardize SST
parent
1f899261
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
20 deletions
+14
-20
src/amf-app/amf_config.cpp
src/amf-app/amf_config.cpp
+0
-6
src/amf-app/amf_config.hpp
src/amf-app/amf_config.hpp
+14
-14
No files found.
src/amf-app/amf_config.cpp
View file @
21d251c6
...
...
@@ -823,12 +823,6 @@ void amf_config::display() {
Logger
::
config
().
info
(
" Use HTTP2..............: %s"
,
support_features
.
use_http2
?
"Yes"
:
"No"
);
// SHOULD BE REMOVED
nlohmann
::
json
json_data
=
{};
to_json
(
json_data
);
Logger
::
config
().
info
(
" JSON..............:
\n
%s"
,
json_data
.
dump
().
c_str
());
}
//------------------------------------------------------------------------------
...
...
src/amf-app/amf_config.hpp
View file @
21d251c6
...
...
@@ -127,11 +127,11 @@ typedef struct {
std
::
string
random
;
nlohmann
::
json
to_json
()
const
{
nlohmann
::
json
json_data
=
{};
json_data
[
"mysql_server"
]
=
mysql_server
;
json_data
[
"mysql_user"
]
=
mysql_user
;
json_data
[
"mysql_pass"
]
=
mysql_pass
;
json_data
[
"mysql_db"
]
=
mysql_db
;
json_data
[
"random"
]
=
random
;
json_data
[
"mysql_server"
]
=
this
->
mysql_server
;
json_data
[
"mysql_user"
]
=
this
->
mysql_user
;
json_data
[
"mysql_pass"
]
=
this
->
mysql_pass
;
json_data
[
"mysql_db"
]
=
this
->
mysql_db
;
json_data
[
"random"
]
=
this
->
random
;
return
json_data
;
}
}
auth_conf
;
...
...
@@ -176,11 +176,11 @@ typedef struct guami_s {
nlohmann
::
json
to_json
()
const
{
nlohmann
::
json
json_data
=
{};
json_data
[
"mcc"
]
=
mcc
;
json_data
[
"mnc"
]
=
mnc
;
json_data
[
"regionID"
]
=
regionID
;
json_data
[
"AmfSetID"
]
=
AmfSetID
;
json_data
[
"AmfPointer"
]
=
AmfPointer
;
json_data
[
"mcc"
]
=
this
->
mcc
;
json_data
[
"mnc"
]
=
this
->
mnc
;
json_data
[
"regionID"
]
=
this
->
regionID
;
json_data
[
"AmfSetID"
]
=
this
->
AmfSetID
;
json_data
[
"AmfPointer"
]
=
this
->
AmfPointer
;
return
json_data
;
}
}
guami_t
;
...
...
@@ -204,8 +204,8 @@ typedef struct slice_s {
}
nlohmann
::
json
to_json
()
const
{
nlohmann
::
json
json_data
=
{};
json_data
[
"sst"
]
=
sst
;
json_data
[
"sd"
]
=
sd
;
json_data
[
"sst"
]
=
this
->
sst
;
if
(
sst
>
127
)
json_data
[
"sd"
]
=
this
->
sd
;
return
json_data
;
}
...
...
@@ -220,8 +220,8 @@ typedef struct plmn_support_item_s {
nlohmann
::
json
to_json
()
const
{
nlohmann
::
json
json_data
=
{};
json_data
[
"mcc"
]
=
this
->
mcc
;
json_data
[
"mnc"
]
=
mnc
;
json_data
[
"tac"
]
=
tac
;
json_data
[
"mnc"
]
=
this
->
mnc
;
json_data
[
"tac"
]
=
t
his
->
t
ac
;
json_data
[
"slice_list"
]
=
nlohmann
::
json
::
array
();
for
(
auto
s
:
slice_list
)
{
json_data
[
"slice_list"
].
push_back
(
s
.
to_json
());
...
...
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