1 from sfa.util.xrn import urn_to_hrn
2 from sfa.util.method import Method
3 from sfa.util.sfalogging import logger
5 from sfa.storage.parameter import Parameter, Mixed
10 Get the status of a sliver
12 @param slice_urn (string) URN of slice to allocate to
15 interfaces = ['aggregate']
17 Parameter(type([str]), "Slice or sliver URNs"),
18 Parameter(type([dict]), "credentials"),
19 Parameter(dict, "Options")
21 returns = Parameter(dict, "Status details")
23 def call(self, xrns, creds, options):
24 valid_creds = self.api.auth.checkCredentialsSpeaksFor(
25 creds, 'sliverstatus', xrns,
26 check_sliver_callback=self.api.driver.check_sliver_credentials,
29 logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s" %
30 (self.api.interface, xrns, self.name))
31 return self.api.manager.Status(self.api, xrns, creds, options)