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
bc920166
Commit
bc920166
authored
Feb 18, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary fix to make it work with NSSF
parent
300b3355
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+13
-1
No files found.
src/amf-app/amf_n11.cpp
View file @
bc920166
...
...
@@ -1595,7 +1595,19 @@ bool amf_n11::get_nrf_uri(
// Process data to obtain NRF info
if
(
response_data
.
find
(
"nsiInformation"
)
!=
response_data
.
end
())
{
if
(
response_data
[
"nsiInformation"
].
count
(
"nrfId"
)
>
0
)
{
nrf_uri
=
response_data
[
"nsiInformation"
][
"nrfId"
].
get
<
std
::
string
>
();
// nrf_uri =
// response_data["nsiInformation"]["nrfId"].get<std::string>();
// TODO: Should be remove when NSSF is updated with NRF Disc URI
std
::
string
nrf_id
=
response_data
[
"nsiInformation"
][
"nrfId"
].
get
<
std
::
string
>
();
std
::
vector
<
std
::
string
>
split_result
;
boost
::
split
(
split_result
,
nrf_id
,
boost
::
is_any_of
(
"/"
));
if
(
split_result
.
size
()
>
2
)
{
nrf_uri
=
split_result
[
0
]
+
"/nnrf-disc/"
+
split_result
[
2
]
+
"/nf-instances"
;
}
Logger
::
amf_n11
().
debug
(
"NSI Information is successfully retrieved from NSSF"
);
Logger
::
amf_n11
().
debug
(
...
...
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