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,6 +108,7 @@ bool edge::serves_network(
dnn_item.dnn = dnn;
auto dnn_it = snssai_it->dnn_upf_info_list.find(dnn_item);
if (dnn_it != snssai_it->dnn_upf_info_list.end()) {
if (!dnais.empty()) {
// should be only 1 DNAI
for (const auto& dnai : dnn_it->dnai_list) {
// O(1)
......@@ -117,6 +118,9 @@ bool edge::serves_network(
return true;
}
}
} else {
return true;
}
}
}
return false;
......
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