Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
3ee098a3
Commit
3ee098a3
authored
May 13, 2014
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add reload sliver action.
parent
14d6d0b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
protogeni/test/sliveraction.py
protogeni/test/sliveraction.py
+6
-3
No files found.
protogeni/test/sliveraction.py
View file @
3ee098a3
#! /usr/bin/env python
#
# Copyright (c) 2008-201
1
University of Utah and the Flux Group.
# Copyright (c) 2008-201
4
University of Utah and the Flux Group.
#
# {{{GENIPUBLIC-LICENSE
#
...
...
@@ -46,8 +46,9 @@ if len(REQARGS) < 1:
sys
.
exit
(
1
)
else
:
action
=
REQARGS
[
0
]
if
action
!=
"start"
and
action
!=
"stop"
and
action
!=
"restart"
:
print
>>
sys
.
stderr
,
"Action must be one of start/stop/restart"
if
(
action
!=
"start"
and
action
!=
"stop"
and
action
!=
"restart"
and
action
!=
"reload"
):
print
>>
sys
.
stderr
,
"Action must be one of start/stop/restart/reload"
sys
.
exit
(
1
)
pass
if
len
(
REQARGS
)
==
2
:
...
...
@@ -94,6 +95,8 @@ if action == "start":
method
=
"StartSliver"
elif
action
==
"stop"
:
method
=
"StopSliver"
elif
action
==
"reload"
:
method
=
"ReloadSliver"
else
:
method
=
"RestartSliver"
pass
...
...
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