179
215
# Forces fake to support iscsi only
181
217
raise Failure(['SR_UNKNOWN_DRIVER', sr_type])
182
219
sr_ref = _create_object(table, obj[2])
183
220
vdi_ref = create_vdi('', False, sr_ref, False)
221
pbd_ref = create_pbd('', host_ref, sr_ref, True)
185
222
_db_content['SR'][sr_ref]['VDIs'] = [vdi_ref]
186
223
_db_content['SR'][sr_ref]['PBDs'] = [pbd_ref]
187
224
_db_content['VDI'][vdi_ref]['SR'] = sr_ref