[NRF] Remove nfProfileChangesSupportInd from responses (#3585)

According to TS 29.510, the NFProfile structure in the NFDiscovery API does not
include the nfProfileChangesSupportInd attribute. However, Open5GS NRF currently
includes this attribute in NFDiscovery API responses, which has led to
complaints from certain NF vendors.

This commit modifies the nrf_nnrf_handle_nf_discover function
in src/nrf/nnrf-handler.c to ensure that the nfProfileChangesSupportInd
attribute is excluded when constructing NFProfile for NFDiscovery responses.
This commit is contained in:
Sukchan Lee
2024-11-28 20:47:16 +09:00
parent c3dccf13fc
commit b8208464a2

View File

@@ -61,6 +61,28 @@ ogs_sbi_request_t *ogs_nnrf_nfm_build_register(void)
goto end;
}
/*
* TS29510
* 6.1.6.2 Structured data types
* 6.1.6.2.2 Type: NFProfile
* Table 6.1.6.2.2-1: Definition of type NFProfile
*
* NF Profile Changes Support Indicator.
* See Annex B.
*
* This IE may be present in the NFRegister or
* NFUpdate (NF Profile Complete Replacement)
* request and shall be absent in the response.
*
* true: the NF Service Consumer supports receiving
* NF Profile Changes in the response.
*
* false (default): the NF Service Consumer does not
* support receiving NF Profile Changes in the response.
*/
NFProfile->is_nf_profile_changes_support_ind = true;
NFProfile->nf_profile_changes_support_ind = true;
message.NFProfile = NFProfile;
request = ogs_sbi_build_request(&message);
@@ -146,9 +168,6 @@ OpenAPI_nf_profile_t *ogs_nnrf_nfm_build_nf_profile(
OpenAPI_list_free(PlmnIdList);
}
NFProfile->is_nf_profile_changes_support_ind = true;
NFProfile->nf_profile_changes_support_ind = true;
if (nf_instance->fqdn)
NFProfile->fqdn = ogs_strdup(nf_instance->fqdn);