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
1
Merge Requests
1
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-RAN
Commits
5f2f1b5e
Commit
5f2f1b5e
authored
Oct 07, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding the support of different apn depending on CN in ue infra yaml
parent
28ce54a8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
ci-scripts/ci_ueinfra.yaml
ci-scripts/ci_ueinfra.yaml
+7
-2
ci-scripts/cls_module_ue.py
ci-scripts/cls_module_ue.py
+2
-2
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+1
-1
ci-scripts/ran.py
ci-scripts/ran.py
+1
-1
No files found.
ci-scripts/ci_ueinfra.yaml
View file @
5f2f1b5e
...
...
@@ -4,7 +4,9 @@ idefix:
Kind
:
quectel
Process
:
Name
:
quectel-CM
Cmd
:
/home/oaicicd/quectel-CM/quectel-CM -s oai.ipv4 -4
Cmd
:
/home/oaicicd/quectel-CM/quectel-CM -4 -s
Apn
:
ltebox
:
oai.ipv4
WakeupScript
:
ci_ctl_qtel.py /dev/ttyUSB2 wup
DetachScript
:
ci_ctl_qtel.py /dev/ttyUSB2 detach
LogStore
:
/media/usb-drive/ci_qlogs
...
...
@@ -20,7 +22,10 @@ nrmodule2_quectel:
Kind
:
quectel
Process
:
Name
:
quectel-CM
Cmd
:
/home/nrmodule2/quectel-CM/quectel-CM -s oai -4
#oai is the dnn for OAI CN5G (hardcoded in CN)
Cmd
:
/home/nrmodule2/quectel-CM/quectel-CM -4 -s
Apn
:
OAICN5G
:
oai
OAI-Rel14-Docker
:
oai.ipv4
WakeupScript
:
ci_ctl_qtel.py /dev/ttyUSB7 wup
DetachScript
:
ci_ctl_qtel.py /dev/ttyUSB7 detach
LogStore
:
/media/ci_qlogs
...
...
ci-scripts/cls_module_ue.py
View file @
5f2f1b5e
...
...
@@ -61,7 +61,7 @@ class Module_UE:
#this method checks if the specified Process is running on the server hosting the module
#if not it will be started
def
CheckCMProcess
(
self
):
def
CheckCMProcess
(
self
,
CNType
):
HOST
=
self
.
HostUsername
+
'@'
+
self
.
HostIPAddress
COMMAND
=
"ps aux | grep "
+
self
.
Process
[
'Name'
]
+
" | grep -v grep "
logging
.
debug
(
COMMAND
)
...
...
@@ -76,7 +76,7 @@ class Module_UE:
logging
.
debug
(
'Starting '
+
self
.
Process
[
'Name'
])
mySSH
=
sshconnection
.
SSHConnection
()
mySSH
.
open
(
self
.
HostIPAddress
,
self
.
HostUsername
,
self
.
HostPassword
)
mySSH
.
command
(
'echo $USER; echo '
+
self
.
HostPassword
+
' | nohup sudo -S '
+
self
.
Process
[
'Cmd'
]
+
' &'
,
'\$'
,
5
)
mySSH
.
command
(
'echo $USER; echo '
+
self
.
HostPassword
+
' | nohup sudo -S '
+
self
.
Process
[
'Cmd'
]
+
'
'
+
self
.
Process
[
'Apn'
][
CNType
]
+
'
&'
,
'\$'
,
5
)
mySSH
.
close
()
#checking the process
time
.
sleep
(
5
)
...
...
ci-scripts/cls_oaicitest.py
View file @
5f2f1b5e
...
...
@@ -388,7 +388,7 @@ class OaiCiTest():
#RH
Module_UE
=
cls_module_ue
.
Module_UE
(
InfraUE
.
ci_ue_infra
[
self
.
ue_id
])
Module_UE
.
ue_trace
=
ue_trace
is_module
=
Module_UE
.
CheckCMProcess
()
is_module
=
Module_UE
.
CheckCMProcess
(
EPC
.
Type
)
if
is_module
:
Module_UE
.
EnableTrace
()
time
.
sleep
(
5
)
...
...
ci-scripts/ran.py
View file @
5f2f1b5e
...
...
@@ -486,7 +486,7 @@ class RANManagement():
monitor_file
=
'stats_monitor.py'
#mySSH.command('echo ' + lPassWord + ' | sudo -S cp ' + self.eNBSourceCodePath + '/ci-scripts/'+ monitor_file + ' ' + self.eNBSourceCodePath + '/cmake_targets/ran_build/build/.','\$', 5)
#mySSH.command('echo $USER; nohup python3 ' + self.eNBSourceCodePath + '/cmake_targets/ran_build/build/' + monitor_file + ' 2>&1 &', '\$', 5)
mySSH
.
command
(
'echo $USER; nohup python3 ../ci-scripts/'
+
monitor_file
+
' 2>&1 &'
,
'\$'
,
5
)
mySSH
.
command
(
'echo $USER; nohup python3 ../ci-scripts/'
+
monitor_file
+
' 2>&1
> stats_monitor_execution.log
&'
,
'\$'
,
5
)
...
...
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