from sfa.util.xrn import urn_to_hrn
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 Start(Method):
"""
Start the specified slice
def call(self, xrn, creds):
hrn, type = urn_to_hrn(xrn)
- valid_creds = self.api.auth.checkCredentials(creds, 'startslice', hrn)
+ (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
+ valid_creds = self.api.auth.checkCredentials(creds, 'startslice', hrn, speaking_for)
#log the call
origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()