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
wangjie
OpenXG-RAN
Commits
dc9211ae
Commit
dc9211ae
authored
Jul 19, 2020
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed all Getters and Setters from EPC, HTML classes (as all attributes are public)
parent
d273ae84
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
373 additions
and
377 deletions
+373
-377
ci-scripts/epc.py
ci-scripts/epc.py
+28
-28
ci-scripts/html.py
ci-scripts/html.py
+56
-60
ci-scripts/main.py
ci-scripts/main.py
+158
-158
ci-scripts/ran.py
ci-scripts/ran.py
+131
-131
No files found.
ci-scripts/epc.py
View file @
dc9211ae
...
@@ -70,34 +70,34 @@ class EPCManagement():
...
@@ -70,34 +70,34 @@ class EPCManagement():
# Setter and Getters on Public Members
# Setter and Getters on Public Members
#-----------------------------------------------------------
#-----------------------------------------------------------
def
SetIPAddress
(
self
,
ipaddress
):
#
def SetIPAddress(self, ipaddress):
self
.
IPAddress
=
ipaddress
#
self.IPAddress = ipaddress
def
GetIPAddress
(
self
):
#
def GetIPAddress(self):
return
self
.
IPAddress
#
return self.IPAddress
def
SetUserName
(
self
,
username
):
#
def SetUserName(self, username):
self
.
UserName
=
username
#
self.UserName = username
def
GetUserName
(
self
):
#
def GetUserName(self):
return
self
.
UserName
#
return self.UserName
def
SetPassword
(
self
,
password
):
#
def SetPassword(self, password):
self
.
Password
=
password
#
self.Password = password
def
GetPassword
(
self
):
#
def GetPassword(self):
return
self
.
Password
#
return self.Password
def
SetSourceCodePath
(
self
,
sourcecodepath
):
#
def SetSourceCodePath(self, sourcecodepath):
self
.
SourceCodePath
=
sourcecodepath
#
self.SourceCodePath = sourcecodepath
def
GetSourceCodePath
(
self
):
#
def GetSourceCodePath(self):
return
self
.
SourceCodePath
#
return self.SourceCodePath
def
SetType
(
self
,
kind
):
#
def SetType(self, kind):
self
.
Type
=
kind
#
self.Type = kind
def
GetType
(
self
):
#
def GetType(self):
return
self
.
Type
#
return self.Type
def
SetHtmlObj
(
self
,
obj
):
#
def SetHtmlObj(self, obj):
self
.
htmlObj
=
obj
#
self.htmlObj = obj
def
SetTestCase_id
(
self
,
idx
):
#
def SetTestCase_id(self, idx):
self
.
testCase_id
=
idx
#
self.testCase_id = idx
def
GetMmeIPAddress
(
self
):
#
def GetMmeIPAddress(self):
return
self
.
MmeIPAddress
#
return self.MmeIPAddress
def
SetContainerPrefix
(
self
,
prefix
):
#
def SetContainerPrefix(self, prefix):
self
.
containerPrefix
=
prefix
#
self.containerPrefix = prefix
#-----------------------------------------------------------
#-----------------------------------------------------------
# EPC management functions
# EPC management functions
...
...
ci-scripts/html.py
View file @
dc9211ae
...
@@ -82,73 +82,69 @@ class HTMLManagement():
...
@@ -82,73 +82,69 @@ class HTMLManagement():
#-----------------------------------------------------------
#-----------------------------------------------------------
# Setters and Getters
# Setters and Getters
#-----------------------------------------------------------
#-----------------------------------------------------------
def
SethtmlUEFailureMsg
(
self
,
huefa
):
self
.
htmlUEFailureMsg
=
huefa
def
GethtmlUEFailureMsg
(
self
):
return
self
.
htmlUEFailureMsg
def
SetHmleNBFailureMsg
(
self
,
msg
):
self
.
htmleNBFailureMsg
=
msg
def
Setdesc
(
self
,
dsc
):
self
.
desc
=
dsc
def
SetstartTime
(
self
,
sttime
):
self
.
startTime
=
sttime
def
SettestCase_id
(
self
,
tcid
):
self
.
testCase_id
=
tcid
def
GettestCase_id
(
self
):
return
self
.
testCase_id
def
SetranRepository
(
self
,
repository
):
self
.
ranRepository
=
repository
def
SetranAllowMerge
(
self
,
merge
):
self
.
ranAllowMerge
=
merge
def
SetranBranch
(
self
,
branch
):
self
.
ranBranch
=
branch
def
SetranCommitID
(
self
,
commitid
):
self
.
ranCommitID
=
commitid
def
SetranTargetBranch
(
self
,
tbranch
):
self
.
ranTargetBranch
=
tbranch
def
SethtmlUEConnected
(
self
,
nbUEs
):
def
SethtmlUEConnected
(
self
,
nbUEs
):
if
nbUEs
>
0
:
if
nbUEs
>
0
:
self
.
htmlUEConnected
=
nbUEs
self
.
htmlUEConnected
=
nbUEs
else
:
else
:
self
.
htmlUEConnected
=
1
self
.
htmlUEConnected
=
1
def
SethtmlNb_Smartphones
(
self
,
nbUEs
):
self
.
htmlNb_Smartphones
=
nbUEs
def
SethtmlNb_CATM_Modules
(
self
,
nbUEs
):
self
.
htmlNb_CATM_Modules
=
nbUEs
def
SetnbTestXMLfiles
(
self
,
nb
):
self
.
nbTestXMLfiles
=
nb
def
GetnbTestXMLfiles
(
self
):
return
self
.
nbTestXMLfiles
def
SettestXMLfiles
(
self
,
xmlFile
):
# def SethtmlUEFailureMsg(self,huefa):
self
.
testXMLfiles
.
append
(
xmlFile
)
# self.htmlUEFailureMsg = huefa
def
SethtmlTabRefs
(
self
,
tabRef
):
# def GethtmlUEFailureMsg(self):
self
.
htmlTabRefs
.
append
(
tabRef
)
# return self.htmlUEFailureMsg
def
SethtmlTabNames
(
self
,
tabName
):
# def SetHmleNBFailureMsg(self, msg):
self
.
htmlTabNames
.
append
(
tabName
)
# self.htmleNBFailureMsg = msg
def
SethtmlTabIcons
(
self
,
tabIcon
):
# def Setdesc(self, dsc):
self
.
htmlTabIcons
.
append
(
tabIcon
)
# self.desc = dsc
# def SetstartTime(self, sttime):
# self.startTime = sttime
# def SettestCase_id(self, tcid):
# self.testCase_id = tcid
# def GettestCase_id(self):
# return self.testCase_id
# def SetranRepository(self, repository):
# self.ranRepository = repository
# def SetranAllowMerge(self, merge):
# self.ranAllowMerge = merge
# def SetranBranch(self, branch):
# self.ranBranch = branch
# def SetranCommitID(self, commitid):
# self.ranCommitID = commitid
# def SetranTargetBranch(self, tbranch):
# self.ranTargetBranch = tbranch
# def SethtmlNb_Smartphones(self, nbUEs):
# self.htmlNb_Smartphones = nbUEs
# def SethtmlNb_CATM_Modules(self, nbUEs):
# self.htmlNb_CATM_Modules = nbUEs
# def SetnbTestXMLfiles(self, nb):
# self.nbTestXMLfiles = nb
# def GetnbTestXMLfiles(self):
# return self.nbTestXMLfiles
# def SettestXMLfiles(self, xmlFile):
# self.testXMLfiles.append(xmlFile)
# def SethtmlTabRefs(self, tabRef):
# self.htmlTabRefs.append(tabRef)
# def SethtmlTabNames(self, tabName):
# self.htmlTabNames.append(tabName)
# def SethtmlTabIcons(self, tabIcon):
# self.htmlTabIcons.append(tabIcon)
# def SetOsVersion(self, version, idx):
# self.OsVersion[idx] = version
# def SetKernelVersion(self, version, idx):
# self.KernelVersion[idx] = version
# def SetUhdVersion(self, version, idx):
# self.UhdVersion[idx] = version
# def SetUsrpBoard(self, version, idx):
# self.UsrpBoard[idx] = version
# def SetCpuNb(self, nb, idx):
# self.CpuNb[idx] = nb
# def SetCpuModel(self, model, idx):
# self.CpuModel[idx] = model
# def SetCpuMHz(self, freq, idx):
# self.CpuMHz[idx] = freq
def
SetOsVersion
(
self
,
version
,
idx
):
self
.
OsVersion
[
idx
]
=
version
def
SetKernelVersion
(
self
,
version
,
idx
):
self
.
KernelVersion
[
idx
]
=
version
def
SetUhdVersion
(
self
,
version
,
idx
):
self
.
UhdVersion
[
idx
]
=
version
def
SetUsrpBoard
(
self
,
version
,
idx
):
self
.
UsrpBoard
[
idx
]
=
version
def
SetCpuNb
(
self
,
nb
,
idx
):
self
.
CpuNb
[
idx
]
=
nb
def
SetCpuModel
(
self
,
model
,
idx
):
self
.
CpuModel
[
idx
]
=
model
def
SetCpuMHz
(
self
,
freq
,
idx
):
self
.
CpuMHz
[
idx
]
=
freq
#-----------------------------------------------------------
#-----------------------------------------------------------
# HTML structure creation functions
# HTML structure creation functions
...
...
ci-scripts/main.py
View file @
dc9211ae
This diff is collapsed.
Click to expand it.
ci-scripts/ran.py
View file @
dc9211ae
...
@@ -92,143 +92,143 @@ class RANManagement():
...
@@ -92,143 +92,143 @@ class RANManagement():
self
.
epcObj
=
None
self
.
epcObj
=
None
"""
#-----------------------------------------------------------
#-----------------------------------------------------------
# Setters and Getters on Public members
# Setters and Getters on Public members
#-----------------------------------------------------------
#-----------------------------------------------------------
def SetHtmlObj(self, obj):
# def SetHtmlObj(self, obj):
self.htmlObj = obj
# self.htmlObj = obj
def SetEpcObj(self, obj):
# def SetEpcObj(self, obj):
self.epcObj = obj
# self.epcObj = obj
#
def SetflexranCtrlInstalled(self,fxrctin):
# def SetflexranCtrlInstalled(self,fxrctin):
self.flexranCtrlInstalled = fxrctin
# self.flexranCtrlInstalled = fxrctin
def GetflexranCtrlInstalled(self):
# def GetflexranCtrlInstalled(self):
return self.flexranCtrlInstalled
# return self.flexranCtrlInstalled
def SetflexranCtrlStarted(self,fxrctst):
# def SetflexranCtrlStarted(self,fxrctst):
self.flexranCtrlStarted = fxrctst
# self.flexranCtrlStarted = fxrctst
def GetflexranCtrlStarted(self):
# def GetflexranCtrlStarted(self):
return self.flexranCtrlStarted
# return self.flexranCtrlStarted
def SetpStatus(self, pSt):
# def SetpStatus(self, pSt):
self.pStatus = pSt
# self.pStatus = pSt
def SetranRepository(self, repository):
# def SetranRepository(self, repository):
self.ranRepository = repository
# self.ranRepository = repository
def GetranRepository(self):
# def GetranRepository(self):
return self.ranRepository
# return self.ranRepository
def SetranBranch(self, branch):
# def SetranBranch(self, branch):
self.ranBranch = branch
# self.ranBranch = branch
def GetranBranch(self):
# def GetranBranch(self):
return self.ranBranch
# return self.ranBranch
def SetranCommitID(self, commitid):
# def SetranCommitID(self, commitid):
self.ranCommitID = commitid
# self.ranCommitID = commitid
def GetranCommitID(self):
# def GetranCommitID(self):
return self.ranCommitID
# return self.ranCommitID
def SeteNB_serverId(self, enbsrvid):
# def SeteNB_serverId(self, enbsrvid):
self.eNB_serverId = enbsrvid
# self.eNB_serverId = enbsrvid
def GeteNB_serverId(self):
# def GeteNB_serverId(self):
return self.eNB_serverId
# return self.eNB_serverId
def SeteNBIPAddress(self, enbip):
# def SeteNBIPAddress(self, enbip):
self.eNBIPAddress = enbip
# self.eNBIPAddress = enbip
def GeteNBIPAddress(self):
# def GeteNBIPAddress(self):
return self.eNBIPAddress
# return self.eNBIPAddress
def SeteNBUserName(self, enbusr):
# def SeteNBUserName(self, enbusr):
self.eNBUserName = enbusr
# self.eNBUserName = enbusr
def GeteNBUserName(self):
# def GeteNBUserName(self):
return self.eNBUserName
# return self.eNBUserName
def SeteNBPassword(self, enbpw):
# def SeteNBPassword(self, enbpw):
self.eNBPassword = enbpw
# self.eNBPassword = enbpw
def GeteNBPassword(self):
# def GeteNBPassword(self):
return self.eNBPassword
# return self.eNBPassword
def SeteNBSourceCodePath(self, enbcodepath):
# def SeteNBSourceCodePath(self, enbcodepath):
self.eNBSourceCodePath = enbcodepath
# self.eNBSourceCodePath = enbcodepath
def GeteNBSourceCodePath(self):
# def GeteNBSourceCodePath(self):
return self.eNBSourceCodePath
# return self.eNBSourceCodePath
def SetranAllowMerge(self, merge):
# def SetranAllowMerge(self, merge):
self.ranAllowMerge = merge
# self.ranAllowMerge = merge
def GetranAllowMerge(self):
# def GetranAllowMerge(self):
return self.ranAllowMerge
# return self.ranAllowMerge
def SetranTargetBranch(self, tbranch):
# def SetranTargetBranch(self, tbranch):
self.ranTargetBranch = tbranch
# self.ranTargetBranch = tbranch
def GetranTargetBranch(self):
# def GetranTargetBranch(self):
return self.ranTargetBranch
# return self.ranTargetBranch
def SetBuild_eNB_args(self, enbbuildarg):
# def SetBuild_eNB_args(self, enbbuildarg):
self.Build_eNB_args = enbbuildarg
# self.Build_eNB_args = enbbuildarg
def GetBuild_eNB_args(self):
# def GetBuild_eNB_args(self):
return self.Build_eNB_args
# return self.Build_eNB_args
def SetInitialize_eNB_args(self, initenbarg):
# def SetInitialize_eNB_args(self, initenbarg):
self.Initialize_eNB_args = initenbarg
# self.Initialize_eNB_args = initenbarg
def GetInitialize_eNB_args(self):
# def GetInitialize_eNB_args(self):
return self.Initialize_eNB_args
# return self.Initialize_eNB_args
def SetbackgroundBuild(self, bkbuild):
# def SetbackgroundBuild(self, bkbuild):
self.backgroundBuild = bkbuild
# self.backgroundBuild = bkbuild
def GetbackgroundBuild(self):
# def GetbackgroundBuild(self):
return self.backgroundBuild
# return self.backgroundBuild
def SetbackgroundBuildTestId(self, bkbuildid):
# def SetbackgroundBuildTestId(self, bkbuildid):
self.backgroundBuildTestId = bkbuildid
# self.backgroundBuildTestId = bkbuildid
def GetbackgroundBuildTestId(self):
# def GetbackgroundBuildTestId(self):
return self.backgroundBuildTestId
# return self.backgroundBuildTestId
def SetBuild_eNB_forced_workspace_cleanup(self, fcdwspclean):
# def SetBuild_eNB_forced_workspace_cleanup(self, fcdwspclean):
self.Build_eNB_forced_workspace_cleanup = fcdwspclean
# self.Build_eNB_forced_workspace_cleanup = fcdwspclean
def GetBuild_eNB_forced_workspace_cleanup(self):
# def GetBuild_eNB_forced_workspace_cleanup(self):
return self.Build_eNB_forced_workspace_cleanup
# return self.Build_eNB_forced_workspace_cleanup
def Setair_interface(self, airif):
# def Setair_interface(self, airif):
self.air_interface = airif
# self.air_interface = airif
def Getair_interface(self):
# def Getair_interface(self):
return self.air_interface
# return self.air_interface
def SeteNB_instance(self, enbinst):
# def SeteNB_instance(self, enbinst):
self.eNB_instance = enbinst
# self.eNB_instance = enbinst
def GeteNB_instance(self):
# def GeteNB_instance(self):
return self.eNB_instance
# return self.eNB_instance
#
def SeteNBLogFile(self, enblog, idx):
# def SeteNBLogFile(self, enblog, idx):
self.eNBLogFiles[idx] = enblog
# self.eNBLogFiles[idx] = enblog
def GeteNBLogFile(self, idx):
# def GeteNBLogFile(self, idx):
return self.eNBLogFiles[idx]
# return self.eNBLogFiles[idx]
#
def GeteNBmbmsEnable(self, idx):
# def GeteNBmbmsEnable(self, idx):
return self.eNBmbmsEnables[idx]
# return self.eNBmbmsEnables[idx]
#
def SeteNB1IPAddress(self,enb1ip):
# def SeteNB1IPAddress(self,enb1ip):
self.eNB1IPAddress = enb1ip
# self.eNB1IPAddress = enb1ip
def GeteNB1IPAddress(self):
# def GeteNB1IPAddress(self):
return self.eNB1IPAddress
# return self.eNB1IPAddress
def SeteNB1UserName(self, enb1usr):
# def SeteNB1UserName(self, enb1usr):
self.eNB1UserName = enb1usr
# self.eNB1UserName = enb1usr
def GeteNB1UserName(self):
# def GeteNB1UserName(self):
return self.eNB1UserName
# return self.eNB1UserName
def SeteNB1Password(self, enb1pw):
# def SeteNB1Password(self, enb1pw):
self.eNB1Password = enb1pw
# self.eNB1Password = enb1pw
def GeteNB1Password(self):
# def GeteNB1Password(self):
return self.eNB1Password
# return self.eNB1Password
def SeteNB1SourceCodePath(self, enb1codepath):
# def SeteNB1SourceCodePath(self, enb1codepath):
self.eNB1SourceCodePath = enb1codepath
# self.eNB1SourceCodePath = enb1codepath
def GeteNB1SourceCodePath(self):
# def GeteNB1SourceCodePath(self):
return self.eNB1SourceCodePath
# return self.eNB1SourceCodePath
#
def SeteNB2IPAddress(self, enb2ip):
# def SeteNB2IPAddress(self, enb2ip):
self.eNB2IPAddress = enb2ip
# self.eNB2IPAddress = enb2ip
def GeteNB2IPAddress(self):
# def GeteNB2IPAddress(self):
return self.eNB2IPAddress
# return self.eNB2IPAddress
def SeteNB2UserName(self, enb2usr):
# def SeteNB2UserName(self, enb2usr):
self.eNB2UserName = enb2usr
# self.eNB2UserName = enb2usr
def GeteNB2UserName(self):
# def GeteNB2UserName(self):
return self.eNB2UserName
# return self.eNB2UserName
def SeteNB2Password(self, enb2pw):
# def SeteNB2Password(self, enb2pw):
self.eNB2Password = enb2pw
# self.eNB2Password = enb2pw
def GeteNB2Password(self):
# def GeteNB2Password(self):
return self.eNB2Password
# return self.eNB2Password
def SeteNB2SourceCodePath(self, enb2codepath):
# def SeteNB2SourceCodePath(self, enb2codepath):
self.eNB2SourceCodePath = enb2codepath
# self.eNB2SourceCodePath = enb2codepath
def GeteNB2SourceCodePath(self):
# def GeteNB2SourceCodePath(self):
return self.eNB2SourceCodePath
# return self.eNB2SourceCodePath
#
# def SetprematureExit(self, premex):
# self.prematureExit = premex
# def GetprematureExit(self):
# return self.prematureExit
def SetprematureExit(self, premex):
self.prematureExit = premex
def GetprematureExit(self):
return self.prematureExit
"""
#-----------------------------------------------------------
#-----------------------------------------------------------
# RAN management functions
# RAN management functions
...
...
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