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
spbro
OpenXG-RAN
Commits
6147a83f
Commit
6147a83f
authored
Sep 17, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused Perform_X2_Handover XML step: no XML uses this
parent
ec64826f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
67 deletions
+0
-67
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+0
-53
ci-scripts/main.py
ci-scripts/main.py
+0
-13
ci-scripts/xml_class_list.yml
ci-scripts/xml_class_list.yml
+0
-1
No files found.
ci-scripts/cls_oaicitest.py
View file @
6147a83f
...
...
@@ -263,10 +263,6 @@ class OaiCiTest():
self
.
UEDevicesOnCmd
=
[]
self
.
UEDevicesRebootCmd
=
[]
self
.
idle_sleep_time
=
0
self
.
x2_ho_options
=
'network'
self
.
x2NbENBs
=
0
self
.
x2ENBBsIds
=
[]
self
.
x2ENBConnectedUEs
=
[]
self
.
repeatCounts
=
[]
self
.
finalStatus
=
False
self
.
UEIPAddress
=
''
...
...
@@ -935,55 +931,6 @@ class OaiCiTest():
time
.
sleep
(
self
.
idle_sleep_time
)
HTML
.
CreateHtmlTestRow
(
str
(
self
.
idle_sleep_time
)
+
' sec'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
def
X2_Status
(
self
,
idx
,
fileName
,
EPC
):
cmd
=
"curl --silent http://"
+
EPC
.
IPAddress
+
":9999/stats | jq '.' > "
+
fileName
message
=
cmd
+
'
\n
'
logging
.
debug
(
cmd
)
subprocess
.
run
(
cmd
,
shell
=
True
)
if
idx
==
0
:
cmd
=
"jq '.mac_stats | length' "
+
fileName
strNbEnbs
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
self
.
x2NbENBs
=
int
(
strNbEnbs
.
strip
())
cnt
=
0
while
cnt
<
self
.
x2NbENBs
:
cmd
=
"jq '.mac_stats["
+
str
(
cnt
)
+
"].bs_id' "
+
fileName
bs_id
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
self
.
x2ENBBsIds
[
idx
].
append
(
bs_id
.
strip
())
cmd
=
"jq '.mac_stats["
+
str
(
cnt
)
+
"].ue_mac_stats | length' "
+
fileName
stNbUEs
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
nbUEs
=
int
(
stNbUEs
.
strip
())
ueIdx
=
0
self
.
x2ENBConnectedUEs
[
idx
].
append
([])
while
ueIdx
<
nbUEs
:
cmd
=
"jq '.mac_stats["
+
str
(
cnt
)
+
"].ue_mac_stats["
+
str
(
ueIdx
)
+
"].rnti' "
+
fileName
rnti
=
subprocess
.
check_output
(
cmd
,
shell
=
True
,
universal_newlines
=
True
)
self
.
x2ENBConnectedUEs
[
idx
][
cnt
].
append
(
rnti
.
strip
())
ueIdx
+=
1
cnt
+=
1
cnt
=
0
while
cnt
<
self
.
x2NbENBs
:
msg
=
" -- eNB: "
+
str
(
self
.
x2ENBBsIds
[
idx
][
cnt
])
+
" is connected to "
+
str
(
len
(
self
.
x2ENBConnectedUEs
[
idx
][
cnt
]))
+
" UE(s)"
logging
.
debug
(
msg
)
message
+=
msg
+
'
\n
'
ueIdx
=
0
while
ueIdx
<
len
(
self
.
x2ENBConnectedUEs
[
idx
][
cnt
]):
msg
=
" -- UE rnti: "
+
str
(
self
.
x2ENBConnectedUEs
[
idx
][
cnt
][
ueIdx
])
logging
.
debug
(
msg
)
message
+=
msg
+
'
\n
'
ueIdx
+=
1
cnt
+=
1
return
message
def
Perform_X2_Handover
(
self
,
HTML
,
RAN
,
EPC
):
html_queue
=
SimpleQueue
()
fullMessage
=
'<pre style="background-color:white">'
msg
=
f'Doing X2 Handover w/ option
{
self
.
x2_ho_options
}
'
logging
.
debug
(
msg
)
fullMessage
+=
msg
+
'
\n
'
if
self
.
x2_ho_options
==
'network'
:
HTML
.
CreateHtmlTestRow
(
'Cannot perform requested X2 Handover'
,
'KO'
,
CONST
.
ALL_PROCESSES_OK
)
def
LogCollectBuild
(
self
,
RAN
):
# Some pipelines are using "none" IP / Credentials
# In that case, just forget about it
...
...
ci-scripts/main.py
View file @
6147a83f
...
...
@@ -278,17 +278,6 @@ def GetParametersFromXML(action):
else
:
CiTestObj
.
idle_sleep_time
=
int
(
string_field
)
elif
action
==
'Perform_X2_Handover'
:
string_field
=
test
.
findtext
(
'x2_ho_options'
)
if
(
string_field
is
None
):
CiTestObj
.
x2_ho_options
=
'network'
else
:
if
string_field
!=
'network'
:
logging
.
error
(
'ERROR: test-case has wrong option '
+
string_field
)
CiTestObj
.
x2_ho_options
=
'network'
else
:
CiTestObj
.
x2_ho_options
=
string_field
elif
action
==
'Build_PhySim'
:
ldpc
.
buildargs
=
test
.
findtext
(
'physim_build_args'
)
forced_workspace_cleanup
=
test
.
findtext
(
'forced_workspace_cleanup'
)
...
...
@@ -761,8 +750,6 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
EPC
.
UndeployEpc
(
HTML
)
elif
action
==
'IdleSleep'
:
CiTestObj
.
IdleSleep
(
HTML
)
elif
action
==
'Perform_X2_Handover'
:
CiTestObj
.
Perform_X2_Handover
(
HTML
,
RAN
,
EPC
)
elif
action
==
'Build_PhySim'
:
HTML
=
ldpc
.
Build_PhySim
(
HTML
,
CONST
)
if
ldpc
.
exitStatus
==
1
:
...
...
ci-scripts/xml_class_list.yml
View file @
6147a83f
...
...
@@ -30,7 +30,6 @@
-
Initialize_5GCN
-
Terminate_5GCN
-
IdleSleep
-
Perform_X2_Handover
-
Build_Image
-
Build_Run_Tests
-
Deploy_Object
...
...
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