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
7dc8e2f7
Commit
7dc8e2f7
authored
Jan 11, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NFListRetrieval
parent
f02027a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/nrf_app/nrf_app.cpp
src/nrf_app/nrf_app.cpp
+8
-7
No files found.
src/nrf_app/nrf_app.cpp
View file @
7dc8e2f7
...
...
@@ -309,13 +309,14 @@ void nrf_app::handle_get_nf_instances(
}
for
(
auto
profile
:
profiles
)
{
std
::
string
instance_uri
=
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
nrf_cfg
.
sbi
.
addr4
)))
+
":"
+
std
::
to_string
(
nrf_cfg
.
sbi
.
port
)
+
NNRF_NFM_BASE
+
nrf_cfg
.
sbi_api_version
+
NNRF_NFM_NF_INSTANCE
+
profile
.
get
()
->
get_nf_instance_id
();
std
::
string
instance_uri
;
std
::
vector
<
struct
in_addr
>
profile_addresses
=
{};
profile
.
get
()
->
get_nf_ipv4_addresses
(
profile_addresses
);
//use the first IP addr
if
(
profile_addresses
.
size
()
>
0
)
{
instance_uri
=
std
::
string
(
inet_ntoa
(
*
((
struct
in_addr
*
)
&
profile_addresses
[
0
])));
uris
.
push_back
(
instance_uri
);
}
profile
.
get
()
->
display
();
}
}
...
...
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