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
c62b0e54
Commit
c62b0e54
authored
Jun 14, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix config display
parent
592b3719
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
17 deletions
+26
-17
src/amf-app/amf_config.cpp
src/amf-app/amf_config.cpp
+26
-15
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+0
-2
No files found.
src/amf-app/amf_config.cpp
View file @
c62b0e54
...
@@ -686,39 +686,50 @@ void amf_config::display() {
...
@@ -686,39 +686,50 @@ void amf_config::display() {
Logger
::
config
().
info
(
Logger
::
config
().
info
(
"- GUAMI (MCC, MNC, Region ID, AMF Set ID, AMF pointer): "
);
"- GUAMI (MCC, MNC, Region ID, AMF Set ID, AMF pointer): "
);
Logger
::
config
().
info
(
Logger
::
config
().
info
(
"
(%s, %s, %s, %s, %s
)"
,
guami
.
mcc
.
c_str
(),
guami
.
mnc
.
c_str
(),
"
(%s, %s, %s, %s, %s
)"
,
guami
.
mcc
.
c_str
(),
guami
.
mnc
.
c_str
(),
guami
.
regionID
.
c_str
(),
guami
.
AmfSetID
.
c_str
(),
guami
.
AmfPointer
.
c_str
());
guami
.
regionID
.
c_str
(),
guami
.
AmfSetID
.
c_str
(),
guami
.
AmfPointer
.
c_str
());
Logger
::
config
().
info
(
"- Served
_Guami_List .......:
"
);
Logger
::
config
().
info
(
"- Served
Guami List:
"
);
for
(
int
i
=
0
;
i
<
guami_list
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
guami_list
.
size
();
i
++
)
{
Logger
::
config
().
info
(
Logger
::
config
().
info
(
" (%s, %s, %s , %s, %s)"
,
guami_list
[
i
].
mcc
.
c_str
(),
"
(%s, %s, %s , %s, %s)"
,
guami_list
[
i
].
mcc
.
c_str
(),
guami_list
[
i
].
mnc
.
c_str
(),
guami_list
[
i
].
regionID
.
c_str
(),
guami_list
[
i
].
mnc
.
c_str
(),
guami_list
[
i
].
regionID
.
c_str
(),
guami_list
[
i
].
AmfSetID
.
c_str
(),
guami_list
[
i
].
AmfPointer
.
c_str
());
guami_list
[
i
].
AmfSetID
.
c_str
(),
guami_list
[
i
].
AmfPointer
.
c_str
());
}
}
Logger
::
config
().
info
(
"- Relative Capacity .......: %d"
,
relativeAMFCapacity
);
Logger
::
config
().
info
(
"- Relative Capacity .......: %d"
,
relativeAMFCapacity
);
Logger
::
config
().
info
(
"- PLMN Support
............
: "
);
Logger
::
config
().
info
(
"- PLMN Support: "
);
for
(
int
i
=
0
;
i
<
plmn_list
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
plmn_list
.
size
();
i
++
)
{
Logger
::
config
().
info
(
Logger
::
config
().
info
(
"
MCC, MNC
...........: %s, %s"
,
plmn_list
[
i
].
mcc
.
c_str
(),
"
MCC, MNC ...
...........: %s, %s"
,
plmn_list
[
i
].
mcc
.
c_str
(),
plmn_list
[
i
].
mnc
.
c_str
());
plmn_list
[
i
].
mnc
.
c_str
());
Logger
::
config
().
info
(
"
TAC
................: %d"
,
plmn_list
[
i
].
tac
);
Logger
::
config
().
info
(
"
TAC ...
................: %d"
,
plmn_list
[
i
].
tac
);
Logger
::
config
().
info
(
"
Slice Support
......:"
);
Logger
::
config
().
info
(
"
Slice Support ...
......:"
);
for
(
int
j
=
0
;
j
<
plmn_list
[
i
].
slice_list
.
size
();
j
++
)
{
for
(
int
j
=
0
;
j
<
plmn_list
[
i
].
slice_list
.
size
();
j
++
)
{
Logger
::
config
().
info
(
std
::
string
str
=
{};
" SST, SD ........: %d, %d"
,
plmn_list
[
i
].
slice_list
[
j
].
sst
,
str
=
str
.
append
(
" SST"
)
plmn_list
[
i
].
slice_list
[
j
].
sd
);
.
append
(
(
plmn_list
[
i
].
slice_list
[
j
].
sst
>
127
)
?
", SD "
:
" ...."
)
.
append
(
"...........: "
)
.
append
(
std
::
to_string
(
plmn_list
[
i
].
slice_list
[
j
].
sst
))
.
append
(
""
)
.
append
(
(
plmn_list
[
i
].
slice_list
[
j
].
sst
>
127
)
?
", "
+
std
::
to_string
(
plmn_list
[
i
].
slice_list
[
j
].
sd
)
:
" "
);
Logger
::
config
().
info
(
str
.
c_str
());
}
}
}
}
Logger
::
config
().
info
(
Logger
::
config
().
info
(
"- Emergency Support .......: %s"
,
is_emergency_support
.
c_str
());
"- Emergency Support .......: %s"
,
is_emergency_support
.
c_str
());
Logger
::
config
().
info
(
"- Database : "
);
Logger
::
config
().
info
(
Logger
::
config
().
info
(
"
- MySQL Server Addr ..
.....: %s"
,
auth_para
.
mysql_server
.
c_str
());
"
MySQL Server Addr
.....: %s"
,
auth_para
.
mysql_server
.
c_str
());
Logger
::
config
().
info
(
Logger
::
config
().
info
(
"
- MySQL user ..
............: %s"
,
auth_para
.
mysql_user
.
c_str
());
"
MySQL user
............: %s"
,
auth_para
.
mysql_user
.
c_str
());
Logger
::
config
().
info
(
Logger
::
config
().
info
(
"
- MySQL pass ..
............: %s"
,
auth_para
.
mysql_pass
.
c_str
());
"
MySQL pass
............: %s"
,
auth_para
.
mysql_pass
.
c_str
());
Logger
::
config
().
info
(
Logger
::
config
().
info
(
"
- MySQL DB ..
..............: %s"
,
auth_para
.
mysql_db
.
c_str
());
"
MySQL DB
..............: %s"
,
auth_para
.
mysql_db
.
c_str
());
Logger
::
config
().
info
(
"- N2 Networking:"
);
Logger
::
config
().
info
(
"- N2 Networking:"
);
Logger
::
config
().
info
(
" Iface .................: %s"
,
n2
.
if_name
.
c_str
());
Logger
::
config
().
info
(
" Iface .................: %s"
,
n2
.
if_name
.
c_str
());
...
@@ -771,7 +782,7 @@ void amf_config::display() {
...
@@ -771,7 +782,7 @@ void amf_config::display() {
}
}
if
(
!
support_features
.
enable_smf_selection
)
{
if
(
!
support_features
.
enable_smf_selection
)
{
Logger
::
config
().
info
(
"- SMF Pool
.........
: "
);
Logger
::
config
().
info
(
"- SMF Pool: "
);
for
(
int
i
=
0
;
i
<
smf_pool
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
smf_pool
.
size
();
i
++
)
{
std
::
string
selected
=
smf_pool
[
i
].
selected
?
"true"
:
"false"
;
std
::
string
selected
=
smf_pool
[
i
].
selected
?
"true"
:
"false"
;
std
::
string
smf_info
=
support_features
.
use_fqdn_dns
?
std
::
string
smf_info
=
support_features
.
use_fqdn_dns
?
...
...
src/amf-app/amf_n11.cpp
View file @
c62b0e54
...
@@ -47,8 +47,6 @@
...
@@ -47,8 +47,6 @@
#include "itti_msg_amf_app.hpp"
#include "itti_msg_amf_app.hpp"
#include "mime_parser.hpp"
#include "mime_parser.hpp"
#include "nas_context.hpp"
#include "nas_context.hpp"
#include "SMContextsCollectionApi.h"
#include "SmContextCreateData.h"
extern
"C"
{
extern
"C"
{
#include "dynamic_memory_check.h"
#include "dynamic_memory_check.h"
...
...
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