Commit 74e79f24 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for UPF selection

parent b6c139af
...@@ -108,7 +108,7 @@ bool pfcp_associations::add_association( ...@@ -108,7 +108,7 @@ bool pfcp_associations::add_association(
if (record->h_addrtype == AF_INET) { if (record->h_addrtype == AF_INET) {
in_addr* address = (struct in_addr*) record->h_addr; in_addr* address = (struct in_addr*) record->h_addr;
node_id.node_id_type = pfcp::NODE_ID_TYPE_IPV4_ADDRESS; // node_id.node_id_type = pfcp::NODE_ID_TYPE_IPV4_ADDRESS;
node_id.u1.ipv4_address = *address; node_id.u1.ipv4_address = *address;
Logger::smf_app().info( Logger::smf_app().info(
"Node ID Type FQDN: %s, IPv4 Addr: %s", node_id.fqdn.c_str(), "Node ID Type FQDN: %s, IPv4 Addr: %s", node_id.fqdn.c_str(),
...@@ -174,7 +174,7 @@ bool pfcp_associations::add_association( ...@@ -174,7 +174,7 @@ bool pfcp_associations::add_association(
} }
if (record->h_addrtype == AF_INET) { if (record->h_addrtype == AF_INET) {
in_addr* address = (struct in_addr*) record->h_addr; in_addr* address = (struct in_addr*) record->h_addr;
node_id.node_id_type = pfcp::NODE_ID_TYPE_IPV4_ADDRESS; // node_id.node_id_type = pfcp::NODE_ID_TYPE_IPV4_ADDRESS;
node_id.u1.ipv4_address = *address; node_id.u1.ipv4_address = *address;
Logger::smf_app().info( Logger::smf_app().info(
"Node ID Type FQDN: %s, IPv4 Addr: %s", node_id.fqdn.c_str(), "Node ID Type FQDN: %s, IPv4 Addr: %s", node_id.fqdn.c_str(),
...@@ -451,7 +451,7 @@ bool pfcp_associations::select_up_node( ...@@ -451,7 +451,7 @@ bool pfcp_associations::select_up_node(
Logger::smf_app().info( Logger::smf_app().info(
"Select the UPF for the corresponding DNN %s, NSSSAI (SD: %s, " "Select the UPF for the corresponding DNN %s, NSSSAI (SD: %s, "
"SST: %d) ", "SST: %d) ",
d.dnn.c_str(), snssai.sD, snssai.sST); d.dnn.c_str(), snssai.sD.c_str(), snssai.sST);
return true; 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