'Creates a clone of the specified volume.'

def create_cloned_volume(self, volume, src_vref):

    es_vol = self._get_volume(src_vref['id'])
    es_snapshot = self._create_es_snapshot_for_clone(es_vol)
    try:
        self._create_volume_from_snapshot(volume, es_snapshot)
        self._add_volume_to_consistencygroup(volume)
    finally:
        try:
            self._client.delete_snapshot_group(es_snapshot['pitGroupRef'])
        except exception.NetAppDriverException:
            LOG.warning('Failure    deleting    temp    snapshot    %s.', es_snapshot['id'])
