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