Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-NRF
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-NRF
Commits
3a268d4e
Commit
3a268d4e
authored
Jan 15, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for UPF profile
parent
7d14dd54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/nrf_app/nrf_profile.cpp
src/nrf_app/nrf_profile.cpp
+4
-4
No files found.
src/nrf_app/nrf_profile.cpp
View file @
3a268d4e
...
@@ -977,17 +977,17 @@ bool upf_profile::remove_profile_info(const std::string& path) {
...
@@ -977,17 +977,17 @@ bool upf_profile::remove_profile_info(const std::string& path) {
void
upf_profile
::
to_json
(
nlohmann
::
json
&
data
)
const
{
void
upf_profile
::
to_json
(
nlohmann
::
json
&
data
)
const
{
nrf_profile
::
to_json
(
data
);
nrf_profile
::
to_json
(
data
);
// UPF Info
// 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
)
{
for
(
auto
snssai
:
upf_info
.
snssai_upf_info_list
)
{
nlohmann
::
json
tmp
=
{};
nlohmann
::
json
tmp
=
{};
tmp
[
"sNssai"
][
"sst"
]
=
snssai
.
snssai
.
sST
;
tmp
[
"sNssai"
][
"sst"
]
=
snssai
.
snssai
.
sST
;
tmp
[
"sNssai"
][
"sd"
]
=
snssai
.
snssai
.
sD
;
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
)
{
for
(
auto
d
:
snssai
.
dnn_upf_info_list
)
{
nlohmann
::
json
tmp_dnn
=
{};
nlohmann
::
json
tmp_dnn
=
{};
tmp_dnn
[
"dnn"
]
=
d
.
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