'Disable lun from sepecific target.'

@_connection_checker
def disable_lun(self, lun_index, target_index):

    res_details = self._get_res_details('/cgi-bin/disk/iscsi_target_setting.cgi?', func='edit_lun', LUNIndex=lun_index, targetIndex=target_index, LUNEnable=0, 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=(_('Disable    lun    %(lun_index)s    from    target    %(target_index)s    failed') % {'lun_index': lun_index, 'target_index': target_index}))
