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

def create_snapshot(self, snapshot):

    volume = self._get_snapshot_volume(snapshot)
    (pool, fs) = self._get_share_datasets(self.share)
    url = ('storage/pools/%(pool)s/filesystems/%(fs)s/snapshots' % {'pool': pool, 'fs': self._escape_path('/'.join([fs, volume['name']]))})
    data = {'name': snapshot['name']}
    self.nef.post(url, data)
