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
lizhongxiao
OpenXG-RAN
Commits
017b3623
Commit
017b3623
authored
Jul 27, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added reboot control of Eth USRP
parent
bd5ac987
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
ci-scripts/main.py
ci-scripts/main.py
+1
-0
ci-scripts/ran.py
ci-scripts/ran.py
+12
-0
ci-scripts/xml_files/fr1_nsa_2x2_quectel.xml
ci-scripts/xml_files/fr1_nsa_2x2_quectel.xml
+2
-0
No files found.
ci-scripts/main.py
View file @
017b3623
...
@@ -155,6 +155,7 @@ def GetParametersFromXML(action):
...
@@ -155,6 +155,7 @@ def GetParametersFromXML(action):
RAN
.
eNB_Trace
=
test
.
findtext
(
'eNB_Trace'
)
RAN
.
eNB_Trace
=
test
.
findtext
(
'eNB_Trace'
)
RAN
.
Initialize_eNB_args
=
test
.
findtext
(
'Initialize_eNB_args'
)
RAN
.
Initialize_eNB_args
=
test
.
findtext
(
'Initialize_eNB_args'
)
eNB_instance
=
test
.
findtext
(
'eNB_instance'
)
eNB_instance
=
test
.
findtext
(
'eNB_instance'
)
RAN
.
USRPIPAddress
=
test
.
findtext
(
'USRP_IPAddress'
)
if
(
eNB_instance
is
None
):
if
(
eNB_instance
is
None
):
RAN
.
eNB_instance
=
0
RAN
.
eNB_instance
=
0
else
:
else
:
...
...
ci-scripts/ran.py
View file @
017b3623
...
@@ -94,6 +94,7 @@ class RANManagement():
...
@@ -94,6 +94,7 @@ class RANManagement():
self
.
runtime_stats
=
''
self
.
runtime_stats
=
''
self
.
datalog_rt_stats
=
{}
self
.
datalog_rt_stats
=
{}
self
.
eNB_Trace
=
''
#if 'yes', Tshark will be launched at initialization
self
.
eNB_Trace
=
''
#if 'yes', Tshark will be launched at initialization
self
.
USRPIPAddress
=
''
...
@@ -341,6 +342,17 @@ class RANManagement():
...
@@ -341,6 +342,17 @@ class RANManagement():
self
.
testCase_id
=
HTML
.
testCase_id
self
.
testCase_id
=
HTML
.
testCase_id
mySSH
=
SSH
.
SSHConnection
()
mySSH
=
SSH
.
SSHConnection
()
#reboot USRP if requested in xml
if
self
.
USRPIPAddress
!=
''
:
logging
.
debug
(
'USRP '
+
self
.
USRPIPAddress
+
'reboot request'
)
mySSH
.
open
(
lIpAddr
,
lUserName
,
lPassWord
)
cmd2usrp
=
'ssh root@'
+
self
.
USRPIPAddress
+
' reboot'
mySSH
.
command2
(
cmd2usrp
,
1
)
mySSH
.
close
()
logging
.
debug
(
'Waiting for USRP to be ready'
)
time
.
sleep
(
120
)
if
(
self
.
pStatus
<
0
):
if
(
self
.
pStatus
<
0
):
HTML
.
CreateHtmlTestRow
(
self
.
air_interface
[
self
.
eNB_instance
]
+
' '
+
self
.
Initialize_eNB_args
,
'KO'
,
self
.
pStatus
)
HTML
.
CreateHtmlTestRow
(
self
.
air_interface
[
self
.
eNB_instance
]
+
' '
+
self
.
Initialize_eNB_args
,
'KO'
,
self
.
pStatus
)
HTML
.
CreateHtmlTabFooter
(
False
)
HTML
.
CreateHtmlTabFooter
(
False
)
...
...
ci-scripts/xml_files/fr1_nsa_2x2_quectel.xml
View file @
017b3623
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
<eNB_serverId>
0
</eNB_serverId>
<eNB_serverId>
0
</eNB_serverId>
<air_interface>
lte
</air_interface>
<air_interface>
lte
</air_interface>
<eNB_Trace>
yes
</eNB_Trace>
<eNB_Trace>
yes
</eNB_Trace>
<USRP_IPAddress>
192.168.18.241
</USRP_IPAddress>
</testCase>
</testCase>
...
@@ -72,6 +73,7 @@
...
@@ -72,6 +73,7 @@
<eNB_instance>
1
</eNB_instance>
<eNB_instance>
1
</eNB_instance>
<eNB_serverId>
1
</eNB_serverId>
<eNB_serverId>
1
</eNB_serverId>
<air_interface>
nr
</air_interface>
<air_interface>
nr
</air_interface>
<USRP_IPAddress>
192.168.18.240
</USRP_IPAddress>
</testCase>
</testCase>
<testCase
id=
"000001"
>
<testCase
id=
"000001"
>
...
...
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