Commit 7dc8e2f7 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

Fix issue for NFListRetrieval

parent f02027a7
...@@ -309,13 +309,14 @@ void nrf_app::handle_get_nf_instances( ...@@ -309,13 +309,14 @@ void nrf_app::handle_get_nf_instances(
} }
for (auto profile : profiles) { for (auto profile : profiles) {
std::string instance_uri = std::string instance_uri;
std::string(inet_ntoa(*((struct in_addr *)&nrf_cfg.sbi.addr4))) + ":" + std::vector<struct in_addr> profile_addresses = {};
std::to_string(nrf_cfg.sbi.port) + NNRF_NFM_BASE + profile.get()->get_nf_ipv4_addresses(profile_addresses);
nrf_cfg.sbi_api_version + NNRF_NFM_NF_INSTANCE + //use the first IP addr
profile.get()->get_nf_instance_id(); if (profile_addresses.size() > 0) {
instance_uri = std::string(inet_ntoa(*((struct in_addr *)&profile_addresses[0])));
uris.push_back(instance_uri); uris.push_back(instance_uri);
}
profile.get()->display(); profile.get()->display();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment