52 lines
3.2 KiB
Python
52 lines
3.2 KiB
Python
#-----------------------------------------------------------
|
|
# Functions Declaration
|
|
#-----------------------------------------------------------
|
|
|
|
def GenericHelp():
|
|
print('----------------------------------------------------------------------------------------------------------------------')
|
|
print('main.py Ver: 0.1')
|
|
print('----------------------------------------------------------------------------------------------------------------------')
|
|
print('Usage: python main.py [options]')
|
|
print(' --help Show this help.')
|
|
print(' --mode=[Mode]')
|
|
print(' TesteNB')
|
|
print(' InitiateHtml, FinalizeHtml')
|
|
print(' TerminateeNB, TerminateUE, TerminateHSS, TerminateMME, TerminateSPGW')
|
|
print(' LogCollectBuild, LogCollecteNB, LogCollectHSS, LogCollectMME, LogCollectSPGW, LogCollectPing, LogCollectIperf')
|
|
|
|
def GitSrvHelp(repository,branch,commit,mergeallow,targetbranch):
|
|
print(' --ranRepository=[OAI RAN Repository URL] -- ' + repository)
|
|
print(' --ranBranch=[OAI RAN Repository Branch] -- ' + branch)
|
|
print(' --ranCommitID=[OAI RAN Repository Commit SHA-1] -- ' + commit)
|
|
print(' --ranAllowMerge=[Allow Merge Request (with target branch) (true or false)] -- ' + mergeallow)
|
|
print(' --ranTargetBranch=[Target Branch in case of a Merge Request] -- ' + targetbranch)
|
|
|
|
def eNBSrvHelp(ipaddr, username, password, sourcepath):
|
|
print(' --eNBIPAddress=[eNB\'s IP Address] -- ' + ipaddr)
|
|
print(' --eNBUserName=[eNB\'s Login User Name] -- ' + username)
|
|
print(' --eNBPassword=[eNB\'s Login Password] -- ' + password)
|
|
print(' --eNBSourceCodePath=[eNB\'s Source Code Path] -- ' + sourcepath)
|
|
|
|
def OAIUESrvHelp(ipaddr, username, password, sourcepath):
|
|
print(' --UEIPAddress=[UE\'s IP Address] -- ' + ipaddr)
|
|
print(' --UEUserName=[UE\'s Login User Name] -- ' + username)
|
|
print(' --UEPassword=[UE\'s Login Password] -- ' + password)
|
|
print(' --UESourceCodePath=[UE\'s Source Code Path] -- ' + sourcepath)
|
|
|
|
def EPCSrvHelp(ipaddr, username, password, sourcepath, epctype):
|
|
print(' --EPCIPAddress=[EPC\'s IP Address] -- ' + ipaddr)
|
|
print(' --EPCUserName=[EPC\'s Login User Name] -- ' + username)
|
|
print(' --EPCPassword=[EPC\'s Login Password] -- ' + password)
|
|
print(' --EPCSourceCodePath=[EPC\'s Source Code Path] -- ' + sourcepath)
|
|
print(' --EPCType=[EPC\'s Type: OAI or ltebox or OAI-Rel14-CUPS] -- ' + epctype)
|
|
|
|
def ADBSrvHelp(ipaddr, username, password):
|
|
print(' --ADBIPAddress=[ADB\'s IP Address] -- ' + ipaddr)
|
|
print(' --ADBUserName=[ADB\'s Login User Name] -- ' + username)
|
|
print(' --ADBPassword=[ADB\'s Login Password] -- ' + password)
|
|
|
|
def XmlHelp(filename):
|
|
print(' --XMLTestFile=[XML Test File to be run] -- ' + filename)
|
|
print(' Note: multiple xml files can be specified (--XMLFile=File1 ... --XMLTestFile=FileN) when HTML headers are created ("InitiateHtml" mode)')
|
|
|