Skip to content
Snippets Groups Projects
Commit 15a3b421 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

Merge branch 'fix_display_peer_nf' into 'develop'

Fix display peer NF when there's no peer NF (in NRF)

See merge request !25
parents 42e49ae9 26466d3c
No related branches found
No related tags found
1 merge request!25Fix display peer NF when there's no peer NF (in NRF)
......@@ -230,11 +230,15 @@ std::string config::to_string() const {
out.append(m_database.to_string(indent + indent));
}
if (!m_nf_map.empty()) {
out.append("Peer NF Configuration:\n");
}
for (const auto& nf : m_nf_map) {
if (nf.first != m_nf_name) {
out.append(nf.second->to_string(indent));
bool has_peer_nf = false;
for (const auto& nf : m_nf_map) {
if (nf.first != m_nf_name) {
if (!has_peer_nf) {
has_peer_nf = true;
out.append("Peer NF Configuration:\n");
}
out.append(nf.second->to_string(indent));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment