fixed up the names of new site names/slices to be more PLC compatible
[sfa.git] / sfa / methods / start_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.Start import Start
9
10 class start_slice(Start):
11     """
12     Deprecated. Use Start instead
13
14     Start the specified slice      
15
16     @param cred credential string specifying the rights of the caller
17     @param hrn human readable name of slice to instantiate (urn or hrn)
18     @return 1 is successful, faults otherwise  
19     """
20
21     interfaces = ['aggregate', 'slicemgr', 'component']
22     
23     accepts = [
24         Parameter(str, "Credential string"),
25         Parameter(str, "Human readable name of slice to instantiate (urn or hrn)"),
26         Mixed(Parameter(str, "Human readable name of the original caller"),
27               Parameter(None, "Origin hrn not specified"))
28         ]
29
30     returns = [Parameter(int, "1 if successful")]
31     
32     def call(self, cred, xrn, origin_hrn=None):
33  
34         return Start.call(self, xrn, cred)