'Establish connection to device.'

def _connect_device(self, conn):

    use_multipath = CONF.use_multipath_for_image_xfer
    device_scan_attempts = CONF.num_volume_device_scan_tries
    protocol = conn['driver_volume_type']
    connector = utils.brick_get_connector(protocol, use_multipath=use_multipath, device_scan_attempts=device_scan_attempts, conn=conn)
    vol_handle = connector.connect_volume(conn['data'])
    return {'conn': conn, 'device': vol_handle, 'connector': connector}
