1 from sfa.util.xrn import urn_to_hrn
2 from sfa.util.method import Method
4 from sfa.storage.parameter import Parameter, Mixed
9 Get the status of a sliver
11 @param slice_urn (string) URN of slice to allocate to
14 interfaces = ['aggregate', 'slicemgr', 'component']
16 Parameter(type([str]), "Slice or sliver URNs"),
17 Parameter(type([dict]), "credentials"),
18 Parameter(dict, "Options")
20 returns = Parameter(dict, "Status details")
22 def call(self, xrns, creds, options):
23 valid_creds = self.api.auth.checkCredentialsSpeaksFor(creds, 'sliverstatus', xrns,
24 check_sliver_callback=self.api.driver.check_sliver_credentials,
27 self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s" %
28 (self.api.interface, xrns, self.name))
29 return self.api.manager.Status(self.api, xrns, creds, options)