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
c89f2dbd
Commit
c89f2dbd
authored
Oct 29, 2021
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ci): some typos on the container name of MME
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
a443a5b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
ci-scripts/epc.py
ci-scripts/epc.py
+18
-2
No files found.
ci-scripts/epc.py
View file @
c89f2dbd
...
...
@@ -165,7 +165,15 @@ class EPCManagement():
if
re
.
match
(
'OAI-Rel14-Docker'
,
self
.
Type
,
re
.
IGNORECASE
):
mySSH
=
SSH
.
SSHConnection
()
mySSH
.
open
(
self
.
IPAddress
,
self
.
UserName
,
self
.
Password
)
mySSH
.
command
(
'docker inspect --format="MME_IP_ADDR = {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}" '
+
self
.
containerPrefix
+
'-oai-mme'
,
'\$'
,
5
)
self
.
isMagmaUsed
=
False
mySSH
.
command
(
'docker ps -a'
,
'\$'
,
5
)
result
=
re
.
search
(
'magma'
,
mySSH
.
getBefore
())
if
result
is
not
None
:
self
.
isMagmaUsed
=
True
if
self
.
isMagmaUsed
:
mySSH
.
command
(
'docker inspect --format="MME_IP_ADDR = {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}" '
+
self
.
containerPrefix
+
'-magma-mme'
,
'\$'
,
5
)
else
:
mySSH
.
command
(
'docker inspect --format="MME_IP_ADDR = {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}" '
+
self
.
containerPrefix
+
'-oai-mme'
,
'\$'
,
5
)
result
=
re
.
search
(
'MME_IP_ADDR = (?P<mme_ip_addr>[0-9\.]+)'
,
mySSH
.
getBefore
())
if
result
is
not
None
:
self
.
MmeIPAddress
=
result
.
group
(
'mme_ip_addr'
)
...
...
@@ -290,7 +298,15 @@ class EPCManagement():
mySSH
=
SSH
.
SSHConnection
()
mySSH
.
open
(
self
.
IPAddress
,
self
.
UserName
,
self
.
Password
)
if
re
.
match
(
'OAI-Rel14-Docker'
,
self
.
Type
,
re
.
IGNORECASE
):
mySSH
.
command
(
'docker top '
+
self
.
containerPrefix
+
'-oai-mme'
,
'\$'
,
5
)
self
.
isMagmaUsed
=
False
mySSH
.
command
(
'docker ps -a'
,
'\$'
,
5
)
result
=
re
.
search
(
'magma'
,
mySSH
.
getBefore
())
if
result
is
not
None
:
self
.
isMagmaUsed
=
True
if
self
.
isMagmaUsed
:
mySSH
.
command
(
'docker top '
+
self
.
containerPrefix
+
'-magma-mme'
,
'\$'
,
5
)
else
:
mySSH
.
command
(
'docker top '
+
self
.
containerPrefix
+
'-oai-mme'
,
'\$'
,
5
)
else
:
mySSH
.
command
(
'stdbuf -o0 ps -aux | grep --color=never mme | grep -v grep'
,
'\$'
,
5
)
if
re
.
match
(
'OAI-Rel14-Docker'
,
self
.
Type
,
re
.
IGNORECASE
):
...
...
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