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
Michael Black
OpenXG-RAN
Commits
79d351fb
Commit
79d351fb
authored
Mar 15, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade IP addresses and routes for new faraday cage deployment
parent
bf03abae
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
16 deletions
+34
-16
ci-scripts/cls_containerize.py
ci-scripts/cls_containerize.py
+30
-12
ci-scripts/yaml_files/nsa_b200_enb/docker-compose.yml
ci-scripts/yaml_files/nsa_b200_enb/docker-compose.yml
+1
-1
ci-scripts/yaml_files/nsa_b200_gnb/docker-compose.yml
ci-scripts/yaml_files/nsa_b200_gnb/docker-compose.yml
+1
-1
ci-scripts/yaml_files/sa_b200_gnb/docker-compose.yml
ci-scripts/yaml_files/sa_b200_gnb/docker-compose.yml
+1
-1
ci-scripts/yaml_files/sa_f1_b200_gnb/docker-compose.yml
ci-scripts/yaml_files/sa_f1_b200_gnb/docker-compose.yml
+1
-1
No files found.
ci-scripts/cls_containerize.py
View file @
79d351fb
...
...
@@ -1490,11 +1490,6 @@ class Containerize():
result
=
re
.
search
(
'172.21.16.128'
,
mySSH
.
getBefore
())
if
result
is
None
:
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S ip route add 192.168.68.128/26 via 172.21.16.128 dev eno1'
,
'\$'
,
10
)
# Check if route to nepes gnb exists
mySSH
.
command
(
'ip route | grep --colour=never "192.168.68.192/26"'
,
'\$'
,
10
)
result
=
re
.
search
(
'172.21.16.137'
,
mySSH
.
getBefore
())
if
result
is
None
:
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S ip route add 192.168.68.192/26 via 172.21.16.137 dev eno1'
,
'\$'
,
10
)
# Check if forwarding is enabled
mySSH
.
command
(
'sysctl net.ipv4.conf.all.forwarding'
,
'\$'
,
10
)
result
=
re
.
search
(
'net.ipv4.conf.all.forwarding = 1'
,
mySSH
.
getBefore
())
...
...
@@ -1564,16 +1559,39 @@ class Containerize():
mySSH
.
close
()
if
svrName
==
'nepes'
:
mySSH
.
open
(
ipAddr
,
userName
,
password
)
# Check if route to porcepix epc exists
mySSH
.
command
(
'ip route | grep --colour=never "192.168.61.192/26"'
,
'\$'
,
10
)
result
=
re
.
search
(
'172.21.16.136'
,
mySSH
.
getBefore
())
# Check if route to porcepix epc exists: not necessary, is on same host
#mySSH.command('ip route | grep --colour=never "192.168.61.192/26"', '\$', 10)
#result = re.search('172.21.16.136', mySSH.getBefore())
#if result is None:
# mySSH.command('echo ' + password + ' | sudo -S ip route add 192.168.61.192/26 via 172.21.16.136 dev enp0s31f6', '\$', 10)
# Check if X2 route to obelix enb exists: not necessary, gnb is on ofqot
#mySSH.command('ip route | grep --colour=never "192.168.68.128/26"', '\$', 10)
#result = re.search('172.21.16.128', mySSH.getBefore())
#if result is None:
# mySSH.command('echo ' + password + ' | sudo -S ip route add 192.168.68.128/26 via 172.21.16.128 dev enp0s31f6', '\$', 10)
# Check if forwarding is enabled
# Check if route to ofqot gnb exists
mySSH
.
command
(
'ip route | grep --colour=never "192.168.68.192/26"'
,
'\$'
,
10
)
result
=
re
.
search
(
'172.21.16.109'
,
mySSH
.
getBefore
())
if
result
is
None
:
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S ip route add 192.168.61.192/26 via 172.21.16.136 dev enp0s31f6'
,
'\$'
,
10
)
# Check if X2 route to obelix enb exists
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S ip route add 192.168.68.192/26 via 172.21.16.109 dev enp0s31f6'
,
'\$'
,
10
)
mySSH
.
command
(
'sysctl net.ipv4.conf.all.forwarding'
,
'\$'
,
10
)
result
=
re
.
search
(
'net.ipv4.conf.all.forwarding = 1'
,
mySSH
.
getBefore
())
if
result
is
None
:
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S sysctl net.ipv4.conf.all.forwarding=1'
,
'\$'
,
10
)
# Check if iptables forwarding is accepted
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S iptables -L FORWARD'
,
'\$'
,
10
)
result
=
re
.
search
(
'Chain FORWARD .*policy ACCEPT'
,
mySSH
.
getBefore
())
if
result
is
None
:
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S iptables -P FORWARD ACCEPT'
,
'\$'
,
10
)
mySSH
.
close
()
if
svrName
==
'ofqot'
:
mySSH
.
open
(
ipAddr
,
userName
,
password
)
# Check if X2 route to nepes enb/epc exists
mySSH
.
command
(
'ip route | grep --colour=never "192.168.68.128/26"'
,
'\$'
,
10
)
result
=
re
.
search
(
'172.21.16.1
28
'
,
mySSH
.
getBefore
())
result
=
re
.
search
(
'172.21.16.1
37
'
,
mySSH
.
getBefore
())
if
result
is
None
:
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S ip route add 192.168.68.128/26 via 172.21.16.1
28 dev enp0s31f6
'
,
'\$'
,
10
)
mySSH
.
command
(
'echo '
+
password
+
' | sudo -S ip route add 192.168.68.128/26 via 172.21.16.1
37 dev enp2s0
'
,
'\$'
,
10
)
# Check if forwarding is enabled
mySSH
.
command
(
'sysctl net.ipv4.conf.all.forwarding'
,
'\$'
,
10
)
result
=
re
.
search
(
'net.ipv4.conf.all.forwarding = 1'
,
mySSH
.
getBefore
())
...
...
ci-scripts/yaml_files/nsa_b200_enb/docker-compose.yml
View file @
79d351fb
...
...
@@ -20,7 +20,7 @@ services:
NB_PRB
:
25
ENABLE_MEASUREMENT_REPORTS
:
'
yes'
ENABLE_X2
:
'
yes'
MME_S1C_IP_ADDRESS
:
172.21.16.13
6
MME_S1C_IP_ADDRESS
:
172.21.16.13
7
ENB_S1C_IF_NAME
:
eth0
ENB_S1C_IP_ADDRESS
:
192.168.68.130
ENB_S1U_IF_NAME
:
eth0
...
...
ci-scripts/yaml_files/nsa_b200_gnb/docker-compose.yml
View file @
79d351fb
...
...
@@ -15,7 +15,7 @@ services:
TAC
:
1
ENABLE_X2
:
'
yes'
ENB_X2_IP_ADDRESS
:
192.168.68.130
MME_S1C_IP_ADDRESS
:
172.21.16.13
6
MME_S1C_IP_ADDRESS
:
172.21.16.13
7
GNB_S1C_IF_NAME
:
eth0
GNB_S1C_IP_ADDRESS
:
192.168.68.194
GNB_S1U_IF_NAME
:
eth0
...
...
ci-scripts/yaml_files/sa_b200_gnb/docker-compose.yml
View file @
79d351fb
...
...
@@ -15,7 +15,7 @@ services:
TAC
:
1
NSSAI_SST
:
1
NSSAI_SD0
:
1
AMF_IP_ADDRESS
:
172.21.16.13
6
AMF_IP_ADDRESS
:
172.21.16.13
7
GNB_NGA_IF_NAME
:
eth0
GNB_NGA_IP_ADDRESS
:
192.168.68.194
GNB_NGU_IF_NAME
:
eth0
...
...
ci-scripts/yaml_files/sa_f1_b200_gnb/docker-compose.yml
View file @
79d351fb
...
...
@@ -16,7 +16,7 @@ services:
NSSAI_SST
:
1
NSSAI_SD0
:
1
NSSAI_SD1
:
2
AMF_IP_ADDRESS
:
172.21.16.13
6
AMF_IP_ADDRESS
:
172.21.16.13
7
GNB_NGA_IF_NAME
:
eth0
GNB_NGA_IP_ADDRESS
:
192.168.68.194
GNB_NGU_IF_NAME
:
eth0
...
...
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