Commit 9d2804cb authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

Add log for UPF selection function

parent e3cd0205
......@@ -323,6 +323,8 @@ bool pfcp_associations::select_up_node(
// get the first node id if there's no upf profile (get UPFs from conf file)
if (!a->upf_profile_is_set) {
node_id = it->second->node_id;
"Could not found UPF profile, select the first available UPF");
return true;
// else, verify that UPF belongs to the same slice and supports this dnn
......@@ -334,6 +336,10 @@ bool pfcp_associations::select_up_node(
for (auto d : ui.dnn_upf_info_list) {
if ( == 0) {
node_id = it->second->node_id;
"Select the UPF for the corresponding DNN %s, NSSSAI (SD: %s, "
"SST: %d) ",
d.dnn.c_str(), snssai.sD, snssai.sST);
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