mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40:09 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -23,8 +23,9 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_create(
|
|||
int atsss_allowed,
|
||||
int secondary_auth,
|
||||
int dn_aaa_ip_address_allocation,
|
||||
OpenAPI_ip_address_t *dn_aaa_address
|
||||
)
|
||||
OpenAPI_ip_address_t *dn_aaa_address,
|
||||
char *iptv_acc_ctrl_info
|
||||
)
|
||||
{
|
||||
OpenAPI_dnn_configuration_t *dnn_configuration_local_var = OpenAPI_malloc(sizeof(OpenAPI_dnn_configuration_t));
|
||||
if (!dnn_configuration_local_var) {
|
||||
|
|
@ -49,6 +50,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_create(
|
|||
dnn_configuration_local_var->secondary_auth = secondary_auth;
|
||||
dnn_configuration_local_var->dn_aaa_ip_address_allocation = dn_aaa_ip_address_allocation;
|
||||
dnn_configuration_local_var->dn_aaa_address = dn_aaa_address;
|
||||
dnn_configuration_local_var->iptv_acc_ctrl_info = iptv_acc_ctrl_info;
|
||||
|
||||
return dnn_configuration_local_var;
|
||||
}
|
||||
|
|
@ -81,6 +83,7 @@ void OpenAPI_dnn_configuration_free(OpenAPI_dnn_configuration_t *dnn_configurati
|
|||
}
|
||||
OpenAPI_list_free(dnn_configuration->ipv6_frame_route_list);
|
||||
OpenAPI_ip_address_free(dnn_configuration->dn_aaa_address);
|
||||
ogs_free(dnn_configuration->iptv_acc_ctrl_info);
|
||||
ogs_free(dnn_configuration);
|
||||
}
|
||||
|
||||
|
|
@ -117,197 +120,204 @@ cJSON *OpenAPI_dnn_configuration_convertToJSON(OpenAPI_dnn_configuration_t *dnn_
|
|||
}
|
||||
|
||||
if (dnn_configuration->iwk_eps_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "iwkEpsInd", dnn_configuration->iwk_eps_ind) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [iwk_eps_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "iwkEpsInd", dnn_configuration->iwk_eps_ind) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [iwk_eps_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->_5g_qos_profile) {
|
||||
cJSON *_5g_qos_profile_local_JSON = OpenAPI_subscribed_default_qos_convertToJSON(dnn_configuration->_5g_qos_profile);
|
||||
if (_5g_qos_profile_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [_5g_qos_profile]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "5gQosProfile", _5g_qos_profile_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [_5g_qos_profile]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *_5g_qos_profile_local_JSON = OpenAPI_subscribed_default_qos_convertToJSON(dnn_configuration->_5g_qos_profile);
|
||||
if (_5g_qos_profile_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [_5g_qos_profile]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "5gQosProfile", _5g_qos_profile_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [_5g_qos_profile]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->session_ambr) {
|
||||
cJSON *session_ambr_local_JSON = OpenAPI_ambr_convertToJSON(dnn_configuration->session_ambr);
|
||||
if (session_ambr_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [session_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "sessionAmbr", session_ambr_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [session_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *session_ambr_local_JSON = OpenAPI_ambr_convertToJSON(dnn_configuration->session_ambr);
|
||||
if (session_ambr_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [session_ambr]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "sessionAmbr", session_ambr_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [session_ambr]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->_3gpp_charging_characteristics) {
|
||||
if (cJSON_AddStringToObject(item, "3gppChargingCharacteristics", dnn_configuration->_3gpp_charging_characteristics) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [_3gpp_charging_characteristics]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "3gppChargingCharacteristics", dnn_configuration->_3gpp_charging_characteristics) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [_3gpp_charging_characteristics]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->static_ip_address) {
|
||||
cJSON *static_ip_addressList = cJSON_AddArrayToObject(item, "staticIpAddress");
|
||||
if (static_ip_addressList == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [static_ip_address]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *static_ip_addressList = cJSON_AddArrayToObject(item, "staticIpAddress");
|
||||
if (static_ip_addressList == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [static_ip_address]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *static_ip_address_node;
|
||||
if (dnn_configuration->static_ip_address) {
|
||||
OpenAPI_list_for_each(dnn_configuration->static_ip_address, static_ip_address_node) {
|
||||
cJSON *itemLocal = OpenAPI_ip_address_convertToJSON(static_ip_address_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [static_ip_address]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(static_ip_addressList, itemLocal);
|
||||
OpenAPI_lnode_t *static_ip_address_node;
|
||||
if (dnn_configuration->static_ip_address) {
|
||||
OpenAPI_list_for_each(dnn_configuration->static_ip_address, static_ip_address_node) {
|
||||
cJSON *itemLocal = OpenAPI_ip_address_convertToJSON(static_ip_address_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [static_ip_address]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(static_ip_addressList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->up_security) {
|
||||
cJSON *up_security_local_JSON = OpenAPI_up_security_convertToJSON(dnn_configuration->up_security);
|
||||
if (up_security_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [up_security]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "upSecurity", up_security_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [up_security]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *up_security_local_JSON = OpenAPI_up_security_convertToJSON(dnn_configuration->up_security);
|
||||
if (up_security_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [up_security]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "upSecurity", up_security_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [up_security]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->pdu_session_continuity_ind) {
|
||||
if (cJSON_AddStringToObject(item, "pduSessionContinuityInd", OpenAPI_pdu_session_continuity_ind_ToString(dnn_configuration->pdu_session_continuity_ind)) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [pdu_session_continuity_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "pduSessionContinuityInd", OpenAPI_pdu_session_continuity_ind_ToString(dnn_configuration->pdu_session_continuity_ind)) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [pdu_session_continuity_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->nidd_nef_id) {
|
||||
if (cJSON_AddStringToObject(item, "niddNefId", dnn_configuration->nidd_nef_id) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [nidd_nef_id]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddStringToObject(item, "niddNefId", dnn_configuration->nidd_nef_id) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [nidd_nef_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->nidd_info) {
|
||||
cJSON *nidd_info_local_JSON = OpenAPI_nidd_information_convertToJSON(dnn_configuration->nidd_info);
|
||||
if (nidd_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [nidd_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "niddInfo", nidd_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [nidd_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *nidd_info_local_JSON = OpenAPI_nidd_information_convertToJSON(dnn_configuration->nidd_info);
|
||||
if (nidd_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [nidd_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "niddInfo", nidd_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [nidd_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->redundant_session_allowed) {
|
||||
if (cJSON_AddBoolToObject(item, "redundantSessionAllowed", dnn_configuration->redundant_session_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [redundant_session_allowed]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "redundantSessionAllowed", dnn_configuration->redundant_session_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [redundant_session_allowed]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->acs_info) {
|
||||
cJSON *acs_info_local_JSON = OpenAPI_acs_info_convertToJSON(dnn_configuration->acs_info);
|
||||
if (acs_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [acs_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "acsInfo", acs_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [acs_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *acs_info_local_JSON = OpenAPI_acs_info_convertToJSON(dnn_configuration->acs_info);
|
||||
if (acs_info_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [acs_info]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "acsInfo", acs_info_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [acs_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->ipv4_frame_route_list) {
|
||||
cJSON *ipv4_frame_route_listList = cJSON_AddArrayToObject(item, "ipv4FrameRouteList");
|
||||
if (ipv4_frame_route_listList == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [ipv4_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *ipv4_frame_route_listList = cJSON_AddArrayToObject(item, "ipv4FrameRouteList");
|
||||
if (ipv4_frame_route_listList == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [ipv4_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *ipv4_frame_route_list_node;
|
||||
if (dnn_configuration->ipv4_frame_route_list) {
|
||||
OpenAPI_list_for_each(dnn_configuration->ipv4_frame_route_list, ipv4_frame_route_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_frame_route_info_convertToJSON(ipv4_frame_route_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [ipv4_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(ipv4_frame_route_listList, itemLocal);
|
||||
OpenAPI_lnode_t *ipv4_frame_route_list_node;
|
||||
if (dnn_configuration->ipv4_frame_route_list) {
|
||||
OpenAPI_list_for_each(dnn_configuration->ipv4_frame_route_list, ipv4_frame_route_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_frame_route_info_convertToJSON(ipv4_frame_route_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [ipv4_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(ipv4_frame_route_listList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->ipv6_frame_route_list) {
|
||||
cJSON *ipv6_frame_route_listList = cJSON_AddArrayToObject(item, "ipv6FrameRouteList");
|
||||
if (ipv6_frame_route_listList == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [ipv6_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *ipv6_frame_route_listList = cJSON_AddArrayToObject(item, "ipv6FrameRouteList");
|
||||
if (ipv6_frame_route_listList == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [ipv6_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *ipv6_frame_route_list_node;
|
||||
if (dnn_configuration->ipv6_frame_route_list) {
|
||||
OpenAPI_list_for_each(dnn_configuration->ipv6_frame_route_list, ipv6_frame_route_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_frame_route_info_convertToJSON(ipv6_frame_route_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [ipv6_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(ipv6_frame_route_listList, itemLocal);
|
||||
OpenAPI_lnode_t *ipv6_frame_route_list_node;
|
||||
if (dnn_configuration->ipv6_frame_route_list) {
|
||||
OpenAPI_list_for_each(dnn_configuration->ipv6_frame_route_list, ipv6_frame_route_list_node) {
|
||||
cJSON *itemLocal = OpenAPI_frame_route_info_convertToJSON(ipv6_frame_route_list_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [ipv6_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(ipv6_frame_route_listList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->atsss_allowed) {
|
||||
if (cJSON_AddBoolToObject(item, "atsssAllowed", dnn_configuration->atsss_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [atsss_allowed]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "atsssAllowed", dnn_configuration->atsss_allowed) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [atsss_allowed]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->secondary_auth) {
|
||||
if (cJSON_AddBoolToObject(item, "secondaryAuth", dnn_configuration->secondary_auth) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [secondary_auth]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "secondaryAuth", dnn_configuration->secondary_auth) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [secondary_auth]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->dn_aaa_ip_address_allocation) {
|
||||
if (cJSON_AddBoolToObject(item, "dnAaaIpAddressAllocation", dnn_configuration->dn_aaa_ip_address_allocation) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [dn_aaa_ip_address_allocation]");
|
||||
goto end;
|
||||
}
|
||||
if (cJSON_AddBoolToObject(item, "dnAaaIpAddressAllocation", dnn_configuration->dn_aaa_ip_address_allocation) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [dn_aaa_ip_address_allocation]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->dn_aaa_address) {
|
||||
cJSON *dn_aaa_address_local_JSON = OpenAPI_ip_address_convertToJSON(dnn_configuration->dn_aaa_address);
|
||||
if (dn_aaa_address_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [dn_aaa_address]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "dnAaaAddress", dn_aaa_address_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [dn_aaa_address]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *dn_aaa_address_local_JSON = OpenAPI_ip_address_convertToJSON(dnn_configuration->dn_aaa_address);
|
||||
if (dn_aaa_address_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [dn_aaa_address]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "dnAaaAddress", dn_aaa_address_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [dn_aaa_address]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (dnn_configuration->iptv_acc_ctrl_info) {
|
||||
if (cJSON_AddStringToObject(item, "iptvAccCtrlInfo", dnn_configuration->iptv_acc_ctrl_info) == NULL) {
|
||||
ogs_error("OpenAPI_dnn_configuration_convertToJSON() failed [iptv_acc_ctrl_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -324,7 +334,7 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
|
|||
}
|
||||
|
||||
OpenAPI_pdu_session_types_t *pdu_session_types_local_nonprim = NULL;
|
||||
|
||||
|
||||
pdu_session_types_local_nonprim = OpenAPI_pdu_session_types_parseFromJSON(pdu_session_types);
|
||||
|
||||
cJSON *ssc_modes = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "sscModes");
|
||||
|
|
@ -334,193 +344,202 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
|
|||
}
|
||||
|
||||
OpenAPI_ssc_modes_t *ssc_modes_local_nonprim = NULL;
|
||||
|
||||
|
||||
ssc_modes_local_nonprim = OpenAPI_ssc_modes_parseFromJSON(ssc_modes);
|
||||
|
||||
cJSON *iwk_eps_ind = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "iwkEpsInd");
|
||||
|
||||
if (iwk_eps_ind) {
|
||||
if (!cJSON_IsBool(iwk_eps_ind)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [iwk_eps_ind]");
|
||||
goto end;
|
||||
}
|
||||
if (iwk_eps_ind) {
|
||||
if (!cJSON_IsBool(iwk_eps_ind)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [iwk_eps_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *_5g_qos_profile = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "5gQosProfile");
|
||||
|
||||
OpenAPI_subscribed_default_qos_t *_5g_qos_profile_local_nonprim = NULL;
|
||||
if (_5g_qos_profile) {
|
||||
_5g_qos_profile_local_nonprim = OpenAPI_subscribed_default_qos_parseFromJSON(_5g_qos_profile);
|
||||
}
|
||||
if (_5g_qos_profile) {
|
||||
_5g_qos_profile_local_nonprim = OpenAPI_subscribed_default_qos_parseFromJSON(_5g_qos_profile);
|
||||
}
|
||||
|
||||
cJSON *session_ambr = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "sessionAmbr");
|
||||
|
||||
OpenAPI_ambr_t *session_ambr_local_nonprim = NULL;
|
||||
if (session_ambr) {
|
||||
session_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(session_ambr);
|
||||
}
|
||||
if (session_ambr) {
|
||||
session_ambr_local_nonprim = OpenAPI_ambr_parseFromJSON(session_ambr);
|
||||
}
|
||||
|
||||
cJSON *_3gpp_charging_characteristics = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "3gppChargingCharacteristics");
|
||||
|
||||
if (_3gpp_charging_characteristics) {
|
||||
if (!cJSON_IsString(_3gpp_charging_characteristics)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [_3gpp_charging_characteristics]");
|
||||
goto end;
|
||||
}
|
||||
if (_3gpp_charging_characteristics) {
|
||||
if (!cJSON_IsString(_3gpp_charging_characteristics)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [_3gpp_charging_characteristics]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *static_ip_address = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "staticIpAddress");
|
||||
|
||||
OpenAPI_list_t *static_ip_addressList;
|
||||
if (static_ip_address) {
|
||||
cJSON *static_ip_address_local_nonprimitive;
|
||||
if (!cJSON_IsArray(static_ip_address)) {
|
||||
if (static_ip_address) {
|
||||
cJSON *static_ip_address_local_nonprimitive;
|
||||
if (!cJSON_IsArray(static_ip_address)){
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [static_ip_address]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
static_ip_addressList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(static_ip_address_local_nonprimitive, static_ip_address ) {
|
||||
if (!cJSON_IsObject(static_ip_address_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [static_ip_address]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ip_address_t *static_ip_addressItem = OpenAPI_ip_address_parseFromJSON(static_ip_address_local_nonprimitive);
|
||||
|
||||
static_ip_addressList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(static_ip_address_local_nonprimitive, static_ip_address ) {
|
||||
if (!cJSON_IsObject(static_ip_address_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [static_ip_address]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ip_address_t *static_ip_addressItem = OpenAPI_ip_address_parseFromJSON(static_ip_address_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(static_ip_addressList, static_ip_addressItem);
|
||||
}
|
||||
OpenAPI_list_add(static_ip_addressList, static_ip_addressItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *up_security = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "upSecurity");
|
||||
|
||||
OpenAPI_up_security_t *up_security_local_nonprim = NULL;
|
||||
if (up_security) {
|
||||
up_security_local_nonprim = OpenAPI_up_security_parseFromJSON(up_security);
|
||||
}
|
||||
if (up_security) {
|
||||
up_security_local_nonprim = OpenAPI_up_security_parseFromJSON(up_security);
|
||||
}
|
||||
|
||||
cJSON *pdu_session_continuity_ind = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "pduSessionContinuityInd");
|
||||
|
||||
OpenAPI_pdu_session_continuity_ind_e pdu_session_continuity_indVariable;
|
||||
if (pdu_session_continuity_ind) {
|
||||
if (!cJSON_IsString(pdu_session_continuity_ind)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [pdu_session_continuity_ind]");
|
||||
goto end;
|
||||
}
|
||||
pdu_session_continuity_indVariable = OpenAPI_pdu_session_continuity_ind_FromString(pdu_session_continuity_ind->valuestring);
|
||||
if (pdu_session_continuity_ind) {
|
||||
if (!cJSON_IsString(pdu_session_continuity_ind)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [pdu_session_continuity_ind]");
|
||||
goto end;
|
||||
}
|
||||
pdu_session_continuity_indVariable = OpenAPI_pdu_session_continuity_ind_FromString(pdu_session_continuity_ind->valuestring);
|
||||
}
|
||||
|
||||
cJSON *nidd_nef_id = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "niddNefId");
|
||||
|
||||
if (nidd_nef_id) {
|
||||
if (!cJSON_IsString(nidd_nef_id)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [nidd_nef_id]");
|
||||
goto end;
|
||||
}
|
||||
if (nidd_nef_id) {
|
||||
if (!cJSON_IsString(nidd_nef_id)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [nidd_nef_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *nidd_info = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "niddInfo");
|
||||
|
||||
OpenAPI_nidd_information_t *nidd_info_local_nonprim = NULL;
|
||||
if (nidd_info) {
|
||||
nidd_info_local_nonprim = OpenAPI_nidd_information_parseFromJSON(nidd_info);
|
||||
}
|
||||
if (nidd_info) {
|
||||
nidd_info_local_nonprim = OpenAPI_nidd_information_parseFromJSON(nidd_info);
|
||||
}
|
||||
|
||||
cJSON *redundant_session_allowed = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "redundantSessionAllowed");
|
||||
|
||||
if (redundant_session_allowed) {
|
||||
if (!cJSON_IsBool(redundant_session_allowed)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [redundant_session_allowed]");
|
||||
goto end;
|
||||
}
|
||||
if (redundant_session_allowed) {
|
||||
if (!cJSON_IsBool(redundant_session_allowed)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [redundant_session_allowed]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *acs_info = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "acsInfo");
|
||||
|
||||
OpenAPI_acs_info_t *acs_info_local_nonprim = NULL;
|
||||
if (acs_info) {
|
||||
acs_info_local_nonprim = OpenAPI_acs_info_parseFromJSON(acs_info);
|
||||
}
|
||||
if (acs_info) {
|
||||
acs_info_local_nonprim = OpenAPI_acs_info_parseFromJSON(acs_info);
|
||||
}
|
||||
|
||||
cJSON *ipv4_frame_route_list = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "ipv4FrameRouteList");
|
||||
|
||||
OpenAPI_list_t *ipv4_frame_route_listList;
|
||||
if (ipv4_frame_route_list) {
|
||||
cJSON *ipv4_frame_route_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ipv4_frame_route_list)) {
|
||||
if (ipv4_frame_route_list) {
|
||||
cJSON *ipv4_frame_route_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ipv4_frame_route_list)){
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [ipv4_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
ipv4_frame_route_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(ipv4_frame_route_list_local_nonprimitive, ipv4_frame_route_list ) {
|
||||
if (!cJSON_IsObject(ipv4_frame_route_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [ipv4_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_frame_route_info_t *ipv4_frame_route_listItem = OpenAPI_frame_route_info_parseFromJSON(ipv4_frame_route_list_local_nonprimitive);
|
||||
|
||||
ipv4_frame_route_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(ipv4_frame_route_list_local_nonprimitive, ipv4_frame_route_list ) {
|
||||
if (!cJSON_IsObject(ipv4_frame_route_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [ipv4_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_frame_route_info_t *ipv4_frame_route_listItem = OpenAPI_frame_route_info_parseFromJSON(ipv4_frame_route_list_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(ipv4_frame_route_listList, ipv4_frame_route_listItem);
|
||||
}
|
||||
OpenAPI_list_add(ipv4_frame_route_listList, ipv4_frame_route_listItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ipv6_frame_route_list = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "ipv6FrameRouteList");
|
||||
|
||||
OpenAPI_list_t *ipv6_frame_route_listList;
|
||||
if (ipv6_frame_route_list) {
|
||||
cJSON *ipv6_frame_route_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ipv6_frame_route_list)) {
|
||||
if (ipv6_frame_route_list) {
|
||||
cJSON *ipv6_frame_route_list_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ipv6_frame_route_list)){
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [ipv6_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
ipv6_frame_route_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(ipv6_frame_route_list_local_nonprimitive, ipv6_frame_route_list ) {
|
||||
if (!cJSON_IsObject(ipv6_frame_route_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [ipv6_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_frame_route_info_t *ipv6_frame_route_listItem = OpenAPI_frame_route_info_parseFromJSON(ipv6_frame_route_list_local_nonprimitive);
|
||||
|
||||
ipv6_frame_route_listList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(ipv6_frame_route_list_local_nonprimitive, ipv6_frame_route_list ) {
|
||||
if (!cJSON_IsObject(ipv6_frame_route_list_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [ipv6_frame_route_list]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_frame_route_info_t *ipv6_frame_route_listItem = OpenAPI_frame_route_info_parseFromJSON(ipv6_frame_route_list_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(ipv6_frame_route_listList, ipv6_frame_route_listItem);
|
||||
}
|
||||
OpenAPI_list_add(ipv6_frame_route_listList, ipv6_frame_route_listItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *atsss_allowed = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "atsssAllowed");
|
||||
|
||||
if (atsss_allowed) {
|
||||
if (!cJSON_IsBool(atsss_allowed)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [atsss_allowed]");
|
||||
goto end;
|
||||
}
|
||||
if (atsss_allowed) {
|
||||
if (!cJSON_IsBool(atsss_allowed)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [atsss_allowed]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *secondary_auth = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "secondaryAuth");
|
||||
|
||||
if (secondary_auth) {
|
||||
if (!cJSON_IsBool(secondary_auth)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [secondary_auth]");
|
||||
goto end;
|
||||
}
|
||||
if (secondary_auth) {
|
||||
if (!cJSON_IsBool(secondary_auth)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [secondary_auth]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *dn_aaa_ip_address_allocation = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "dnAaaIpAddressAllocation");
|
||||
|
||||
if (dn_aaa_ip_address_allocation) {
|
||||
if (!cJSON_IsBool(dn_aaa_ip_address_allocation)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [dn_aaa_ip_address_allocation]");
|
||||
goto end;
|
||||
}
|
||||
if (dn_aaa_ip_address_allocation) {
|
||||
if (!cJSON_IsBool(dn_aaa_ip_address_allocation)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [dn_aaa_ip_address_allocation]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *dn_aaa_address = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "dnAaaAddress");
|
||||
|
||||
OpenAPI_ip_address_t *dn_aaa_address_local_nonprim = NULL;
|
||||
if (dn_aaa_address) {
|
||||
dn_aaa_address_local_nonprim = OpenAPI_ip_address_parseFromJSON(dn_aaa_address);
|
||||
if (dn_aaa_address) {
|
||||
dn_aaa_address_local_nonprim = OpenAPI_ip_address_parseFromJSON(dn_aaa_address);
|
||||
}
|
||||
|
||||
cJSON *iptv_acc_ctrl_info = cJSON_GetObjectItemCaseSensitive(dnn_configurationJSON, "iptvAccCtrlInfo");
|
||||
|
||||
if (iptv_acc_ctrl_info) {
|
||||
if (!cJSON_IsString(iptv_acc_ctrl_info)) {
|
||||
ogs_error("OpenAPI_dnn_configuration_parseFromJSON() failed [iptv_acc_ctrl_info]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
dnn_configuration_local_var = OpenAPI_dnn_configuration_create (
|
||||
pdu_session_types_local_nonprim,
|
||||
|
|
@ -541,8 +560,9 @@ OpenAPI_dnn_configuration_t *OpenAPI_dnn_configuration_parseFromJSON(cJSON *dnn_
|
|||
atsss_allowed ? atsss_allowed->valueint : 0,
|
||||
secondary_auth ? secondary_auth->valueint : 0,
|
||||
dn_aaa_ip_address_allocation ? dn_aaa_ip_address_allocation->valueint : 0,
|
||||
dn_aaa_address ? dn_aaa_address_local_nonprim : NULL
|
||||
);
|
||||
dn_aaa_address ? dn_aaa_address_local_nonprim : NULL,
|
||||
iptv_acc_ctrl_info ? ogs_strdup_or_assert(iptv_acc_ctrl_info->valuestring) : NULL
|
||||
);
|
||||
|
||||
return dnn_configuration_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue