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
zzha zzha
OpenXG-RAN
Commits
5ae7e456
Commit
5ae7e456
authored
Sep 02, 2021
by
hardy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/nr-ue-fix-ip-route' into integration_2021_wk35
parents
12b1cb8f
3bd6309e
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
208 additions
and
49 deletions
+208
-49
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+3
-15
ci-scripts/xml_files/container_4g_rfsim.xml
ci-scripts/xml_files/container_4g_rfsim.xml
+129
-0
ci-scripts/xml_files/container_4g_rfsim_down.xml
ci-scripts/xml_files/container_4g_rfsim_down.xml
+38
-0
ci-scripts/xml_files/container_5g_rfsim.xml
ci-scripts/xml_files/container_5g_rfsim.xml
+1
-0
ci-scripts/yaml_files/5g_rfsimulator/README.md
ci-scripts/yaml_files/5g_rfsimulator/README.md
+0
-28
docker/Dockerfile.lteUE.rhel8.2
docker/Dockerfile.lteUE.rhel8.2
+1
-3
docker/Dockerfile.lteUE.ubuntu18
docker/Dockerfile.lteUE.ubuntu18
+1
-3
docker/scripts/enb_entrypoint.sh
docker/scripts/enb_entrypoint.sh
+1
-0
docker/scripts/enb_parameters.yaml
docker/scripts/enb_parameters.yaml
+16
-0
docker/scripts/gnb_entrypoint.sh
docker/scripts/gnb_entrypoint.sh
+1
-0
docker/scripts/gnb_parameters.yaml
docker/scripts/gnb_parameters.yaml
+4
-0
openair2/RRC/NAS/nas_config.c
openair2/RRC/NAS/nas_config.c
+13
-0
No files found.
ci-scripts/cls_containerize.py
View file @
5ae7e456
...
@@ -596,20 +596,6 @@ class Containerize():
...
@@ -596,20 +596,6 @@ class Containerize():
else
:
else
:
time
.
sleep
(
10
)
time
.
sleep
(
10
)
# HACK TO REMOVE LATER WHEN FIX
res
=
re
.
search
(
'oai-nr-ue'
,
self
.
services
[
0
])
if
res
is
not
None
:
cmd
=
'docker exec rfsim5g-oai-nr-ue /bin/bash -c "ip route del default"'
logging
.
debug
(
cmd
)
deployStatus
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
stderr
=
subprocess
.
STDOUT
,
universal_newlines
=
True
,
timeout
=
10
)
cmd
=
'docker exec rfsim5g-oai-nr-ue /bin/bash -c "ip route del 12.1.1.0/24"'
logging
.
debug
(
cmd
)
deployStatus
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
stderr
=
subprocess
.
STDOUT
,
universal_newlines
=
True
,
timeout
=
10
)
cmd
=
'docker exec rfsim5g-oai-nr-ue /bin/bash -c "ip route add default via 12.1.1.2 dev oaitun_ue1"'
logging
.
debug
(
cmd
)
deployStatus
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
stderr
=
subprocess
.
STDOUT
,
universal_newlines
=
True
,
timeout
=
10
)
# END OF HACK TO REMOVE LATER WHEN FIX
if
count
==
100
and
healthy
==
self
.
nb_healthy
[
0
]:
if
count
==
100
and
healthy
==
self
.
nb_healthy
[
0
]:
HTML
.
CreateHtmlTestRow
(
'n/a'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTestRow
(
'n/a'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
logging
.
info
(
'
\u001B
[1m Deploying OAI Object(s) PASS
\u001B
[0m'
)
logging
.
info
(
'
\u001B
[1m Deploying OAI Object(s) PASS
\u001B
[0m'
)
...
@@ -628,7 +614,7 @@ class Containerize():
...
@@ -628,7 +614,7 @@ class Containerize():
logging
.
debug
(
cmd
)
logging
.
debug
(
cmd
)
subprocess
.
run
(
cmd
,
shell
=
True
)
subprocess
.
run
(
cmd
,
shell
=
True
)
# if the containers are running, recover the logs!
# if the containers are running, recover the logs!
cmd
=
'cd '
+
self
.
yamlPath
[
0
]
+
' && docker-compose -f docker-compose-ci.yml ps --all'
cmd
=
'cd '
+
self
.
yamlPath
[
0
]
+
' && docker-compose -f docker-compose-ci.yml ps --all'
logging
.
debug
(
cmd
)
logging
.
debug
(
cmd
)
deployStatus
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
stderr
=
subprocess
.
STDOUT
,
universal_newlines
=
True
,
timeout
=
10
)
deployStatus
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
stderr
=
subprocess
.
STDOUT
,
universal_newlines
=
True
,
timeout
=
10
)
...
@@ -831,7 +817,9 @@ class Containerize():
...
@@ -831,7 +817,9 @@ class Containerize():
logging
.
debug
(
'
\u001B
[1;34m Jitter : '
+
jitter
+
'
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1;34m Jitter : '
+
jitter
+
'
\u001B
[0m'
)
self
.
IperfExit
(
HTML
,
iperfStatus
,
msg
)
self
.
IperfExit
(
HTML
,
iperfStatus
,
msg
)
else
:
else
:
iperfStatus
=
False
logging
.
error
(
'problem?'
)
logging
.
error
(
'problem?'
)
self
.
IperfExit
(
HTML
,
iperfStatus
,
'problem?'
)
if
iperfStatus
:
if
iperfStatus
:
logging
.
info
(
'
\u001B
[1m Iperf Test PASS
\u001B
[0m'
)
logging
.
info
(
'
\u001B
[1m Iperf Test PASS
\u001B
[0m'
)
...
...
ci-scripts/xml_files/container_4g_rfsim.xml
0 → 100644
View file @
5ae7e456
<!--
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Public License, Version 1.1 (the "License"); you may not use this file
except in compliance with the License.
You may obtain a copy of the License at
http://www.openairinterface.org/?page_id=698
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
-->
<testCaseList>
<htmlTabRef>
rfsim-4glte
</htmlTabRef>
<htmlTabName>
Testing 4G LTE RF sim in containers
</htmlTabName>
<htmlTabIcon>
wrench
</htmlTabIcon>
<TestCaseRequestedList>
100011
000011
000001
000012
000002
000013
000001
000014
000002
020011
020012
030011
030012
100011
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"000011"
>
<class>
DeployGenObject
</class>
<desc>
Deploy Cassandra Database
</desc>
<yaml_path>
yaml_files/4g_rfsimulator
</yaml_path>
<services>
cassandra db_init
</services>
<nb_healthy>
1
</nb_healthy>
</testCase>
<testCase
id=
"000001"
>
<class>
IdleSleep
</class>
<desc>
Sleep
</desc>
<idle_sleep_time_in_sec>
30
</idle_sleep_time_in_sec>
</testCase>
<testCase
id=
"000002"
>
<class>
IdleSleep
</class>
<desc>
Sleep
</desc>
<idle_sleep_time_in_sec>
10
</idle_sleep_time_in_sec>
</testCase>
<testCase
id=
"000012"
>
<class>
DeployGenObject
</class>
<desc>
Deploy OAI 4G CoreNetwork
</desc>
<yaml_path>
yaml_files/4g_rfsimulator
</yaml_path>
<services>
oai_hss oai_mme oai_spgwc oai_spgwu trf_gen
</services>
<nb_healthy>
6
</nb_healthy>
</testCase>
<testCase
id=
"000013"
>
<class>
DeployGenObject
</class>
<desc>
Deploy OAI 4G eNB RF sim
</desc>
<yaml_path>
yaml_files/4g_rfsimulator
</yaml_path>
<services>
enb
</services>
<nb_healthy>
7
</nb_healthy>
</testCase>
<testCase
id=
"000014"
>
<class>
DeployGenObject
</class>
<desc>
Deploy OAI 4G NR-UE RF sim
</desc>
<yaml_path>
yaml_files/4g_rfsimulator
</yaml_path>
<services>
oai_ue0
</services>
<nb_healthy>
8
</nb_healthy>
</testCase>
<testCase
id=
"020011"
>
<class>
PingFromContainer
</class>
<desc>
Ping Traffic-Gen from LTE-UE
</desc>
<container_name>
rfsim4g-oai-lte-ue0
</container_name>
<options>
-I oaitun_ue1 -c 20 192.168.61.11
</options>
<loss_threshold>
5
</loss_threshold>
</testCase>
<testCase
id=
"020012"
>
<class>
PingFromContainer
</class>
<desc>
Ping LTE-UE from Traffic-Gen
</desc>
<container_name>
rfsim4g-trf-gen
</container_name>
<options>
-c 20 12.0.0.2
</options>
<loss_threshold>
5
</loss_threshold>
</testCase>
<testCase
id=
"030011"
>
<class>
IperfFromContainer
</class>
<desc>
Iperf UDP Downlink
</desc>
<server_container_name>
rfsim4g-oai-lte-ue0
</server_container_name>
<client_container_name>
rfsim4g-trf-gen
</client_container_name>
<server_options>
-B 12.0.0.2 -u -i 1 -s
</server_options>
<client_options>
-c 12.0.0.2 -u -i 1 -t 30 -b 2M
</client_options>
</testCase>
<testCase
id=
"030012"
>
<class>
IperfFromContainer
</class>
<desc>
Iperf UDP Uplink
</desc>
<server_container_name>
rfsim4g-trf-gen
</server_container_name>
<client_container_name>
rfsim4g-oai-lte-ue0
</client_container_name>
<server_options>
-u -i 1 -s
</server_options>
<client_options>
-B 12.0.0.2 -c 192.168.61.11 -u -i 1 -t 30 -b 1M
</client_options>
</testCase>
<testCase
id=
"100011"
>
<class>
UndeployGenObject
</class>
<desc>
Undeploy all OAI 4G stack
</desc>
<yaml_path>
yaml_files/4g_rfsimulator
</yaml_path>
</testCase>
</testCaseList>
ci-scripts/xml_files/container_4g_rfsim_down.xml
0 → 100644
View file @
5ae7e456
<!--
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Public License, Version 1.1 (the "License"); you may not use this file
except in compliance with the License.
You may obtain a copy of the License at
http://www.openairinterface.org/?page_id=698
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
-->
<testCaseList>
<htmlTabRef>
rfsim-4glte-down
</htmlTabRef>
<htmlTabName>
CleanUp 4G RF
</htmlTabName>
<htmlTabIcon>
trash
</htmlTabIcon>
<TestCaseRequestedList>
100011
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"100011"
>
<class>
UndeployGenObject
</class>
<desc>
Undeploy all OAI 4G stack
</desc>
<yaml_path>
yaml_files/4g_rfsimulator
</yaml_path>
</testCase>
</testCaseList>
ci-scripts/xml_files/container_5g_rfsim.xml
View file @
5ae7e456
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
<htmlTabName>
Testing 5G NR RF sim in containers
</htmlTabName>
<htmlTabName>
Testing 5G NR RF sim in containers
</htmlTabName>
<htmlTabIcon>
wrench
</htmlTabIcon>
<htmlTabIcon>
wrench
</htmlTabIcon>
<TestCaseRequestedList>
<TestCaseRequestedList>
100001
000001
000001
000002
000002
000003
000003
...
...
ci-scripts/yaml_files/5g_rfsimulator/README.md
View file @
5ae7e456
...
@@ -218,34 +218,6 @@ oaitun_ue1: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
...
@@ -218,34 +218,6 @@ oaitun_ue1: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
```
```
**CAUTION: THESE NEXT FEW COMMANDS ARE A HACK. RAN developers SHALL FIX THIS!**
```
bash
$
docker
exec
-it
rfsim5g-oai-nr-ue /bin/bash
# Check the current routes
root@bb4d400a832d:/opt/oai-nr-ue# ip route
default via 192.168.71.129 dev eth0
12.1.1.0/24 dev oaitun_ue1 proto kernel scope
link
src 12.1.1.2
192.168.71.128/26 dev eth0 proto kernel scope
link
src 192.168.71.137
# Remove the default and PDN routes
root@bb4d400a832d:/opt/oai-nr-ue# ip route del default
root@bb4d400a832d:/opt/oai-nr-ue# ip route del 12.1.1.0/24
# Force the default route through oaitun_ue1 tunnel
root@bb4d400a832d:/opt/oai-nr-ue# ip route add default via 12.1.1.2 dev oaitun_ue1
# Check the new routes
root@bb4d400a832d:/opt/oai-nr-ue# ip route
default via 12.1.1.2 dev oaitun_ue1
192.168.71.128/26 dev eth0 proto kernel scope
link
src 192.168.71.137
```
# 3. Check traffic #
# 3. Check traffic #
## 3.1. Check your Internet connectivity ##
## 3.1. Check your Internet connectivity ##
...
...
docker/Dockerfile.lteUE.rhel8.2
View file @
5ae7e456
...
@@ -37,9 +37,7 @@ RUN /bin/sh oaienv && \
...
@@ -37,9 +37,7 @@ RUN /bin/sh oaienv && \
mkdir -p log && \
mkdir -p log && \
./build_oai --UE --ninja -w USRP --verbose-ci
./build_oai --UE --ninja -w USRP --verbose-ci
RUN yum install -y python3-pip && \
RUN python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_parameters.yaml && \
pip3 install --ignore-installed pyyaml && \
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_parameters.yaml && \
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_sim_parameters.yaml
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_sim_parameters.yaml
#start from scratch for target executable
#start from scratch for target executable
...
...
docker/Dockerfile.lteUE.ubuntu18
View file @
5ae7e456
...
@@ -37,9 +37,7 @@ RUN /bin/sh oaienv && \
...
@@ -37,9 +37,7 @@ RUN /bin/sh oaienv && \
mkdir -p log && \
mkdir -p log && \
./build_oai --UE --ninja -w USRP --verbose-ci
./build_oai --UE --ninja -w USRP --verbose-ci
RUN apt-get install -y python3-pip && \
RUN python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_parameters.yaml && \
pip3 install --ignore-installed pyyaml && \
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_parameters.yaml && \
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_sim_parameters.yaml
python3 ./docker/scripts/generateTemplate.py ./docker/scripts/lte_ue_sim_parameters.yaml
#start from scratch for target executable
#start from scratch for target executable
...
...
docker/scripts/enb_entrypoint.sh
View file @
5ae7e456
...
@@ -6,6 +6,7 @@ PREFIX=/opt/oai-enb
...
@@ -6,6 +6,7 @@ PREFIX=/opt/oai-enb
RRC_INACTIVITY_THRESHOLD
=
${
RRC_INACTIVITY_THRESHOLD
:-
0
}
RRC_INACTIVITY_THRESHOLD
=
${
RRC_INACTIVITY_THRESHOLD
:-
0
}
ENABLE_MEASUREMENT_REPORTS
=
${
ENABLE_MEASUREMENT_REPORTS
:-
no
}
ENABLE_MEASUREMENT_REPORTS
=
${
ENABLE_MEASUREMENT_REPORTS
:-
no
}
ENABLE_X2
=
${
ENABLE_X2
:-
no
}
ENABLE_X2
=
${
ENABLE_X2
:-
no
}
THREAD_PARALLEL_CONFIG
=
${
THREAD_PARALLEL_CONFIG
:-
PARALLEL_SINGLE_THREAD
}
# Based another env var, pick one template to use
# Based another env var, pick one template to use
if
[[
-v
USE_FDD_CU
]]
;
then
ln
-s
$PREFIX
/etc/cu.fdd.conf
$PREFIX
/etc/enb.conf
;
fi
if
[[
-v
USE_FDD_CU
]]
;
then
ln
-s
$PREFIX
/etc/cu.fdd.conf
$PREFIX
/etc/enb.conf
;
fi
...
...
docker/scripts/enb_parameters.yaml
View file @
5ae7e456
...
@@ -98,6 +98,8 @@
...
@@ -98,6 +98,8 @@
env
:
"
@NID_CELL@"
env
:
"
@NID_CELL@"
-
key
:
N_RB_DL
-
key
:
N_RB_DL
env
:
"
@NB_PRB@"
env
:
"
@NB_PRB@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
-
filePrefix
:
rru.fdd
-
filePrefix
:
rru.fdd
outputfilename
:
"
rru.fdd.conf"
outputfilename
:
"
rru.fdd.conf"
...
@@ -110,6 +112,8 @@
...
@@ -110,6 +112,8 @@
env
:
"
@RRU_LOCAL_IP_ADDRESS@"
env
:
"
@RRU_LOCAL_IP_ADDRESS@"
-
key
:
bands
-
key
:
bands
env
:
"
@UTRA_BAND_ID@"
env
:
"
@UTRA_BAND_ID@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
-
filePrefix
:
rru.tdd
-
filePrefix
:
rru.tdd
outputfilename
:
"
rru.tdd.conf"
outputfilename
:
"
rru.tdd.conf"
...
@@ -122,6 +126,8 @@
...
@@ -122,6 +126,8 @@
env
:
"
@RRU_LOCAL_IP_ADDRESS@"
env
:
"
@RRU_LOCAL_IP_ADDRESS@"
-
key
:
bands
-
key
:
bands
env
:
"
@UTRA_BAND_ID@"
env
:
"
@UTRA_BAND_ID@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
-
filePrefix
:
enb.band7.tm1.fr1.25PRB.usrpb210.conf
-
filePrefix
:
enb.band7.tm1.fr1.25PRB.usrpb210.conf
outputfilename
:
"
enb.fdd.conf"
outputfilename
:
"
enb.fdd.conf"
...
@@ -171,6 +177,8 @@
...
@@ -171,6 +177,8 @@
env
:
"
@FLEXRAN_INTERFACE_NAME@"
env
:
"
@FLEXRAN_INTERFACE_NAME@"
-
key
:
FLEXRAN_IPV4_ADDRESS
-
key
:
FLEXRAN_IPV4_ADDRESS
env
:
"
@FLEXRAN_IPV4_ADDRESS@"
env
:
"
@FLEXRAN_IPV4_ADDRESS@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
-
filePrefix
:
enb.band40.tm1.25PRB.FairScheduler.usrpb210
-
filePrefix
:
enb.band40.tm1.25PRB.FairScheduler.usrpb210
outputfilename
:
"
enb.tdd.conf"
outputfilename
:
"
enb.tdd.conf"
...
@@ -208,6 +216,8 @@
...
@@ -208,6 +216,8 @@
env
:
"
@F1_CU_IP_ADDRESS@"
env
:
"
@F1_CU_IP_ADDRESS@"
-
key
:
ENB_IPV4_ADDRESS_FOR_X2C
-
key
:
ENB_IPV4_ADDRESS_FOR_X2C
env
:
"
@F1_CU_IP_ADDRESS@"
env
:
"
@F1_CU_IP_ADDRESS@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
-
filePrefix
:
"
rcc.band7.tm1.nfapi"
-
filePrefix
:
"
rcc.band7.tm1.nfapi"
outputfilename
:
"
rcc.nfapi.fdd.conf"
outputfilename
:
"
rcc.nfapi.fdd.conf"
...
@@ -251,6 +261,8 @@
...
@@ -251,6 +261,8 @@
env
:
"
@F1_CU_IP_ADDRESS@"
env
:
"
@F1_CU_IP_ADDRESS@"
-
key
:
ENB_IPV4_ADDRESS_FOR_X2C
-
key
:
ENB_IPV4_ADDRESS_FOR_X2C
env
:
"
@F1_CU_IP_ADDRESS@"
env
:
"
@F1_CU_IP_ADDRESS@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
-
filePrefix
:
"
rcc.band7.tm1.if4p5.lo.25PRB"
-
filePrefix
:
"
rcc.band7.tm1.if4p5.lo.25PRB"
outputfilename
:
"
rcc.if4p5.fdd.conf"
outputfilename
:
"
rcc.if4p5.fdd.conf"
...
@@ -294,6 +306,8 @@
...
@@ -294,6 +306,8 @@
env
:
"
@IF4P5_RRU_IP_ADDRESS@"
env
:
"
@IF4P5_RRU_IP_ADDRESS@"
-
key
:
local_address
-
key
:
local_address
env
:
"
@IF4P5_RCC_IP_ADDRESS@"
env
:
"
@IF4P5_RCC_IP_ADDRESS@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
-
filePrefix
:
"
rcc.band40.tm1.25PRB"
-
filePrefix
:
"
rcc.band40.tm1.25PRB"
outputfilename
:
"
rcc.if4p5.tdd.conf"
outputfilename
:
"
rcc.if4p5.tdd.conf"
...
@@ -337,4 +351,6 @@
...
@@ -337,4 +351,6 @@
env
:
"
@IF4P5_RRU_IP_ADDRESS@"
env
:
"
@IF4P5_RRU_IP_ADDRESS@"
-
key
:
local_address
-
key
:
local_address
env
:
"
@IF4P5_RCC_IP_ADDRESS@"
env
:
"
@IF4P5_RCC_IP_ADDRESS@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
docker/scripts/gnb_entrypoint.sh
View file @
5ae7e456
...
@@ -4,6 +4,7 @@ set -euo pipefail
...
@@ -4,6 +4,7 @@ set -euo pipefail
PREFIX
=
/opt/oai-gnb
PREFIX
=
/opt/oai-gnb
ENABLE_X2
=
${
ENABLE_X2
:-
yes
}
ENABLE_X2
=
${
ENABLE_X2
:-
yes
}
THREAD_PARALLEL_CONFIG
=
${
THREAD_PARALLEL_CONFIG
:-
PARALLEL_SINGLE_THREAD
}
# Based another env var, pick one template to use
# Based another env var, pick one template to use
if
[[
-v
USE_NSA_TDD_MONO
]]
;
then
ln
-s
$PREFIX
/etc/gnb.nsa.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
if
[[
-v
USE_NSA_TDD_MONO
]]
;
then
ln
-s
$PREFIX
/etc/gnb.nsa.tdd.conf
$PREFIX
/etc/gnb.conf
;
fi
...
...
docker/scripts/gnb_parameters.yaml
View file @
5ae7e456
...
@@ -61,6 +61,8 @@
...
@@ -61,6 +61,8 @@
env
:
"
@FLEXRAN_INTERFACE_NAME@"
env
:
"
@FLEXRAN_INTERFACE_NAME@"
-
key
:
FLEXRAN_IPV4_ADDRESS
-
key
:
FLEXRAN_IPV4_ADDRESS
env
:
"
@FLEXRAN_IPV4_ADDRESS@"
env
:
"
@FLEXRAN_IPV4_ADDRESS@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
-
filePrefix
:
gnb.band78.sa.fr1.106PRB.usrpn310.conf
-
filePrefix
:
gnb.band78.sa.fr1.106PRB.usrpn310.conf
outputfilename
:
"
gnb.sa.tdd.conf"
outputfilename
:
"
gnb.sa.tdd.conf"
...
@@ -89,4 +91,6 @@
...
@@ -89,4 +91,6 @@
env
:
"
@GNB_NGU_IF_NAME@"
env
:
"
@GNB_NGU_IF_NAME@"
-
key
:
GNB_IPV4_ADDRESS_FOR_NGU
-
key
:
GNB_IPV4_ADDRESS_FOR_NGU
env
:
"
@GNB_NGU_IP_ADDRESS@"
env
:
"
@GNB_NGU_IP_ADDRESS@"
-
key
:
parallel_config
env
:
"
@THREAD_PARALLEL_CONFIG@"
openair2/RRC/NAS/nas_config.c
View file @
5ae7e456
...
@@ -344,6 +344,19 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifname)
...
@@ -344,6 +344,19 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifname)
LOG_E
(
OIP
,
"Interface %s couldn't be configured (ip address %s, mask %s broadcast address %s)
\n
"
,
LOG_E
(
OIP
,
"Interface %s couldn't be configured (ip address %s, mask %s broadcast address %s)
\n
"
,
interfaceName
,
ipAddress
,
netMask
,
broadcastAddress
);
interfaceName
,
ipAddress
,
netMask
,
broadcastAddress
);
int
res
;
char
command_line
[
500
];
res
=
sprintf
(
command_line
,
"ip rule add from %s/32 table %d && "
"ip rule add to %s/32 table %d && "
"ip route add default dev %s%d table %d"
,
ipAddress
,
interface_id
-
1
+
10000
,
ipAddress
,
interface_id
-
1
+
10000
,
UE_NAS_USE_TUN
?
"oaitun_ue"
:
"oip"
,
interface_id
,
interface_id
-
1
+
10000
);
background_system
(
command_line
);
return
returnValue
;
return
returnValue
;
}
}
...
...
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