'Creates a snapshot.
:param snapshot: snapshot reference'

def create_snapshot(self, snapshot):

    snapshot_vol = self._get_snapshot_volume(snapshot)
    LOG.info('Creating    snapshot    %(snap)s    of    volume    %(vol)s', {'snap': snapshot['name'], 'vol': snapshot_vol['name']})
    volume_path = self._get_volume_path(snapshot_vol)
    (pool, group, volume) = volume_path.split('/')
    url = ('storage/pools/%(pool)s/volumeGroups/%(group)s/volumes/%(volume)s/snapshots' % {'pool': pool, 'group': group, 'volume': snapshot_vol['name']})
    self.nef.post(url, {'name': snapshot['name']})
