Commit 322e3ddc authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Merge branch 'fix_n2info_raninfo' into 'develop'

Remove ranInfo field in n2infocontainer

See merge request oai/cn5g/oai-cn5g-smf!191
parents f3fb83cb 23b69bc5
...@@ -624,6 +624,7 @@ void smf_http2_server::nf_status_notify_handler( ...@@ -624,6 +624,7 @@ void smf_http2_server::nf_status_notify_handler(
response.end(json_data.dump().c_str()); response.end(json_data.dump().c_str());
} }
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void smf_http2_server::stop() { void smf_http2_server::stop() {
server.stop(); server.stop();
......
...@@ -2923,7 +2923,8 @@ bool smf_context::handle_pdu_session_update_sm_context_request( ...@@ -2923,7 +2923,8 @@ bool smf_context::handle_pdu_session_update_sm_context_request(
} break; } break;
default: { default: {
Logger::smf_app().warn("Unknown N2 SM info type %d", (int) n2_sm_info_type); Logger::smf_app().warn(
"Unknown N2 SM info type %d", (int) n2_sm_info_type);
} }
} // end switch } // end switch
...@@ -3333,8 +3334,6 @@ void smf_context::handle_pdu_session_modification_network_requested( ...@@ -3333,8 +3334,6 @@ void smf_context::handle_pdu_session_modification_network_requested(
itti_msg->msg.get_snssai().sst; itti_msg->msg.get_snssai().sst;
json_data["n2InfoContainer"]["smInfo"]["sNssai"]["sd"] = json_data["n2InfoContainer"]["smInfo"]["sNssai"]["sd"] =
std::to_string(itti_msg->msg.get_snssai().sd); std::to_string(itti_msg->msg.get_snssai().sd);
json_data["n2InfoContainer"]["ranInfo"] = "SM";
json_data["pduSessionId"] = itti_msg->msg.get_pdu_session_id(); json_data["pduSessionId"] = itti_msg->msg.get_pdu_session_id();
itti_msg->msg.set_json_data(json_data); itti_msg->msg.set_json_data(json_data);
...@@ -3493,9 +3492,9 @@ bool smf_context::handle_ho_preparation_request( ...@@ -3493,9 +3492,9 @@ bool smf_context::handle_ho_preparation_request(
return false; return false;
} }
if(!sp->get_sessions_graph()){ if (!sp->get_sessions_graph()) {
//abnormal condition when the PDU Session has no associate graph // abnormal condition when the PDU Session has no associate graph
//TODO: Check correct return code/error // TODO: Check correct return code/error
smf_app_inst->trigger_update_context_error_response( smf_app_inst->trigger_update_context_error_response(
http_status_code_e::HTTP_STATUS_CODE_403_FORBIDDEN, http_status_code_e::HTTP_STATUS_CODE_403_FORBIDDEN,
PDU_SESSION_APPLICATION_ERROR_NETWORK_FAILURE, PDU_SESSION_APPLICATION_ERROR_NETWORK_FAILURE,
...@@ -3503,14 +3502,12 @@ bool smf_context::handle_ho_preparation_request( ...@@ -3503,14 +3502,12 @@ bool smf_context::handle_ho_preparation_request(
return false; return false;
} }
edge access_upf = edge access_upf = sp->get_sessions_graph()->get_access_edge();
sp->get_sessions_graph()->get_access_edge();
// Retrieve QoS Flows from the access UPF // Retrieve QoS Flows from the access UPF
//TODO: Check PDU Session id cast (uint32 -> uint8) // TODO: Check PDU Session id cast (uint32 -> uint8)
std::vector<std::shared_ptr<smf_qos_flow>> flows = {}; std::vector<std::shared_ptr<smf_qos_flow>> flows = {};
access_upf.get_qos_flows( access_upf.get_qos_flows(sp->pdu_session_id, flows);
sp->pdu_session_id, flows);
for (const auto& flow : flows) { for (const auto& flow : flows) {
qos_flow_context_updated qos_flow = {}; qos_flow_context_updated qos_flow = {};
...@@ -4997,8 +4994,6 @@ void smf_context::send_pdu_session_create_response( ...@@ -4997,8 +4994,6 @@ void smf_context::send_pdu_session_create_response(
resp->res.get_snssai().sst; resp->res.get_snssai().sst;
json_data["n2InfoContainer"]["smInfo"]["sNssai"]["sd"] = json_data["n2InfoContainer"]["smInfo"]["sNssai"]["sd"] =
std::to_string(resp->res.get_snssai().sd); std::to_string(resp->res.get_snssai().sd);
json_data["n2InfoContainer"]["ranInfo"] = "SM";
// N1N2MsgTxfrFailureNotification // N1N2MsgTxfrFailureNotification
std::string callback_uri = std::string callback_uri =
get_amf_addr() + NSMF_PDU_SESSION_BASE + smf_cfg.sbi_api_version + get_amf_addr() + NSMF_PDU_SESSION_BASE + smf_cfg.sbi_api_version +
......
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