def Delete(self, api, xrns, creds, options):
call_id = options.get('call_id')
if Callids().already_handled(call_id): return True
- return self.driver.delete_sliver (xrns, options)
+ return self.driver.delete(xrns, options)
def Renew(self, api, xrns, creds, expiration_time, options):
call_id = options.get('call_id')
origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()
self.api.logger.info("interface: %s\tcaller-hrn: %s\ttarget-hrn: %s\tmethod-name: %s"%(self.api.interface, origin_hrn, xrns, self.name))
- self.api.manager.Delete(self.api, xrns, creds, options)
-
- return 1
+ return self.api.manager.Delete(self.api, xrns, creds, options)
project_name = xrn.get_slicename()
id = xrn.id
aggregate.delete_instance(tenant_name, project_name, id)
- return 1
+ return True
def renew (self, urns, expiration_time, options={}):
return True
-import time
import datetime
#
from sfa.util.faults import MissingSfaInfo, UnknownSfaType, \
finally:
if peer:
self.shell.BindObjectToPeer('slice', slice['slice_id'], peer, slice['peer_slice_id'])
- return 1
+ return True
def renew (self, urns, expiration_time, options={}):
# we can only renew slices, not individual slivers. ignore sliver