'Creates a cgsnapshot.'

def create_cgsnapshot(self, context, cgsnapshot, snapshots):

    group_id = cgsnapshot.get('group_id')
    if (group_id is None):
        group_id = cgsnapshot.get('consistencygroup_id')
    data = {'consistency-group-id': group_id, 'snapshot-set-name': self._get_cgsnap_name(cgsnapshot)}
    self.client.req('snapshots', 'POST', data, ver='v2')
    return (None, None)
