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