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
Michael Black
OpenXG-RAN
Commits
711f7dd2
Commit
711f7dd2
authored
May 02, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix when OAI-UE IP address is not retrievable
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
c5d1a8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ci-scripts/main.py
ci-scripts/main.py
+7
-3
No files found.
ci-scripts/main.py
View file @
711f7dd2
...
@@ -1188,9 +1188,13 @@ class SSHConnection():
...
@@ -1188,9 +1188,13 @@ class SSHConnection():
self
.
open
(
self
.
UEIPAddress
,
self
.
UEUserName
,
self
.
UEPassword
)
self
.
open
(
self
.
UEIPAddress
,
self
.
UEUserName
,
self
.
UEPassword
)
self
.
command
(
'ifconfig oaitun_ue1'
,
'\$'
,
4
)
self
.
command
(
'ifconfig oaitun_ue1'
,
'\$'
,
4
)
result
=
re
.
search
(
'inet addr:(?P<ueipaddress>[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)'
,
str
(
self
.
ssh
.
before
))
result
=
re
.
search
(
'inet addr:(?P<ueipaddress>[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)'
,
str
(
self
.
ssh
.
before
))
UE_IPAddress
=
result
.
group
(
'ueipaddress'
)
if
result
is
not
None
:
logging
.
debug
(
'
\u001B
[1mUE ('
+
self
.
UEDevices
[
0
]
+
') IP Address is '
+
UE_IPAddress
+
'
\u001B
[0m'
)
UE_IPAddress
=
result
.
group
(
'ueipaddress'
)
self
.
UEIPAddresses
.
append
(
UE_IPAddress
)
logging
.
debug
(
'
\u001B
[1mUE ('
+
self
.
UEDevices
[
0
]
+
') IP Address is '
+
UE_IPAddress
+
'
\u001B
[0m'
)
self
.
UEIPAddresses
.
append
(
UE_IPAddress
)
else
:
logging
.
debug
(
'
\u001B
[1;37;41m UE IP Address Not Found!
\u001B
[0m'
)
ue_ip_status
-=
1
self
.
close
()
self
.
close
()
return
ue_ip_status
return
ue_ip_status
self
.
open
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
)
self
.
open
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
)
...
...
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