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.DeleteSliver import DeleteSliver
10 class delete_slice(DeleteSliver):
12 Deprecated. Use delete instead.
14 Remove the slice from all nodes.
16 @param cred credential string specifying the rights of the caller
17 @param xrn human readable name specifying the slice to delete (hrn or urn)
18 @return 1 if successful, faults otherwise
21 interfaces = ['aggregate', 'slicemgr', 'component']
24 Parameter(str, "Credential string"),
25 Parameter(str, "Human readable name of slice to delete (hrn or urn)"),
26 Mixed(Parameter(str, "Human readable name of the original caller"),
27 Parameter(None, "Origin hrn not specified"))
30 returns = Parameter(int, "1 if successful")
32 def call(self, cred, xrn, origin_hrn=None):
34 return DeleteSliver.call(self, xrn, cred)