X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FStart.py;h=14122225f098fa3a2bfb0b0467a1e2d95ce402bd;hb=90ab94deecf2371c199d56cd35f0fd4fd20233e4;hp=3619106f68df0de3a245d4974b2fa1b126085eb3;hpb=99e9f96209b9ebfd1853e7b8902a1a0fe893eaa2;p=sfa.git diff --git a/sfa/methods/Start.py b/sfa/methods/Start.py index 3619106f..14122225 100644 --- a/sfa/methods/Start.py +++ b/sfa/methods/Start.py @@ -1,13 +1,10 @@ -### $Id: stop_slice.py 17732 2010-04-19 21:10:45Z tmack $ -### $URL: https://svn.planet-lab.org/svn/sfa/trunk/sfa/methods/stop_slice.py $ - -from sfa.util.faults import * -from sfa.util.namespace import urn_to_hrn +from sfa.util.xrn import urn_to_hrn from sfa.util.method import Method -from sfa.util.parameter import Parameter, Mixed -from sfa.trust.auth import Auth + from sfa.trust.credential import Credential +from sfa.storage.parameter import Parameter, Mixed + class Start(Method): """ Start the specified slice @@ -35,7 +32,6 @@ class Start(Method): origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn() self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, hrn, self.name)) - manager = self.api.get_interface_manager() - manager.start_slice(self.api, xrn, creds) + self.api.manager.start_slice(self.api, xrn, creds) return 1