'Execute CGI to clone snapshot as unmap lun.'

@_connection_checker
def clone_snapshot(self, snapshot_id, new_lunname):

    res_details = self._get_res_details('/cgi-bin/disk/snapshot.cgi?', func='clone_qsnapshot', by_lun='1', snapshotID=snapshot_id, new_name=new_lunname, 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 < '0'):
        raise exception.VolumeBackendAPIException(data=(_('Clone    lun    %(lunname)s    from    snapshot    %(snapshot_id)s    failed') % {'lunname': new_lunname, 'snapshot_id': snapshot_id}))
