Commit 655c0cf3 authored by kharade's avatar kharade

default var added for ext NRF and NSSF

parent 41822e76
...@@ -100,10 +100,10 @@ AMF = ...@@ -100,10 +100,10 @@ AMF =
UDM : UDM :
{ {
IPV4_ADDRESS = "127.0.0.1"; # YOUR UDM CONFIG HERE IPV4_ADDRESS = "@UDM_IPV4_ADDRESS@"; # YOUR UDM CONFIG HERE
PORT = 80; # YOUR UDM CONFIG HERE (default: 80) PORT = @UDM_PORT@; # YOUR UDM CONFIG HERE (default: 80)
API_VERSION = "v2"; # YOUR UDM API VERSION FOR SBI CONFIG HERE API_VERSION = "v2"; # YOUR UDM API VERSION FOR SBI CONFIG HERE
FQDN = "udm-fqdn"; # YOUR UDM FQDN CONFIG HERE FQDN = "@UDM_FQDN@"; # YOUR UDM FQDN CONFIG HERE
}; };
NSSF : NSSF :
...@@ -120,11 +120,11 @@ AMF = ...@@ -120,11 +120,11 @@ AMF =
# STRING, {"yes", "no"}, # STRING, {"yes", "no"},
NF_REGISTRATION = "@NF_REGISTRATION@"; # Set to yes if AMF resgisters to an NRF NF_REGISTRATION = "@NF_REGISTRATION@"; # Set to yes if AMF resgisters to an NRF
NRF_SELECTION = "@NRF_SELECTION@"; # Set to yes to enable NRF discovery and selection NRF_SELECTION = "@NRF_SELECTION@"; # Set to yes to enable NRF discovery and selection
EXTERNAL_NRF = "no"; # Set to yes if AMF works with an external NRF EXTERNAL_NRF = "@EXTERNAL_NRF@"; # Set to yes if AMF works with an external NRF
SMF_SELECTION = "@SMF_SELECTION@"; # Set to yes to enable SMF discovery and selection SMF_SELECTION = "@SMF_SELECTION@"; # Set to yes to enable SMF discovery and selection
EXTERNAL_AUSF = "@EXTERNAL_AUSF@"; # Set to yes if AMF works with an external AUSF EXTERNAL_AUSF = "@EXTERNAL_AUSF@"; # Set to yes if AMF works with an external AUSF
EXTERNAL_UDM = "@EXTERNAL_UDM@"; # Set to yes if AMF works with an external UDM EXTERNAL_UDM = "@EXTERNAL_UDM@"; # Set to yes if AMF works with an external UDM
EXTERNAL_NSSF = "no"; # Set to yes if AMF works with an external NSSF EXTERNAL_NSSF = "@EXTERNAL_NSSF@"; # Set to yes if AMF works with an external NSSF
USE_FQDN_DNS = "@USE_FQDN_DNS@"; # Set to yes if AMF relies on a DNS to resolve NRF/SMF/UDM/AUSF's FQDN USE_FQDN_DNS = "@USE_FQDN_DNS@"; # Set to yes if AMF relies on a DNS to resolve NRF/SMF/UDM/AUSF's FQDN
USE_HTTP2 = "@USE_HTTP2@"; # Set to yes to enable HTTP2 for AMF server USE_HTTP2 = "@USE_HTTP2@"; # Set to yes to enable HTTP2 for AMF server
} }
......
...@@ -5,6 +5,8 @@ set -euo pipefail ...@@ -5,6 +5,8 @@ set -euo pipefail
CONFIG_DIR="/openair-amf/etc" CONFIG_DIR="/openair-amf/etc"
# Default values # Default values
EXTERNAL_NRF=${EXTERNAL_NRF:-no}
EXTERNAL_NSSF=${EXTERNAL_NSSF:-no}
EXTERNAL_AUSF=${EXTERNAL_AUSF:-no} EXTERNAL_AUSF=${EXTERNAL_AUSF:-no}
EXTERNAL_UDM=${EXTERNAL_UDM:-no} EXTERNAL_UDM=${EXTERNAL_UDM:-no}
UDM_IPV4_ADDRESS=${UDM_IPV4_ADDRESS:-0.0.0.0} UDM_IPV4_ADDRESS=${UDM_IPV4_ADDRESS:-0.0.0.0}
......
...@@ -28,6 +28,7 @@ bool fqdn::resolve( ...@@ -28,6 +28,7 @@ bool fqdn::resolve(
const std::string& host_name, std::string& address, uint32_t& port, const std::string& host_name, std::string& address, uint32_t& port,
uint8_t& addr_type, const std::string& protocol) { uint8_t& addr_type, const std::string& protocol) {
try { try {
Logger::amf_app().debug("Resolving DNS:- %s", host_name.c_str());
boost::asio::io_context io_context = {}; boost::asio::io_context io_context = {};
boost::asio::ip::tcp::resolver resolver{io_context}; boost::asio::ip::tcp::resolver resolver{io_context};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment