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