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
92811568
Commit
92811568
authored
Jan 27, 2020
by
Gabriele Perrone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rework of the help from embedded Usage() function to external helpreadme.py file
parent
3f546cb4
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
171 additions
and
468 deletions
+171
-468
ci-scripts/epc.py
ci-scripts/epc.py
+25
-0
ci-scripts/helpreadme.py
ci-scripts/helpreadme.py
+1
-1
ci-scripts/main.py
ci-scripts/main.py
+145
-467
No files found.
ci-scripts/epc.py
View file @
92811568
...
...
@@ -28,6 +28,31 @@ class EPCManagement():
self
.
EPCType
=
''
self
.
EPC_PcapFileName
=
''
def
SetIPAddress
(
self
,
ipaddress
):
self
.
EPCIPAddress
=
ipaddress
def
GetIPAddress
(
self
):
return
self
.
EPCIPAddress
def
SetUserName
(
self
,
username
):
self
.
EPCUserName
=
username
def
GetUserName
(
self
):
return
self
.
EPCUserName
def
SetPassword
(
self
,
password
):
self
.
EPCPassword
=
password
def
GetPassword
(
self
):
return
self
.
EPCPassword
def
SetSourceCodePath
(
self
,
sourcecodepath
):
self
.
EPCSourceCodePath
=
sourcecodepath
def
GetSourceCodePath
(
self
):
return
self
.
EPCSourceCodePath
def
SetType
(
self
,
typ
):
self
.
EPCType
=
typ
def
GetType
(
self
):
return
self
.
EPCType
def
Set_PcapFileName
(
self
,
pcapfn
):
self
.
PcapFileName
=
pcapfn
def
Get_PcapFileName
(
self
):
return
self
.
PcapFileName
def
InitializeHSS
(
self
):
if
self
.
EPCIPAddress
==
''
or
self
.
EPCUserName
==
''
or
self
.
EPCPassword
==
''
or
self
.
EPCSourceCodePath
==
''
or
self
.
EPCType
==
''
:
HELP
.
GenericHelp
(
Version
)
...
...
ci-scripts/helpreadme.py
View file @
92811568
...
...
@@ -6,7 +6,7 @@ def GenericHelp(vers):
print
(
'----------------------------------------------------------------------------------------------------------------------'
)
print
(
'main.py Ver: '
+
vers
)
print
(
'----------------------------------------------------------------------------------------------------------------------'
)
print
(
'
Usage:
python main.py [options]'
)
print
(
'python main.py [options]'
)
print
(
' --help Show this help.'
)
print
(
' --mode=[Mode]'
)
print
(
' TesteNB'
)
...
...
ci-scripts/main.py
View file @
92811568
This diff is collapsed.
Click to expand it.
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