'Creates a snapshot.'

def create_snapshot(self, snapshot):

    LOG.debug('Create    snapshot:    %s', snapshot['name'])
    volume_name = (self.configuration.zadara_vol_name_template % snapshot['volume_name'])
    cg_name = self._get_volume_cg_name(volume_name)
    if (not cg_name):
        msg = (_('Volume    %(name)s    not    found') % {'name': volume_name})
        LOG.error(msg)
        raise exception.VolumeDriverException(message=msg)
    self.vpsa.send_cmd('create_snapshot', cg_name=cg_name, snap_name=snapshot['name'])
