Configuring NRF for Discovery of Network Function

This section describes how to configure NRF to enable discovery of an NF.

To configure NRF for discovering an NF, use the following configuration:

config 
  nf-services nf_services_name 
   discovery [ nchf-spendinglimitcontrol | nudr-dr ]   
  service-repository service_repository 
    cache-forever [ true | false ]  
    disable-subscription [ true | fasle ]  
    subscription-extension-in-minutes subscription_extension 
    end 

NOTES:

  • nf-services nf_services_name – Configures network functions, such as registration, repository, and service discovery details.

  • discovery – Enters the discovery configuration mode.

  • service-repository service_repository – Specifies the name of the repository that you configured in repositories.

  • cache-forever [ true | fasle ] – Configures the discovery of services as "true" or "false" value. If this parameter is set to "true", then the discovered NFProfile cache does not expire at PCF.

  • disable-subscription [ true | fasle ] – Configures the services as "true" or "false" to disable a subscription. If this is set to "true", then no subscription request is sent to NRF for the NF profile type.

  • subscription-extension-in-minutes subscription_extension – Configures the duration by when you want to extend the subscription. PCF shows this value as validityTime in resubscription when the subscription validity time expires.