mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40:09 +00:00
[SBI] Modified Exception handler on error (#2169)
This commit is contained in:
parent
5f377d0126
commit
6b17bffdfd
646 changed files with 4920 additions and 735 deletions
|
|
@ -610,7 +610,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_app_detection_report_t *ad_reportsItem = OpenAPI_app_detection_report_parseFromJSON(ad_reports_local);
|
||||
if (!ad_reportsItem) {
|
||||
ogs_error("No ad_reportsItem");
|
||||
OpenAPI_list_free(ad_reportsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(ad_reportsList, ad_reportsItem);
|
||||
|
|
@ -629,16 +628,28 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
add_access_info = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "addAccessInfo");
|
||||
if (add_access_info) {
|
||||
add_access_info_local_nonprim = OpenAPI_additional_access_info_parseFromJSON(add_access_info);
|
||||
if (!add_access_info_local_nonprim) {
|
||||
ogs_error("OpenAPI_additional_access_info_parseFromJSON failed [add_access_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
rel_access_info = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "relAccessInfo");
|
||||
if (rel_access_info) {
|
||||
rel_access_info_local_nonprim = OpenAPI_additional_access_info_parseFromJSON(rel_access_info);
|
||||
if (!rel_access_info_local_nonprim) {
|
||||
ogs_error("OpenAPI_additional_access_info_parseFromJSON failed [rel_access_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
an_charg_addr = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "anChargAddr");
|
||||
if (an_charg_addr) {
|
||||
an_charg_addr_local_nonprim = OpenAPI_acc_net_charging_address_parseFromJSON(an_charg_addr);
|
||||
if (!an_charg_addr_local_nonprim) {
|
||||
ogs_error("OpenAPI_acc_net_charging_address_parseFromJSON failed [an_charg_addr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
an_charg_ids = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "anChargIds");
|
||||
|
|
@ -659,7 +670,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_access_net_charging_identifier_t *an_charg_idsItem = OpenAPI_access_net_charging_identifier_parseFromJSON(an_charg_ids_local);
|
||||
if (!an_charg_idsItem) {
|
||||
ogs_error("No an_charg_idsItem");
|
||||
OpenAPI_list_free(an_charg_idsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(an_charg_idsList, an_charg_idsItem);
|
||||
|
|
@ -669,6 +679,10 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
an_gw_addr = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "anGwAddr");
|
||||
if (an_gw_addr) {
|
||||
an_gw_addr_local_nonprim = OpenAPI_an_gw_address_parseFromJSON(an_gw_addr);
|
||||
if (!an_gw_addr_local_nonprim) {
|
||||
ogs_error("OpenAPI_an_gw_address_parseFromJSON failed [an_gw_addr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
ev_subs_uri = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "evSubsUri");
|
||||
|
|
@ -702,7 +716,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_af_event_notification_t *ev_notifsItem = OpenAPI_af_event_notification_parseFromJSON(ev_notifs_local);
|
||||
if (!ev_notifsItem) {
|
||||
ogs_error("No ev_notifsItem");
|
||||
OpenAPI_list_free(ev_notifsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(ev_notifsList, ev_notifsItem);
|
||||
|
|
@ -726,7 +739,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_resources_allocation_info_t *failed_resourc_alloc_reportsItem = OpenAPI_resources_allocation_info_parseFromJSON(failed_resourc_alloc_reports_local);
|
||||
if (!failed_resourc_alloc_reportsItem) {
|
||||
ogs_error("No failed_resourc_alloc_reportsItem");
|
||||
OpenAPI_list_free(failed_resourc_alloc_reportsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(failed_resourc_alloc_reportsList, failed_resourc_alloc_reportsItem);
|
||||
|
|
@ -751,7 +763,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_resources_allocation_info_t *succ_resourc_alloc_reportsItem = OpenAPI_resources_allocation_info_parseFromJSON(succ_resourc_alloc_reports_local);
|
||||
if (!succ_resourc_alloc_reportsItem) {
|
||||
ogs_error("No succ_resourc_alloc_reportsItem");
|
||||
OpenAPI_list_free(succ_resourc_alloc_reportsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(succ_resourc_alloc_reportsList, succ_resourc_alloc_reportsItem);
|
||||
|
|
@ -785,7 +796,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_out_of_credit_information_t *out_of_cred_reportsItem = OpenAPI_out_of_credit_information_parseFromJSON(out_of_cred_reports_local);
|
||||
if (!out_of_cred_reportsItem) {
|
||||
ogs_error("No out_of_cred_reportsItem");
|
||||
OpenAPI_list_free(out_of_cred_reportsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(out_of_cred_reportsList, out_of_cred_reportsItem);
|
||||
|
|
@ -795,6 +805,10 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
plmn_id = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "plmnId");
|
||||
if (plmn_id) {
|
||||
plmn_id_local_nonprim = OpenAPI_plmn_id_nid_parseFromJSON(plmn_id);
|
||||
if (!plmn_id_local_nonprim) {
|
||||
ogs_error("OpenAPI_plmn_id_nid_parseFromJSON failed [plmn_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
qnc_reports = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "qncReports");
|
||||
|
|
@ -815,7 +829,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_qos_notification_control_info_t *qnc_reportsItem = OpenAPI_qos_notification_control_info_parseFromJSON(qnc_reports_local);
|
||||
if (!qnc_reportsItem) {
|
||||
ogs_error("No qnc_reportsItem");
|
||||
OpenAPI_list_free(qnc_reportsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(qnc_reportsList, qnc_reportsItem);
|
||||
|
|
@ -840,7 +853,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_qos_monitoring_report_t *qos_mon_reportsItem = OpenAPI_qos_monitoring_report_parseFromJSON(qos_mon_reports_local);
|
||||
if (!qos_mon_reportsItem) {
|
||||
ogs_error("No qos_mon_reportsItem");
|
||||
OpenAPI_list_free(qos_mon_reportsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(qos_mon_reportsList, qos_mon_reportsItem);
|
||||
|
|
@ -865,7 +877,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_ran_nas_rel_cause_t *ran_nas_rel_causesItem = OpenAPI_ran_nas_rel_cause_parseFromJSON(ran_nas_rel_causes_local);
|
||||
if (!ran_nas_rel_causesItem) {
|
||||
ogs_error("No ran_nas_rel_causesItem");
|
||||
OpenAPI_list_free(ran_nas_rel_causesList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(ran_nas_rel_causesList, ran_nas_rel_causesItem);
|
||||
|
|
@ -893,6 +904,10 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
ue_loc = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "ueLoc");
|
||||
if (ue_loc) {
|
||||
ue_loc_local_nonprim = OpenAPI_user_location_parseFromJSON(ue_loc);
|
||||
if (!ue_loc_local_nonprim) {
|
||||
ogs_error("OpenAPI_user_location_parseFromJSON failed [ue_loc]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
ue_loc_time = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "ueLocTime");
|
||||
|
|
@ -914,16 +929,28 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
usg_rep = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "usgRep");
|
||||
if (usg_rep) {
|
||||
usg_rep_local_nonprim = OpenAPI_accumulated_usage_parseFromJSON(usg_rep);
|
||||
if (!usg_rep_local_nonprim) {
|
||||
ogs_error("OpenAPI_accumulated_usage_parseFromJSON failed [usg_rep]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
tsn_bridge_man_cont = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "tsnBridgeManCont");
|
||||
if (tsn_bridge_man_cont) {
|
||||
tsn_bridge_man_cont_local_nonprim = OpenAPI_bridge_management_container_parseFromJSON(tsn_bridge_man_cont);
|
||||
if (!tsn_bridge_man_cont_local_nonprim) {
|
||||
ogs_error("OpenAPI_bridge_management_container_parseFromJSON failed [tsn_bridge_man_cont]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
tsn_port_man_cont_dstt = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "tsnPortManContDstt");
|
||||
if (tsn_port_man_cont_dstt) {
|
||||
tsn_port_man_cont_dstt_local_nonprim = OpenAPI_port_management_container_parseFromJSON(tsn_port_man_cont_dstt);
|
||||
if (!tsn_port_man_cont_dstt_local_nonprim) {
|
||||
ogs_error("OpenAPI_port_management_container_parseFromJSON failed [tsn_port_man_cont_dstt]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
tsn_port_man_cont_nwtts = cJSON_GetObjectItemCaseSensitive(events_notificationJSON, "tsnPortManContNwtts");
|
||||
|
|
@ -944,7 +971,6 @@ OpenAPI_events_notification_t *OpenAPI_events_notification_parseFromJSON(cJSON *
|
|||
OpenAPI_port_management_container_t *tsn_port_man_cont_nwttsItem = OpenAPI_port_management_container_parseFromJSON(tsn_port_man_cont_nwtts_local);
|
||||
if (!tsn_port_man_cont_nwttsItem) {
|
||||
ogs_error("No tsn_port_man_cont_nwttsItem");
|
||||
OpenAPI_list_free(tsn_port_man_cont_nwttsList);
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(tsn_port_man_cont_nwttsList, tsn_port_man_cont_nwttsItem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue