Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
cn5g
oai-cn5g-nrf
Commits
3a268d4e
Commit
3a268d4e
authored
Jan 15, 2021
by
Tien-Thinh Nguyen
Browse files
Fix issue for UPF profile
parent
7d14dd54
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/nrf_app/nrf_profile.cpp
View file @
3a268d4e
...
...
@@ -977,17 +977,17 @@ bool upf_profile::remove_profile_info(const std::string& path) {
void
upf_profile
::
to_json
(
nlohmann
::
json
&
data
)
const
{
nrf_profile
::
to_json
(
data
);
// UPF Info
data
[
"upfInfo"
][
"sNssai
Sm
fInfoList"
]
=
nlohmann
::
json
::
array
();
data
[
"upfInfo"
][
"sNssai
Up
fInfoList"
]
=
nlohmann
::
json
::
array
();
for
(
auto
snssai
:
upf_info
.
snssai_upf_info_list
)
{
nlohmann
::
json
tmp
=
{};
tmp
[
"sNssai"
][
"sst"
]
=
snssai
.
snssai
.
sST
;
tmp
[
"sNssai"
][
"sd"
]
=
snssai
.
snssai
.
sD
;
tmp
[
"dnn
Sm
fInfoList"
]
=
nlohmann
::
json
::
array
();
tmp
[
"dnn
Up
fInfoList"
]
=
nlohmann
::
json
::
array
();
for
(
auto
d
:
snssai
.
dnn_upf_info_list
)
{
nlohmann
::
json
tmp_dnn
=
{};
tmp_dnn
[
"dnn"
]
=
d
.
dnn
;
tmp
[
"dnn
Sm
fInfoList"
].
push_back
(
tmp_dnn
);
tmp
[
"dnn
Up
fInfoList"
].
push_back
(
tmp_dnn
);
}
data
[
"upfInfo"
][
"sNssai
Sm
fInfoList"
].
push_back
(
tmp
);
data
[
"upfInfo"
][
"sNssai
Up
fInfoList"
].
push_back
(
tmp
);
}
}
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