'Execute CGI to delete snapshot from source lun NAA.'

@_connection_checker
def api_delete_snapshot(self, snapshot_id):

    res_details = self._get_res_details('/cgi-bin/disk/snapshot.cgi?', func='del_snapshots', snapshotID=snapshot_id, sid=self.sid)
    root = ET.fromstring(res_details['data'])
    if (root.find('authPassed').text == '0'):
        raise exception.VolumeBackendAPIException(data=_('Session    id    expired'))
    if (root.find('result').text == '-206021'):
        return
    if (root.find('result').text == '-200005'):
        return
    if (root.find('result').text < '0'):
        raise exception.VolumeBackendAPIException(data=(_('delete    snapshot    %s    failed') % snapshot_id))
