Commit d9c5ffa8 authored by Raphael Defosseux's avatar Raphael Defosseux

Merge branch 'fqdn_env_var' into 'develop'

Use default ip variables for fqdn case

See merge request oai/cn5g/oai-cn5g-smf!81
parents 11c6a362 9714c42b
......@@ -4,6 +4,14 @@ set -euo pipefail
CONFIG_DIR="/openair-smf/etc"
# Default values
if [[ ${USE_FQDN_DNS} == "yes" ]];then
AMF_IPV4_ADDRESS=${AMF_IPV4_ADDRESS:-0.0.0.0}
NRF_IPV4_ADDRESS=${NRF_IPV4_ADDRESS:-0.0.0.0}
UPF_IPV4_ADDRESS=${UPF_IPV4_ADDRESS:-0.0.0.0}
UDM_IPV4_ADDRESS=${UDM_IPV4_ADDRESS:-0.0.0.0}
fi
for c in ${CONFIG_DIR}/*.conf; do
# grep variable names (format: ${VAR}) from template to be rendered
VARS=$(grep -oP '@[a-zA-Z0-9_]+@' ${c} | sort | uniq | xargs)
......
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