//TODO: should be removed, since we stored list of common PLMNs
//TODO: should be removed, since we stored list of common PLMNs
gnbItem.mcc=s_ta_list[0].b_plmn_list[0].mcc;
gnbItem.mcc=s_ta_list[0].b_plmn_list[0].mcc;
gnbItem.mnc=s_ta_list[0].b_plmn_list[0].mnc;
gnbItem.mnc=s_ta_list[0].b_plmn_list[0].mnc;
gnbItem.tac=s_ta_list[0].tac;
gnbItem.tac=s_ta_list[0].tac;
//association GlobalRANNodeID with assoc_id
// association GlobalRANNodeID with assoc_id
//store RAN Node Name in gNB context, if present
// store RAN Node Name in gNB context, if present
//verify PLMN Identity and TAC with configuration and store supportedTAList in gNB context, if verified; else response NG SETUP FAILURE with cause "Unknown PLMN"(9.3.1.2, ts38413)
// verify PLMN Identity and TAC with configuration and store supportedTAList
// in gNB context, if verified; else response NG SETUP FAILURE with cause
//create ngap-ue context and store in gNB context to store UE information in gNB, for example, here RAN UE NGAP ID and location information and RRC Establishment Cause
// create ngap-ue context and store in gNB context to store UE information in
//send NAS-PDU to NAS layer
// gNB, for example, here RAN UE NGAP ID and location information and RRC
//Get INITIAL_UE_MESSAGE IEs
// Establishment Cause send NAS-PDU to NAS layer Get INITIAL_UE_MESSAGE IEs
//check the gNB context on which this UE is attached with assoc_id
//check the gNB context on which this UE is attached with assoc_id
Logger::amf_n2().error("no ue ngap context with ran_ue_ngap_id(%d)",
Logger::amf_n2().error("no ue ngap context with ran_ue_ngap_id(%d)",ran_ue_ngap_id);
ran_ue_ngap_id);
return;
return;
}
}
unc=ran_ue_id_2_ue_ngap_context(ran_ue_ngap_id);
unc=ran_ue_id_2_ue_ngap_context(ran_ue_ngap_id);
if(unc.get()->amf_ue_ngap_id!=amf_ue_ngap_id)
if(unc.get()->amf_ue_ngap_id!=amf_ue_ngap_id){
{
Logger::amf_n2().error(
Logger::amf_n2().error("The requested UE(amf_ue_ngap_id:0x%x) is not valid, existed UE which's amf_ue_ngap_id(0x%x)",amf_ue_ngap_id,unc.get()->amf_ue_ngap_id);
"The requested UE(amf_ue_ngap_id:0x%x) is not valid, existed UE "