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
3e285c4f
Commit
3e285c4f
authored
Nov 28, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SST type (int instead of string) in conf file
parent
849c04d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
etc/amf.conf
etc/amf.conf
+3
-3
src/amf-app/amf_config.cpp
src/amf-app/amf_config.cpp
+2
-2
No files found.
etc/amf.conf
View file @
3e285c4f
...
...
@@ -49,9 +49,9 @@ AMF =
{
MCC
=
"@PLMN_SUPPORT_MCC@"
;
MNC
=
"@PLMN_SUPPORT_MNC@"
;
TAC
= @
PLMN_SUPPORT_TAC
@;
SLICE_SUPPORT_LIST
= (
{
SST
=
"@SST_0@"
;
SD
=
"@SD_0@"
},
{
SST
=
"@SST_1@"
;
SD
=
"@SD_1@"
},
{
SST
=
"@SST_2@"
;
SD
=
"@SD_2@"
}
{
SST
=
@
SST_0
@
;
SD
=
"@SD_0@"
},
{
SST
=
@
SST_1
@
;
SD
=
"@SD_1@"
},
{
SST
=
@
SST_2
@
;
SD
=
"@SD_2@"
}
)
}
);
...
...
src/amf-app/amf_config.cpp
View file @
3e285c4f
...
...
@@ -217,13 +217,13 @@ int amf_config::load(const std::string& config_file) {
for
(
int
j
=
0
;
j
<
numOfSlice
;
j
++
)
{
slice_t
slice
;
const
Setting
&
slice_item
=
slice_list_cfg
[
j
];
std
::
string
sst
=
{}
;
unsigned
int
sst
=
0
;
std
::
string
sd
=
{};
slice_item
.
lookupValue
(
AMF_CONFIG_STRING_SST
,
sst
);
slice
.
sst
=
sst
;
slice_item
.
lookupValue
(
AMF_CONFIG_STRING_SD
,
sd
);
slice
.
sd
=
SD_NO_VALUE
;
// Default value
try
{
slice
.
sst
=
std
::
stoi
(
sst
);
conv
::
sd_string_to_int
(
sd
,
slice
.
sd
);
}
catch
(
const
std
::
exception
&
err
)
{
Logger
::
amf_app
().
error
(
"Invalid SST/SD"
);
...
...
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