Commit adf950ad authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Merge branch 'fix_static_ue_ip_addr' into 'develop'

Fix issue for Static UE IP Addr

See merge request oai/cn5g/oai-cn5g-smf!151
parents 994b898e b2f4addd
......@@ -911,6 +911,11 @@ bool smf_sbi::get_sm_data(
// Process the response
if (!jsonData.empty()) {
if (jsonData.type() == json::value_t::array) {
if (!jsonData[0].empty())
jsonData = jsonData[0]; // Array with only 1 member!
}
Logger::smf_sbi().debug("Response from UDM %s", jsonData.dump().c_str());
// Verify SNSSAI
if (jsonData.find("singleNssai") == jsonData.end()) return false;
......@@ -930,6 +935,9 @@ bool smf_sbi::get_sm_data(
}
}
// Verify DNN configurations
if (jsonData.find("dnnConfigurations") == jsonData.end()) return false;
// Retrieve SessionManagementSubscription and store in the context
for (nlohmann::json::iterator it = jsonData["dnnConfigurations"].begin();
it != jsonData["dnnConfigurations"].end(); ++it) {
......
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