Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
lizhongxiao
OpenXG-RAN
Commits
8a290ece
Commit
8a290ece
authored
Oct 20, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/resolve_fqdn' into integration_2022_wk42b
parents
c36a1ef4
048c7df3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
10 deletions
+12
-10
docker/scripts/enb_entrypoint.sh
docker/scripts/enb_entrypoint.sh
+1
-1
docker/scripts/gnb_entrypoint.sh
docker/scripts/gnb_entrypoint.sh
+4
-6
docker/scripts/lte_ru_entrypoint.sh
docker/scripts/lte_ru_entrypoint.sh
+1
-1
docker/scripts/lte_ue_entrypoint.sh
docker/scripts/lte_ue_entrypoint.sh
+1
-1
docker/scripts/nr_ue_entrypoint.sh
docker/scripts/nr_ue_entrypoint.sh
+5
-1
No files found.
docker/scripts/enb_entrypoint.sh
View file @
8a290ece
#!/bin/bash
set
-
e
uo
pipefail
set
-uo
pipefail
PREFIX
=
/opt/oai-enb
RRC_INACTIVITY_THRESHOLD
=
${
RRC_INACTIVITY_THRESHOLD
:-
0
}
...
...
docker/scripts/gnb_entrypoint.sh
View file @
8a290ece
#!/bin/bash
set
-
e
uo
pipefail
set
-uo
pipefail
PREFIX
=
/opt/oai-gnb
ENABLE_X2
=
${
ENABLE_X2
:-
yes
}
...
...
@@ -21,11 +21,9 @@ if [[ -v USE_VOLUMED_CONF ]]; then cp $PREFIX/etc/mounted.conf $PREFIX/etc/gnb.c
# Defualt Parameters
GNB_ID
=
${
GNB_ID
:-
e00
}
NSSAI_SD
=
${
NSSAI_SD
:-
ffffff
}
USE_FQDN
=
${
USE_FQDN
:-
false
}
AMF_FQDN
=
${
AMF_FQDN
:-
oai
-amf-svc
}
# Resolve AMF FQDN
if
(
$USE_FQDN
)
;
then
AMF_IP_ADDRESS
=(
`
getent hosts
$AMF_FQDN
|
awk
'{print $1}'
`
)
;
fi
# AMF_IP_ADDRESS can be amf ip address of amf fqdn
if
[[
-v
AMF_IP_ADDRESS
]]
&&
[[
"
${
AMF_IP_ADDRESS
}
"
=
~
[
a-zA-Z]
]]
&&
[[
-z
`
getent hosts
$AMF_IP_ADDRESS
|
awk
'{print $1}'
`
]]
;
then
echo
"not able to resolve AMF FQDN"
&&
exit
1
;
fi
[[
-v
AMF_IP_ADDRESS
]]
&&
[[
"
${
AMF_IP_ADDRESS
}
"
=
~
[
a-zA-Z]
]]
&&
AMF_IP_ADDRESS
=
$(
getent hosts
$AMF_IP_ADDRESS
|
awk
'{print $1}'
)
# Only this template will be manipulated
CONFIG_FILES
=
`
ls
$PREFIX
/etc/gnb.conf
||
true
`
...
...
docker/scripts/lte_ru_entrypoint.sh
View file @
8a290ece
#!/bin/bash
set
-
e
uo
pipefail
set
-uo
pipefail
PREFIX
=
/opt/oai-lte-ru
...
...
docker/scripts/lte_ue_entrypoint.sh
View file @
8a290ece
#!/bin/bash
set
-
e
uo
pipefail
set
-uo
pipefail
PREFIX
=
/opt/oai-lte-ue
...
...
docker/scripts/nr_ue_entrypoint.sh
View file @
8a290ece
#!/bin/bash
set
-
e
uo
pipefail
set
-uo
pipefail
PREFIX
=
/opt/oai-nr-ue
...
...
@@ -11,6 +11,10 @@ if [[ -v USE_VOLUMED_CONF ]]; then cp $PREFIX/etc/mounted.conf $PREFIX/etc/nr-ue
# if none, pick the default
if
[
!
-f
$PREFIX
/etc/nr-ue.conf
]
;
then
cp
$PREFIX
/etc/nr-ue-sim.conf
$PREFIX
/etc/nr-ue.conf
;
fi
# RFSIMULATOR can have ip-address or service name
if
[[
-v
RFSIMULATOR
]]
&&
[[
"
${
RFSIMULATOR
}
"
=
~
[
a-zA-Z]
]]
&&
[[
-z
`
getent hosts
$RFSIMULATOR
|
awk
'{print $1}'
`
]]
;
then
echo
"not able to resolve RFSIMULATOR FQDN"
&&
exit
1
;
fi
[[
-v
RFSIMULATOR
]]
&&
[[
"
${
RFSIMULATOR
}
"
=
~
[
a-zA-Z]
]]
&&
RFSIMULATOR
=
$(
getent hosts
$RFSIMULATOR
|
awk
'{print $1}'
)
# Only this template will be manipulated
CONFIG_FILES
=
`
ls
$PREFIX
/etc/nr-ue.conf
||
true
`
...
...
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