git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid publishing non-relevant entries in GetVersion
[sfa.git]
/
sfa
/
methods
/
Status.py
diff --git
a/sfa/methods/Status.py
b/sfa/methods/Status.py
index
951871d
..
dd15f5d
100644
(file)
--- a/
sfa/methods/Status.py
+++ b/
sfa/methods/Status.py
@@
-3,24
+3,27
@@
from sfa.util.method import Method
from sfa.storage.parameter import Parameter, Mixed
from sfa.storage.parameter import Parameter, Mixed
+
class Status(Method):
"""
Get the status of a sliver
class Status(Method):
"""
Get the status of a sliver
-
+
@param slice_urn (string) URN of slice to allocate to
@param slice_urn (string) URN of slice to allocate to
-
+
"""
interfaces = ['aggregate', 'slicemgr', 'component']
accepts = [
"""
interfaces = ['aggregate', 'slicemgr', 'component']
accepts = [
- Parameter(
[str]
, "Slice or sliver URNs"),
- Parameter(
dict), "credentials")
),
+ Parameter(
type([str])
, "Slice or sliver URNs"),
+ Parameter(
type([dict]), "credentials"
),
Parameter(dict, "Options")
Parameter(dict, "Options")
-
]
+ ]
returns = Parameter(dict, "Status details")
def call(self, xrns, creds, options):
returns = Parameter(dict, "Status details")
def call(self, xrns, creds, options):
- valid_creds = self.api.auth.checkCredentials(creds, 'sliverstatus', xrns)
+ valid_creds = self.api.auth.checkCredentialsSpeaksFor(creds, 'sliverstatus', xrns,
+ check_sliver_callback=self.api.driver.check_sliver_credentials,
+ options=options)
- self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, xrns, self.name))
+ self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s" %
+ (self.api.interface, xrns, self.name))
return self.api.manager.Status(self.api, xrns, creds, options)
return self.api.manager.Status(self.api, xrns, creds, options)
-