trimmed useless imports, unstarred all imports
[sfa.git] / sfa / methods / Shutdown.py
1 from sfa.util.parameter import Parameter
2 from sfa.methods.Stop import Stop
3
4 class Shutdown(Stop):
5     """
6     Perform an emergency shut down of a sliver. This operation is intended for administrative use. 
7     The sliver is shut down but remains available for further forensics.
8
9     @param slice_urn (string) URN of slice to renew
10     @param credentials ([string]) of credentials    
11     """
12     interfaces = ['aggregate', 'slicemgr']
13     accepts = [
14         Parameter(str, "Slice URN"),
15         Parameter(type([str]), "List of credentials"),
16         ]
17     returns = Parameter(bool, "Success or Failure")
18
19     def call(self, slice_xrn, creds):
20
21         return Stop.call(self, slice_xrn, creds)
22