Commit 82dd0458 authored by sagar arora's avatar sagar arora

Merge branch 'fqdn_support' into 'develop'

FQDN support

See merge request oai/cn5g/oai-cn5g-upf-vpp!29
parents 62853f72 91f9daea
......@@ -41,6 +41,18 @@ set -euo pipefail
CONFIG_DIR="/openair-upf/etc"
BIN_DIR="/openair-upf/bin"
REGISTER_NRF=${REGISTER_NRF:-no}
NRF_IPV4_ADDRESS=${NRF_IPV4_ADDRESS:-0.0.0.0}
NRF_PORT=${NRF_PORT:-80}
NRF_API_VERSION=${NRF_API_VERSION:-v1}
NRF_FQDN=${NRF_FQDN:-oai-nrf}
USE_FQDN_DNS=${USE_FQDN_DNS:-no}
if [[ ${USE_FQDN_DNS} == "yes" ]];then
NRF_IPV4_ADDRESS=(`getent hosts $NRF_FQDN | awk '{print $1}'`)
echo -e "\nResolving NRF by FQDN : $NRF_FQDN - $NRF_IPV4_ADDRESS"
fi
UUID=$(cat /proc/sys/kernel/random/uuid)
SGI_IPV4=$(ifconfig $INTERFACE_CORE | grep "inet " | awk '{print $2}')
......
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