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