Perform the named operational action on the named slivers
"""
server = self.sliceapi()
+ api_options = {}
# slice urn
slice_hrn = args[0]
action = args[1]
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)
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')
List
ListResources
ListSlices
+PerformOperationalAction
Provision
RedeemTicket
Register
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