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
10 class stop_slice(Stop):
12 Deprecated. Use Stop instead
13 Stop the specified slice
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
20 interfaces = ['aggregate', 'slicemgr', 'component']
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"))
29 returns = Parameter(int, "1 if successful")
31 def call(self, cred, xrn, origin_hrn=None):
33 return Stop.call(self, xrn, cred)