Commit a0655af0 authored by Stefan Spettel's avatar Stefan Spettel

fix(smf): UPF selection for non PCC rules

Signed-off-by: default avatarStefan Spettel <stefan.spettel@eurecom.fr>
parent a2a8402b
...@@ -108,14 +108,18 @@ bool edge::serves_network( ...@@ -108,14 +108,18 @@ bool edge::serves_network(
dnn_item.dnn = dnn; dnn_item.dnn = dnn;
auto dnn_it = snssai_it->dnn_upf_info_list.find(dnn_item); auto dnn_it = snssai_it->dnn_upf_info_list.find(dnn_item);
if (dnn_it != snssai_it->dnn_upf_info_list.end()) { if (dnn_it != snssai_it->dnn_upf_info_list.end()) {
// should be only 1 DNAI if (!dnais.empty()) {
for (const auto& dnai : dnn_it->dnai_list) { // should be only 1 DNAI
// O(1) for (const auto& dnai : dnn_it->dnai_list) {
auto found_dnai = dnais.find(dnai); // O(1)
if (found_dnai != dnais.end()) { auto found_dnai = dnais.find(dnai);
matched_dnai = dnai; if (found_dnai != dnais.end()) {
return true; matched_dnai = dnai;
return true;
}
} }
} else {
return true;
} }
} }
} }
......
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