Commit 6e9d1847 authored by Raphael Defosseux's avatar Raphael Defosseux

Merge branch 'udm_http_port_fix' into 'develop'

Fix SBI port for UDM in case of FQDN resolution

See merge request oai/cn5g/oai-cn5g-amf!187
parents 5ec1725d 56193e4b
......@@ -555,7 +555,12 @@ int amf_config::load(const std::string& config_file) {
util::trim(address).c_str(), udm_ipv4_addr,
"BAD IPv4 ADDRESS FORMAT FOR UDM !");
udm_addr.ipv4_addr = udm_ipv4_addr;
udm_addr.port = udm_port;
// We hardcode nrf port from config for the moment
if (!(udm_cfg.lookupValue(AMF_CONFIG_STRING_PORT, udm_port))) {
Logger::amf_app().error(AMF_CONFIG_STRING_PORT "failed");
throw(AMF_CONFIG_STRING_PORT "failed");
}
udm_addr.port = udm_port;
udm_addr.api_version =
DEFAULT_SBI_API_VERSION; // TODO: get API version
}
......
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