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
ZhouShuya
OpenXG-RAN
Commits
3f546cb4
Commit
3f546cb4
authored
Jan 23, 2020
by
Gabriele Perrone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes to epc.py, helpreadme.py, main.py to complete the export of EPC functions from main
parent
5e8af1ad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
ci-scripts/epc.py
ci-scripts/epc.py
+3
-3
ci-scripts/helpreadme.py
ci-scripts/helpreadme.py
+2
-2
ci-scripts/main.py
ci-scripts/main.py
+8
-8
No files found.
ci-scripts/epc.py
View file @
3f546cb4
...
@@ -30,7 +30,7 @@ class EPCManagement():
...
@@ -30,7 +30,7 @@ class EPCManagement():
def
InitializeHSS
(
self
):
def
InitializeHSS
(
self
):
if
self
.
EPCIPAddress
==
''
or
self
.
EPCUserName
==
''
or
self
.
EPCPassword
==
''
or
self
.
EPCSourceCodePath
==
''
or
self
.
EPCType
==
''
:
if
self
.
EPCIPAddress
==
''
or
self
.
EPCUserName
==
''
or
self
.
EPCPassword
==
''
or
self
.
EPCSourceCodePath
==
''
or
self
.
EPCType
==
''
:
HELP
.
GenericHelp
()
HELP
.
GenericHelp
(
Version
)
HELP
.
EPCSrvHelp
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
,
self
.
EPCSourceCodePath
,
self
.
EPCType
)
HELP
.
EPCSrvHelp
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
,
self
.
EPCSourceCodePath
,
self
.
EPCType
)
sys
.
exit
(
'Insufficient EPC Parameters'
)
sys
.
exit
(
'Insufficient EPC Parameters'
)
#mySSH = SSH()
#mySSH = SSH()
...
@@ -68,7 +68,7 @@ class EPCManagement():
...
@@ -68,7 +68,7 @@ class EPCManagement():
def
InitializeMME
(
self
):
def
InitializeMME
(
self
):
if
self
.
EPCIPAddress
==
''
or
self
.
EPCUserName
==
''
or
self
.
EPCPassword
==
''
or
self
.
EPCSourceCodePath
==
''
or
self
.
EPCType
==
''
:
if
self
.
EPCIPAddress
==
''
or
self
.
EPCUserName
==
''
or
self
.
EPCPassword
==
''
or
self
.
EPCSourceCodePath
==
''
or
self
.
EPCType
==
''
:
HELP
.
GenericHelp
()
HELP
.
GenericHelp
(
Version
)
HELP
.
EPCSrvHelp
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
,
self
.
EPCSourceCodePath
,
self
.
EPCType
)
HELP
.
EPCSrvHelp
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
,
self
.
EPCSourceCodePath
,
self
.
EPCType
)
sys
.
exit
(
'Insufficient EPC Parameters'
)
sys
.
exit
(
'Insufficient EPC Parameters'
)
mySSH
=
SSH
.
SSHConnection
()
mySSH
=
SSH
.
SSHConnection
()
...
@@ -101,7 +101,7 @@ class EPCManagement():
...
@@ -101,7 +101,7 @@ class EPCManagement():
def
InitializeSPGW
(
self
):
def
InitializeSPGW
(
self
):
if
self
.
EPCIPAddress
==
''
or
self
.
EPCUserName
==
''
or
self
.
EPCPassword
==
''
or
self
.
EPCSourceCodePath
==
''
or
self
.
EPCType
==
''
:
if
self
.
EPCIPAddress
==
''
or
self
.
EPCUserName
==
''
or
self
.
EPCPassword
==
''
or
self
.
EPCSourceCodePath
==
''
or
self
.
EPCType
==
''
:
HELP
.
GenericHelp
()
HELP
.
GenericHelp
(
Version
)
HELP
.
EPCSrvHelp
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
,
self
.
EPCSourceCodePath
,
self
.
EPCType
)
HELP
.
EPCSrvHelp
(
self
.
EPCIPAddress
,
self
.
EPCUserName
,
self
.
EPCPassword
,
self
.
EPCSourceCodePath
,
self
.
EPCType
)
sys
.
exit
(
'Insufficient EPC Parameters'
)
sys
.
exit
(
'Insufficient EPC Parameters'
)
mySSH
=
SSH
.
SSHConnection
()
mySSH
=
SSH
.
SSHConnection
()
...
...
ci-scripts/helpreadme.py
View file @
3f546cb4
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
# Functions Declaration
# Functions Declaration
#-----------------------------------------------------------
#-----------------------------------------------------------
def
GenericHelp
():
def
GenericHelp
(
vers
):
print
(
'----------------------------------------------------------------------------------------------------------------------'
)
print
(
'----------------------------------------------------------------------------------------------------------------------'
)
print
(
'main.py Ver:
0.1'
)
print
(
'main.py Ver:
'
+
vers
)
print
(
'----------------------------------------------------------------------------------------------------------------------'
)
print
(
'----------------------------------------------------------------------------------------------------------------------'
)
print
(
'Usage: python main.py [options]'
)
print
(
'Usage: python main.py [options]'
)
print
(
' --help Show this help.'
)
print
(
' --help Show this help.'
)
...
...
ci-scripts/main.py
View file @
3f546cb4
...
@@ -486,7 +486,7 @@ class OaiCiTest():
...
@@ -486,7 +486,7 @@ class OaiCiTest():
self
.
CreateHtmlTestRow
(
self
.
Build_OAI_UE_args
,
'KO'
,
ALL_PROCESSES_OK
,
'OAI UE'
)
self
.
CreateHtmlTestRow
(
self
.
Build_OAI_UE_args
,
'KO'
,
ALL_PROCESSES_OK
,
'OAI UE'
)
self
.
CreateHtmlTabFooter
(
False
)
self
.
CreateHtmlTabFooter
(
False
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
"""
def InitializeHSS(self):
def InitializeHSS(self):
if EPC.EPCIPAddress == '' or EPC.EPCUserName == '' or EPC.EPCPassword == '' or EPC.EPCSourceCodePath == '' or EPC.EPCType == '':
if EPC.EPCIPAddress == '' or EPC.EPCUserName == '' or EPC.EPCPassword == '' or EPC.EPCSourceCodePath == '' or EPC.EPCType == '':
Usage()
Usage()
...
@@ -581,7 +581,7 @@ class OaiCiTest():
...
@@ -581,7 +581,7 @@ class OaiCiTest():
logging.error('This option should not occur!')
logging.error('This option should not occur!')
SSH.close()
SSH.close()
self.CreateHtmlTestRow(self.EPCType, 'OK', ALL_PROCESSES_OK)
self.CreateHtmlTestRow(self.EPCType, 'OK', ALL_PROCESSES_OK)
"""
def
CheckFlexranCtrlInstallation
(
self
):
def
CheckFlexranCtrlInstallation
(
self
):
if
EPC
.
EPCIPAddress
==
''
or
EPC
.
EPCUserName
==
''
or
EPC
.
EPCPassword
==
''
:
if
EPC
.
EPCIPAddress
==
''
or
EPC
.
EPCUserName
==
''
or
EPC
.
EPCPassword
==
''
:
return
return
...
@@ -2934,7 +2934,7 @@ class OaiCiTest():
...
@@ -2934,7 +2934,7 @@ class OaiCiTest():
SSH
.
close
()
SSH
.
close
()
except
:
except
:
os
.
kill
(
os
.
getppid
(),
signal
.
SIGUSR1
)
os
.
kill
(
os
.
getppid
(),
signal
.
SIGUSR1
)
"""
def CheckHSSProcess(self, status_queue):
def CheckHSSProcess(self, status_queue):
try:
try:
SSH.open(self.EPCIPAddress, EPC.EPCUserName, EPC.EPCPassword)
SSH.open(self.EPCIPAddress, EPC.EPCUserName, EPC.EPCPassword)
...
@@ -2999,7 +2999,7 @@ class OaiCiTest():
...
@@ -2999,7 +2999,7 @@ class OaiCiTest():
SSH.close()
SSH.close()
except:
except:
os.kill(os.getppid(),signal.SIGUSR1)
os.kill(os.getppid(),signal.SIGUSR1)
"""
def
AnalyzeLogFile_eNB
(
self
,
eNBlogFile
):
def
AnalyzeLogFile_eNB
(
self
,
eNBlogFile
):
if
(
not
os
.
path
.
isfile
(
'./'
+
eNBlogFile
)):
if
(
not
os
.
path
.
isfile
(
'./'
+
eNBlogFile
)):
return
-
1
return
-
1
...
@@ -3603,7 +3603,7 @@ class OaiCiTest():
...
@@ -3603,7 +3603,7 @@ class OaiCiTest():
self
.
CreateHtmlTestRow
(
'N/A'
,
'OK'
,
ALL_PROCESSES_OK
)
self
.
CreateHtmlTestRow
(
'N/A'
,
'OK'
,
ALL_PROCESSES_OK
)
self
.
eNBmbmsEnables
[
int
(
self
.
eNB_instance
)]
=
False
self
.
eNBmbmsEnables
[
int
(
self
.
eNB_instance
)]
=
False
self
.
eNBstatuses
[
int
(
self
.
eNB_instance
)]
=
-
1
self
.
eNBstatuses
[
int
(
self
.
eNB_instance
)]
=
-
1
"""
def TerminateHSS(self):
def TerminateHSS(self):
SSH.open(self.EPCIPAddress, EPC.EPCUserName, EPC.EPCPassword)
SSH.open(self.EPCIPAddress, EPC.EPCUserName, EPC.EPCPassword)
if re.match('OAI-Rel14-CUPS', self.EPCType, re.IGNORECASE):
if re.match('OAI-Rel14-CUPS', self.EPCType, re.IGNORECASE):
...
@@ -3679,7 +3679,7 @@ class OaiCiTest():
...
@@ -3679,7 +3679,7 @@ class OaiCiTest():
logging.error('This should not happen!')
logging.error('This should not happen!')
SSH.close()
SSH.close()
self.CreateHtmlTestRow('N/A', 'OK', ALL_PROCESSES_OK)
self.CreateHtmlTestRow('N/A', 'OK', ALL_PROCESSES_OK)
"""
def
TerminateFlexranCtrl
(
self
):
def
TerminateFlexranCtrl
(
self
):
if
self
.
flexranCtrlInstalled
==
False
or
self
.
flexranCtrlStarted
==
False
:
if
self
.
flexranCtrlInstalled
==
False
or
self
.
flexranCtrlStarted
==
False
:
return
return
...
@@ -3975,7 +3975,7 @@ class OaiCiTest():
...
@@ -3975,7 +3975,7 @@ class OaiCiTest():
SSH
.
command
(
'zip iperf.log.zip iperf*.log'
,
'\$'
,
60
)
SSH
.
command
(
'zip iperf.log.zip iperf*.log'
,
'\$'
,
60
)
SSH
.
command
(
'rm iperf*.log'
,
'\$'
,
5
)
SSH
.
command
(
'rm iperf*.log'
,
'\$'
,
5
)
SSH
.
close
()
SSH
.
close
()
"""
def LogCollectHSS(self):
def LogCollectHSS(self):
SSH.open(self.EPCIPAddress, EPC.EPCUserName, EPC.EPCPassword)
SSH.open(self.EPCIPAddress, EPC.EPCUserName, EPC.EPCPassword)
SSH.command('cd ' + self.EPCSourceCodePath + '/scripts', '\$', 5)
SSH.command('cd ' + self.EPCSourceCodePath + '/scripts', '\$', 5)
...
@@ -4020,7 +4020,7 @@ class OaiCiTest():
...
@@ -4020,7 +4020,7 @@ class OaiCiTest():
else:
else:
logging.error('This option should not occur!')
logging.error('This option should not occur!')
SSH.close()
SSH.close()
"""
def
LogCollectOAIUE
(
self
):
def
LogCollectOAIUE
(
self
):
SSH
.
open
(
self
.
UEIPAddress
,
self
.
UEUserName
,
self
.
UEPassword
)
SSH
.
open
(
self
.
UEIPAddress
,
self
.
UEUserName
,
self
.
UEPassword
)
SSH
.
command
(
'cd '
+
self
.
UESourceCodePath
,
'\$'
,
5
)
SSH
.
command
(
'cd '
+
self
.
UESourceCodePath
,
'\$'
,
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