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
a03d2746
Commit
a03d2746
authored
Feb 03, 2023
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(ci): after upgrade of CN5G version on porcepix
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
43a2ae00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ci-scripts/epc.py
ci-scripts/epc.py
+7
-7
ci-scripts/xml_files/sa_cn5g_asue_start.xml
ci-scripts/xml_files/sa_cn5g_asue_start.xml
+1
-1
No files found.
ci-scripts/epc.py
View file @
a03d2746
...
...
@@ -43,7 +43,7 @@ from multiprocessing import Process, Lock, SimpleQueue
#-----------------------------------------------------------
# OAI Testing modules
#-----------------------------------------------------------
import
sshconnection
as
SSH
import
sshconnection
as
SSH
import
helpreadme
as
HELP
import
constants
as
CONST
...
...
@@ -66,8 +66,8 @@ class EPCManagement():
self
.
mmeConfFile
=
'mme.conf'
self
.
yamlPath
=
''
self
.
isMagmaUsed
=
False
self
.
cfgDeploy
=
'--type start-mini --fqdn yes --scenario 1 --capture /tmp/oai-cn5g-v1.
3.pcap'
#from xml, 'mini' is default normal for docker-network.py
self
.
cfgUnDeploy
=
'--type stop-mini --fqdn yes --scenario 1'
#from xml, 'mini' is default normal for docker-network.py
self
.
cfgDeploy
=
'--type start-mini --fqdn yes --scenario 1 --capture /tmp/oai-cn5g-v1.
5.pcap'
#from xml, 'mini' is default normal for docker-network.py
self
.
cfgUnDeploy
=
'--type stop-mini --fqdn yes --scenario 1'
#from xml, 'mini' is default normal for docker-network.py
#-----------------------------------------------------------
...
...
@@ -253,7 +253,7 @@ class EPCManagement():
logging
.
debug
(
'Starting OAI CN5G'
)
mySSH
.
command
(
'if [ -d '
+
self
.
SourceCodePath
+
'/scripts ]; then echo '
+
self
.
Password
+
' | sudo -S rm -Rf '
+
self
.
SourceCodePath
+
'/scripts ; fi'
,
'\$'
,
5
)
mySSH
.
command
(
'mkdir -p '
+
self
.
SourceCodePath
+
'/scripts'
,
'\$'
,
5
)
mySSH
.
command
(
'cd /opt/oai-cn5g-fed-v1.
4
/docker-compose'
,
'\$'
,
5
)
mySSH
.
command
(
'cd /opt/oai-cn5g-fed-v1.
5
/docker-compose'
,
'\$'
,
5
)
mySSH
.
command
(
'python3 ./core-network.py '
+
self
.
cfgDeploy
,
'\$'
,
60
)
if
re
.
search
(
'start-mini-as-ue'
,
self
.
cfgDeploy
):
dFile
=
'docker-compose-mini-nrf-asue.yaml'
...
...
@@ -537,11 +537,11 @@ class EPCManagement():
mySSH
.
command
(
'docker logs '
+
c
+
' > '
+
self
.
SourceCodePath
+
'/logs/'
+
c
+
'.log'
,
'\$'
,
5
)
logging
.
debug
(
'Terminating OAI CN5G'
)
mySSH
.
command
(
'cd /opt/oai-cn5g-fed-v1.
4
/docker-compose'
,
'\$'
,
5
)
mySSH
.
command
(
'cd /opt/oai-cn5g-fed-v1.
5
/docker-compose'
,
'\$'
,
5
)
mySSH
.
command
(
'python3 ./core-network.py '
+
self
.
cfgUnDeploy
,
'\$'
,
60
)
mySSH
.
command
(
'docker volume prune --force || true'
,
'\$'
,
60
)
time
.
sleep
(
2
)
mySSH
.
command
(
'tshark -r /tmp/oai-cn5g-v1.
3
.pcap | egrep --colour=never "Tracking area update" '
,
'\$'
,
30
)
mySSH
.
command
(
'tshark -r /tmp/oai-cn5g-v1.
5
.pcap | egrep --colour=never "Tracking area update" '
,
'\$'
,
30
)
result
=
re
.
search
(
'Tracking area update request'
,
mySSH
.
getBefore
())
if
result
is
not
None
:
message
=
'UE requested '
+
str
(
mySSH
.
getBefore
().
count
(
'Tracking area update request'
))
+
'Tracking area update request(s)'
...
...
@@ -828,7 +828,7 @@ class EPCManagement():
mySSH
.
command
(
'zip mme.log.zip mme_check_run.*'
,
'\$'
,
60
)
elif
re
.
match
(
'OAICN5G'
,
self
.
Type
,
re
.
IGNORECASE
):
mySSH
.
command
(
'cd '
+
self
.
SourceCodePath
+
'/logs'
,
'\$'
,
5
)
mySSH
.
command
(
'cp -f /tmp/oai-cn5g-v1.
3
.pcap .'
,
'\$'
,
30
)
mySSH
.
command
(
'cp -f /tmp/oai-cn5g-v1.
5
.pcap .'
,
'\$'
,
30
)
mySSH
.
command
(
'zip mme.log.zip oai-amf.log oai-nrf.log oai-cn5g*.pcap'
,
'\$'
,
30
)
mySSH
.
command
(
'mv mme.log.zip '
+
self
.
SourceCodePath
+
'/scripts'
,
'\$'
,
30
)
elif
re
.
match
(
'OAI'
,
self
.
Type
,
re
.
IGNORECASE
)
or
re
.
match
(
'OAI-Rel14-CUPS'
,
self
.
Type
,
re
.
IGNORECASE
):
...
...
ci-scripts/xml_files/sa_cn5g_asue_start.xml
View file @
a03d2746
...
...
@@ -33,7 +33,7 @@
<testCase
id=
"000100"
>
<class>
Initialize_5GCN
</class>
<desc>
Initialize 5G Core
</desc>
<args>
--type start-mini-as-ue --fqdn yes --scenario 1 --capture /tmp/oai-cn5g-v1.
3
.pcap
</args>
<args>
--type start-mini-as-ue --fqdn yes --scenario 1 --capture /tmp/oai-cn5g-v1.
5
.pcap
</args>
</testCase>
</testCaseList>
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