Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UPF
Commits
1ef48a73
Commit
1ef48a73
authored
Jul 04, 2022
by
kharade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fqdn support
parent
2ba7fded
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
scripts/entrypoint.sh
scripts/entrypoint.sh
+11
-0
No files found.
scripts/entrypoint.sh
View file @
1ef48a73
...
...
@@ -41,6 +41,17 @@ 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
}
if
[[
${
USE_FQDN_DNS
}
==
"yes"
]]
;
then
NRF_IPV4_ADDRESS
=(
`
getent hosts
$NRF_FQDN
|
awk
'{print $1}'
`
)
echo
-e
"
\n
Resolving 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}'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment