trimmed useless imports, unstarred all imports
[sfa.git] / sfa / methods / SliverStatus.py
index 0842c14..18613b2 100644 (file)
@@ -1,5 +1,4 @@
-from sfa.util.faults import *
-from sfa.util.namespace import urn_to_hrn
+from sfa.util.xrn import urn_to_hrn
 from sfa.util.method import Method
 from sfa.util.parameter import Parameter, Mixed
 
@@ -15,17 +14,18 @@ class SliverStatus(Method):
         Parameter(str, "Slice URN"),
         Mixed(Parameter(str, "Credential string"),
               Parameter(type([str]), "List of credentials")),
+        Parameter(str, "call_id"),
         ]
     returns = Parameter(dict, "Status details")
 
-    def call(self, slice_xrn, creds):
+    def call(self, slice_xrn, creds, call_id=""):
         hrn, type = urn_to_hrn(slice_xrn)
         valid_creds = self.api.auth.checkCredentials(creds, 'sliverstatus', hrn)
 
         self.api.logger.info("interface: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, hrn, self.name))
     
         manager = self.api.get_interface_manager()
-        status = manager.slice_status(self.api, hrn, valid_creds)
+        status = manager.SliverStatus(self.api, hrn, valid_creds, call_id)
 
         return status