X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FListSlices.py;h=b1967776c1d1d8184cfceb1574042b95a54e7213;hb=99b7f92d2fb9ba847a51c235da6cf4705b216f4d;hp=e8521c1ac69a6e6023dd0b888137957561bf130c;hpb=89d0fa4efde57cb62445af75c16bdc42bc03693a;p=sfa.git diff --git a/sfa/methods/ListSlices.py b/sfa/methods/ListSlices.py index e8521c1a..b1967776 100644 --- a/sfa/methods/ListSlices.py +++ b/sfa/methods/ListSlices.py @@ -1,7 +1,9 @@ from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed + from sfa.trust.credential import Credential +from sfa.storage.parameter import Parameter, Mixed + class ListSlices(Method): """ List the slices instantiated at this interface @@ -15,17 +17,17 @@ class ListSlices(Method): accepts = [ Mixed(Parameter(str, "Credential string"), Parameter(type([str]), "List of credentials")), - Parameter(str, "call_id"), + Parameter(dict, "options"), ] returns = Parameter(list, "List of slice names") - def call(self, creds, call_id=""): + def call(self, creds, options): valid_creds = self.api.auth.checkCredentials(creds, 'listslices') #log the call origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn() self.api.logger.info("interface: %s\tcaller-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, self.name)) - return self.api.manager.ListSlices(self.api, creds, call_id) + return self.api.manager.ListSlices(self.api, creds, options)