Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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 UE
Commits
d92c6336
Commit
d92c6336
authored
Jul 30, 2020
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fix a few remaining getters
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
89e481db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ci-scripts/ran.py
ci-scripts/ran.py
+9
-9
No files found.
ci-scripts/ran.py
View file @
d92c6336
...
...
@@ -348,9 +348,9 @@ class RANManagement():
# If tracer options is on, running tshark on EPC side and capture traffic b/ EPC and eNB
result
=
re
.
search
(
'T_stdout'
,
str
(
self
.
Initialize_eNB_args
))
if
(
result
is
not
None
)
and
(
self
.
epcObj
is
not
None
):
localEpcIpAddr
=
self
.
epcObj
.
GetIPAddress
()
localEpcUserName
=
self
.
epcObj
.
GetUserName
()
localEpcPassword
=
self
.
epcObj
.
GetPassword
()
localEpcIpAddr
=
self
.
epcObj
.
IPAddress
localEpcUserName
=
self
.
epcObj
.
UserName
localEpcPassword
=
self
.
epcObj
.
Password
mySSH
.
open
(
localEpcIpAddr
,
localEpcUserName
,
localEpcPassword
)
mySSH
.
command
(
'ip addr show | awk -f /tmp/active_net_interfaces.awk | egrep -v "lo|tun"'
,
'\$'
,
5
)
result
=
re
.
search
(
'interfaceToUse=(?P<eth_interface>[a-zA-Z0-9\-\_]+)done'
,
mySSH
.
getBefore
())
...
...
@@ -457,9 +457,9 @@ class RANManagement():
# In case of T tracer recording, we need to kill tshark on EPC side
result
=
re
.
search
(
'T_stdout'
,
str
(
self
.
Initialize_eNB_args
))
if
(
result
is
not
None
)
and
(
self
.
epcObj
is
not
None
):
localEpcIpAddr
=
self
.
epcObj
.
GetIPAddress
()
localEpcUserName
=
self
.
epcObj
.
GetUserName
()
localEpcPassword
=
self
.
epcObj
.
GetPassword
()
localEpcIpAddr
=
self
.
epcObj
.
IPAddress
localEpcUserName
=
self
.
epcObj
.
UserName
localEpcPassword
=
self
.
epcObj
.
Password
mySSH
.
open
(
localEpcIpAddr
,
localEpcUserName
,
localEpcPassword
)
logging
.
debug
(
'
\u001B
[1m Stopping tshark
\u001B
[0m'
)
mySSH
.
command
(
'echo '
+
localEpcPassword
+
' | sudo -S killall --signal SIGKILL tshark'
,
'\$'
,
5
)
...
...
@@ -588,9 +588,9 @@ class RANManagement():
# If tracer options is on, stopping tshark on EPC side
result
=
re
.
search
(
'T_stdout'
,
str
(
self
.
Initialize_eNB_args
))
if
(
result
is
not
None
)
and
(
self
.
epcObj
is
not
None
):
localEpcIpAddr
=
self
.
epcObj
.
GetIPAddress
()
localEpcUserName
=
self
.
epcObj
.
GetUserName
()
localEpcPassword
=
self
.
epcObj
.
GetPassword
()
localEpcIpAddr
=
self
.
epcObj
.
IPAddress
localEpcUserName
=
self
.
epcObj
.
UserName
localEpcPassword
=
self
.
epcObj
.
Password
mySSH
.
open
(
localEpcIpAddr
,
localEpcUserName
,
localEpcPassword
)
logging
.
debug
(
'
\u001B
[1m Stopping tshark
\u001B
[0m'
)
mySSH
.
command
(
'echo '
+
localEpcPassword
+
' | sudo -S killall --signal SIGKILL tshark'
,
'\$'
,
5
)
...
...
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