283
283
raise StorageError(_('Unable to destroy VDI %s') % vdi_ref)
286
def create_vif(cls, session, vm_ref, network_ref, mac_address,
308
286
def create_vdi(cls, session, sr_ref, name_label, virtual_size, read_only):
309
287
"""Create a VDI record and returns its reference."""
310
288
vdi_ref = session.get_xenapi().VDI.create(