1 from geni.util.faults import *
2 from geni.util.excep import *
3 from geni.util.misc import *
4 from geni.util.method import Method
5 from geni.util.parameter import Parameter, Mixed
6 from geni.util.auth import Auth
7 from geni.util.slices import Slices
9 class reset_slices(Method):
11 Reset the specified slice
13 @param cred credential string specifying the rights of the caller
14 @param hrn human readable name of slice to instantiate
15 @return 1 is successful, faults otherwise
18 interfaces = ['aggregate', 'slicemgr']
21 Parameter(str, "Credential string"),
22 Parameter(str, "Human readable name of slice to instantiate"),
25 returns = [Parameter(int, "1 if successful")]
27 def call(self, cred, hrn):
29 self.api.auth.check(cred, 'resetslice')
30 ## XX Not yet implemented