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
2d46faaf
Commit
2d46faaf
authored
Sep 29, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check mtu is as expected
parent
e3a1c21a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
ci-scripts/ci_ueinfra.yaml
ci-scripts/ci_ueinfra.yaml
+2
-1
ci-scripts/cls_module_ue.py
ci-scripts/cls_module_ue.py
+27
-0
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+2
-0
No files found.
ci-scripts/ci_ueinfra.yaml
View file @
2d46faaf
...
...
@@ -24,7 +24,7 @@ nrmodule2_quectel:
WakeupScript
:
ci_ctl_qtel.py /dev/ttyUSB7 wup
DetachScript
:
ci_ctl_qtel.py /dev/ttyUSB7 detach
LogStore
:
/media/ci_qlogs
PLMN
:
2089
9
PLMN
:
2089
7
UENetwork
:
wwan1
HostIPAddress
:
192.168.18.189
HostUsername
:
nrmodule2
...
...
@@ -32,6 +32,7 @@ nrmodule2_quectel:
HostSourceCodePath
:
none
StartCommands
:
-
sudo -S ip link set dev wwan1 mtu
1500
MTU
:
1500
dummy
:
ID
:
'
'
State
:
'
'
...
...
ci-scripts/cls_module_ue.py
View file @
2d46faaf
...
...
@@ -131,6 +131,33 @@ class Module_UE:
logging
.
debug
(
'
\u001B
[1;37;41m Module IP Address Not Found!
\u001B
[0m'
)
return
-
1
def
CheckModuleMTU
(
self
):
HOST
=
self
.
HostUsername
+
'@'
+
self
.
HostIPAddress
response
=
[]
tentative
=
3
while
(
len
(
response
)
==
0
)
and
(
tentative
>
0
):
COMMAND
=
"ip a show dev "
+
self
.
UENetwork
+
" | grep mtu"
logging
.
debug
(
COMMAND
)
ssh
=
subprocess
.
Popen
([
"ssh"
,
"%s"
%
HOST
,
COMMAND
],
shell
=
False
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
response
=
ssh
.
stdout
.
readlines
()
tentative
-=
1
time
.
sleep
(
10
)
if
(
tentative
==
0
)
and
(
len
(
response
)
==
0
):
logging
.
debug
(
'
\u001B
[1;37;41m Module NIC MTU Not Found! Time expired
\u001B
[0m'
)
return
-
1
else
:
#check response
result
=
re
.
search
(
'mtu (?P<mtu>[0-9]+)'
,
response
[
0
].
decode
(
"utf-8"
)
)
if
result
is
not
None
:
if
(
result
.
group
(
'mtu'
)
is
not
None
)
and
(
result
.
group
(
'mtu'
)
==
self
.
MTU
)
:
logging
.
debug
(
'
\u001B
[1mUE Module NIC MTU is '
+
self
.
MTU
+
' as requested
\u001B
[0m'
)
return
0
else
:
logging
.
debug
(
'
\u001B
[1;37;41m Incorrect Module NIC MTU '
+
str
(
result
.
group
(
'mtu'
))
+
'! Expected : '
+
str
(
self
.
MTU
)
+
'
\u001B
[0m'
)
return
-
1
else
:
logging
.
debug
(
'
\u001B
[1;37;41m Module NIC MTU Not Found!
\u001B
[0m'
)
return
-
1
def
EnableTrace
(
self
):
if
self
.
ue_trace
==
"yes"
:
mySSH
=
sshconnection
.
SSHConnection
()
...
...
ci-scripts/cls_oaicitest.py
View file @
2d46faaf
...
...
@@ -407,6 +407,8 @@ class OaiCiTest():
cmd
=
'echo '
+
EPC
.
Password
+
' | '
+
startcommand
SSH
.
command
(
cmd
,
'\$'
,
5
)
SSH
.
close
()
#check that the MTU is as expected / requested
Module_UE
.
CheckModuleMTU
()
else
:
#status==-1 failed to retrieve IP address
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
CONST
.
UE_IP_ADDRESS_ISSUE
)
self
.
AutoTerminateUEandeNB
(
HTML
,
RAN
,
COTS_UE
,
EPC
,
InfraUE
)
...
...
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