fix PerformOperationalAction
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Sat, 20 Oct 2012 02:23:06 +0000 (22:23 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Sat, 20 Oct 2012 02:23:06 +0000 (22:23 -0400)
sfa/client/sfi.py
sfa/managers/aggregate_manager.py
sfa/methods/__init__.py
sfa/planetlab/pldriver.py

index 3f34ac6..20d4b99 100644 (file)
@@ -1371,6 +1371,7 @@ or with an slice hrn, shows currently provisioned resources
         Perform the named operational action on the named slivers
         """
         server = self.sliceapi()
+        api_options = {}
         # slice urn
         slice_hrn = args[0]
         action = args[1]
@@ -1382,7 +1383,7 @@ or with an slice hrn, shows currently provisioned resources
             delegated_cred = self.delegate_cred(slice_cred, get_authority(self.authority))
             creds.append(delegated_cred)
         
-        result = server.PerformOperationalAction(slice_urn, creds, action )
+        result = server.PerformOperationalAction([slice_urn], creds, action , api_options)
         value = ReturnValue.get_value(result)
         if self.options.raw:
             save_raw_to_file(result, self.options.raw, self.options.rawformat, self.options.rawbanner)
index 0b97c63..0bb9553 100644 (file)
@@ -134,7 +134,7 @@ class AggregateManager:
     def PerformOperationalAction(self, api, xrns, creds, action, options={}):
         call_id = options.get('call_id')
         if Callids().already_handled(call_id): return True
-        return self.driver.performOperationalAction(xrns, action, options) 
+        return self.driver.perform_operational_action(xrns, action, options) 
 
     def Shutdown(self, api, xrn, creds, options={}):
         call_id = options.get('call_id')
index 89c8bf7..10766fe 100644 (file)
@@ -11,6 +11,7 @@ GetVersion
 List
 ListResources
 ListSlices
+PerformOperationalAction
 Provision
 RedeemTicket
 Register
index 42da6ec..75c230f 100644 (file)
@@ -763,7 +763,7 @@ class PlDriver (Driver):
             pass
         else:
             raise UnsupportedOperation(action)
-        description = self.describe(urns)
+        description = self.describe(urns, None, options)
         return description['geni_slivers']
 
     # set the 'enabled' tag to 0