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
Hide 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():
# Setter and Getters on Public Members
#-----------------------------------------------------------
def
SetIPAddress
(
self
,
ipaddress
):
self
.
IPAddress
=
ipaddress
def
GetIPAddress
(
self
):
return
self
.
IPAddress
def
SetUserName
(
self
,
username
):
self
.
UserName
=
username
def
GetUserName
(
self
):
return
self
.
UserName
def
SetPassword
(
self
,
password
):
self
.
Password
=
password
def
GetPassword
(
self
):
return
self
.
Password
def
SetSourceCodePath
(
self
,
sourcecodepath
):
self
.
SourceCodePath
=
sourcecodepath
def
GetSourceCodePath
(
self
):
return
self
.
SourceCodePath
def
SetType
(
self
,
kind
):
self
.
Type
=
kind
def
GetType
(
self
):
return
self
.
Type
def
SetHtmlObj
(
self
,
obj
):
self
.
htmlObj
=
obj
def
SetTestCase_id
(
self
,
idx
):
self
.
testCase_id
=
idx
def
GetMmeIPAddress
(
self
):
return
self
.
MmeIPAddress
def
SetContainerPrefix
(
self
,
prefix
):
self
.
containerPrefix
=
prefix
#
def SetIPAddress(self, ipaddress):
#
self.IPAddress = ipaddress
#
def GetIPAddress(self):
#
return self.IPAddress
#
def SetUserName(self, username):
#
self.UserName = username
#
def GetUserName(self):
#
return self.UserName
#
def SetPassword(self, password):
#
self.Password = password
#
def GetPassword(self):
#
return self.Password
#
def SetSourceCodePath(self, sourcecodepath):
#
self.SourceCodePath = sourcecodepath
#
def GetSourceCodePath(self):
#
return self.SourceCodePath
#
def SetType(self, kind):
#
self.Type = kind
#
def GetType(self):
#
return self.Type
#
def SetHtmlObj(self, obj):
#
self.htmlObj = obj
#
def SetTestCase_id(self, idx):
#
self.testCase_id = idx
#
def GetMmeIPAddress(self):
#
return self.MmeIPAddress
#
def SetContainerPrefix(self, prefix):
#
self.containerPrefix = prefix
#-----------------------------------------------------------
# EPC management functions
...
...
ci-scripts/html.py
View file @
dc9211ae
...
...
@@ -82,73 +82,69 @@ class HTMLManagement():
#-----------------------------------------------------------
# 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
):
if
nbUEs
>
0
:
self
.
htmlUEConnected
=
nbUEs
else
:
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
):
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 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 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
...
...
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():
self
.
epcObj
=
None
"""
#-----------------------------------------------------------
# Setters and Getters on Public members
#-----------------------------------------------------------
def SetHtmlObj(self, obj):
self.htmlObj = obj
def SetEpcObj(self, obj):
self.epcObj = obj
def SetflexranCtrlInstalled(self,fxrctin):
self.flexranCtrlInstalled = fxrctin
def GetflexranCtrlInstalled(self):
return self.flexranCtrlInstalled
def SetflexranCtrlStarted(self,fxrctst):
self.flexranCtrlStarted = fxrctst
def GetflexranCtrlStarted(self):
return self.flexranCtrlStarted
def SetpStatus(self, pSt):
self.pStatus = pSt
def SetranRepository(self, repository):
self.ranRepository = repository
def GetranRepository(self):
return self.ranRepository
def SetranBranch(self, branch):
self.ranBranch = branch
def GetranBranch(self):
return self.ranBranch
def SetranCommitID(self, commitid):
self.ranCommitID = commitid
def GetranCommitID(self):
return self.ranCommitID
def SeteNB_serverId(self, enbsrvid):
self.eNB_serverId = enbsrvid
def GeteNB_serverId(self):
return self.eNB_serverId
def SeteNBIPAddress(self, enbip):
self.eNBIPAddress = enbip
def GeteNBIPAddress(self):
return self.eNBIPAddress
def SeteNBUserName(self, enbusr):
self.eNBUserName = enbusr
def GeteNBUserName(self):
return self.eNBUserName
def SeteNBPassword(self, enbpw):
self.eNBPassword = enbpw
def GeteNBPassword(self):
return self.eNBPassword
def SeteNBSourceCodePath(self, enbcodepath):
self.eNBSourceCodePath = enbcodepath
def GeteNBSourceCodePath(self):
return self.eNBSourceCodePath
def SetranAllowMerge(self, merge):
self.ranAllowMerge = merge
def GetranAllowMerge(self):
return self.ranAllowMerge
def SetranTargetBranch(self, tbranch):
self.ranTargetBranch = tbranch
def GetranTargetBranch(self):
return self.ranTargetBranch
def SetBuild_eNB_args(self, enbbuildarg):
self.Build_eNB_args = enbbuildarg
def GetBuild_eNB_args(self):
return self.Build_eNB_args
def SetInitialize_eNB_args(self, initenbarg):
self.Initialize_eNB_args = initenbarg
def GetInitialize_eNB_args(self):
return self.Initialize_eNB_args
def SetbackgroundBuild(self, bkbuild):
self.backgroundBuild = bkbuild
def GetbackgroundBuild(self):
return self.backgroundBuild
def SetbackgroundBuildTestId(self, bkbuildid):
self.backgroundBuildTestId = bkbuildid
def GetbackgroundBuildTestId(self):
return self.backgroundBuildTestId
def SetBuild_eNB_forced_workspace_cleanup(self, fcdwspclean):
self.Build_eNB_forced_workspace_cleanup = fcdwspclean
def GetBuild_eNB_forced_workspace_cleanup(self):
return self.Build_eNB_forced_workspace_cleanup
def Setair_interface(self, airif):
self.air_interface = airif
def Getair_interface(self):
return self.air_interface
def SeteNB_instance(self, enbinst):
self.eNB_instance = enbinst
def GeteNB_instance(self):
return self.eNB_instance
def SeteNBLogFile(self, enblog, idx):
self.eNBLogFiles[idx] = enblog
def GeteNBLogFile(self, idx):
return self.eNBLogFiles[idx]
def GeteNBmbmsEnable(self, idx):
return self.eNBmbmsEnables[idx]
def SeteNB1IPAddress(self,enb1ip):
self.eNB1IPAddress = enb1ip
def GeteNB1IPAddress(self):
return self.eNB1IPAddress
def SeteNB1UserName(self, enb1usr):
self.eNB1UserName = enb1usr
def GeteNB1UserName(self):
return self.eNB1UserName
def SeteNB1Password(self, enb1pw):
self.eNB1Password = enb1pw
def GeteNB1Password(self):
return self.eNB1Password
def SeteNB1SourceCodePath(self, enb1codepath):
self.eNB1SourceCodePath = enb1codepath
def GeteNB1SourceCodePath(self):
return self.eNB1SourceCodePath
def SeteNB2IPAddress(self, enb2ip):
self.eNB2IPAddress = enb2ip
def GeteNB2IPAddress(self):
return self.eNB2IPAddress
def SeteNB2UserName(self, enb2usr):
self.eNB2UserName = enb2usr
def GeteNB2UserName(self):
return self.eNB2UserName
def SeteNB2Password(self, enb2pw):
self.eNB2Password = enb2pw
def GeteNB2Password(self):
return self.eNB2Password
def SeteNB2SourceCodePath(self, enb2codepath):
self.eNB2SourceCodePath = enb2codepath
def GeteNB2SourceCodePath(self):
return self.eNB2SourceCodePath
# def SetHtmlObj(self, obj):
# self.htmlObj = obj
# def SetEpcObj(self, obj):
# self.epcObj = obj
#
# def SetflexranCtrlInstalled(self,fxrctin):
# self.flexranCtrlInstalled = fxrctin
# def GetflexranCtrlInstalled(self):
# return self.flexranCtrlInstalled
# def SetflexranCtrlStarted(self,fxrctst):
# self.flexranCtrlStarted = fxrctst
# def GetflexranCtrlStarted(self):
# return self.flexranCtrlStarted
# def SetpStatus(self, pSt):
# self.pStatus = pSt
# def SetranRepository(self, repository):
# self.ranRepository = repository
# def GetranRepository(self):
# return self.ranRepository
# def SetranBranch(self, branch):
# self.ranBranch = branch
# def GetranBranch(self):
# return self.ranBranch
# def SetranCommitID(self, commitid):
# self.ranCommitID = commitid
# def GetranCommitID(self):
# return self.ranCommitID
# def SeteNB_serverId(self, enbsrvid):
# self.eNB_serverId = enbsrvid
# def GeteNB_serverId(self):
# return self.eNB_serverId
# def SeteNBIPAddress(self, enbip):
# self.eNBIPAddress = enbip
# def GeteNBIPAddress(self):
# return self.eNBIPAddress
# def SeteNBUserName(self, enbusr):
# self.eNBUserName = enbusr
# def GeteNBUserName(self):
# return self.eNBUserName
# def SeteNBPassword(self, enbpw):
# self.eNBPassword = enbpw
# def GeteNBPassword(self):
# return self.eNBPassword
# def SeteNBSourceCodePath(self, enbcodepath):
# self.eNBSourceCodePath = enbcodepath
# def GeteNBSourceCodePath(self):
# return self.eNBSourceCodePath
# def SetranAllowMerge(self, merge):
# self.ranAllowMerge = merge
# def GetranAllowMerge(self):
# return self.ranAllowMerge
# def SetranTargetBranch(self, tbranch):
# self.ranTargetBranch = tbranch
# def GetranTargetBranch(self):
# return self.ranTargetBranch
# def SetBuild_eNB_args(self, enbbuildarg):
# self.Build_eNB_args = enbbuildarg
# def GetBuild_eNB_args(self):
# return self.Build_eNB_args
# def SetInitialize_eNB_args(self, initenbarg):
# self.Initialize_eNB_args = initenbarg
# def GetInitialize_eNB_args(self):
# return self.Initialize_eNB_args
# def SetbackgroundBuild(self, bkbuild):
# self.backgroundBuild = bkbuild
# def GetbackgroundBuild(self):
# return self.backgroundBuild
# def SetbackgroundBuildTestId(self, bkbuildid):
# self.backgroundBuildTestId = bkbuildid
# def GetbackgroundBuildTestId(self):
# return self.backgroundBuildTestId
# def SetBuild_eNB_forced_workspace_cleanup(self, fcdwspclean):
# self.Build_eNB_forced_workspace_cleanup = fcdwspclean
# def GetBuild_eNB_forced_workspace_cleanup(self):
# return self.Build_eNB_forced_workspace_cleanup
# def Setair_interface(self, airif):
# self.air_interface = airif
# def Getair_interface(self):
# return self.air_interface
# def SeteNB_instance(self, enbinst):
# self.eNB_instance = enbinst
# def GeteNB_instance(self):
# return self.eNB_instance
#
# def SeteNBLogFile(self, enblog, idx):
# self.eNBLogFiles[idx] = enblog
# def GeteNBLogFile(self, idx):
# return self.eNBLogFiles[idx]
#
# def GeteNBmbmsEnable(self, idx):
# return self.eNBmbmsEnables[idx]
#
# def SeteNB1IPAddress(self,enb1ip):
# self.eNB1IPAddress = enb1ip
# def GeteNB1IPAddress(self):
# return self.eNB1IPAddress
# def SeteNB1UserName(self, enb1usr):
# self.eNB1UserName = enb1usr
# def GeteNB1UserName(self):
# return self.eNB1UserName
# def SeteNB1Password(self, enb1pw):
# self.eNB1Password = enb1pw
# def GeteNB1Password(self):
# return self.eNB1Password
# def SeteNB1SourceCodePath(self, enb1codepath):
# self.eNB1SourceCodePath = enb1codepath
# def GeteNB1SourceCodePath(self):
# return self.eNB1SourceCodePath
#
# def SeteNB2IPAddress(self, enb2ip):
# self.eNB2IPAddress = enb2ip
# def GeteNB2IPAddress(self):
# return self.eNB2IPAddress
# def SeteNB2UserName(self, enb2usr):
# self.eNB2UserName = enb2usr
# def GeteNB2UserName(self):
# return self.eNB2UserName
# def SeteNB2Password(self, enb2pw):
# self.eNB2Password = enb2pw
# def GeteNB2Password(self):
# return self.eNB2Password
# def SeteNB2SourceCodePath(self, enb2codepath):
# self.eNB2SourceCodePath = enb2codepath
# def GeteNB2SourceCodePath(self):
# 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
...
...
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