fixed up the names of new site names/slices to be more PLC compatible
[sfa.git] / sfa / methods / stop_slice.py
1 ### $Id$
2 ### $URL$
3
4 from sfa.util.faults import *
5 from sfa.util.namespace import *
6 from sfa.util.method import Method
7 from sfa.util.parameter import Parameter, Mixed
8 from sfa.methods.Stop import Stop
9
10 class stop_slice(Stop):
11     """
12     Deprecated. Use Stop instead
13     Stop the specified slice      
14
15     @param cred credential string specifying the rights of the caller
16     @param xrn human readable name of slice to instantiate (hrn or urn)
17     @return 1 is successful, faults otherwise  
18     """
19
20     interfaces = ['aggregate', 'slicemgr', 'component']
21     
22     accepts = [
23         Parameter(str, "Credential string"),
24         Parameter(str, "Human readable name of slice to instantiate (hrn or urn)"),
25         Mixed(Parameter(str, "Human readable name of the original caller"),
26               Parameter(None, "Origin hrn not specified"))
27         ]
28
29     returns = Parameter(int, "1 if successful")
30     
31     def call(self, cred, xrn, origin_hrn=None):
32  
33         return Stop.call(self, xrn, cred)