'Get target info.'

@_connection_checker
def get_target_info(self, target_index):

    LOG.debug('target_index:    %s', target_index)
    res_details = self._get_res_details('/cgi-bin/disk/iscsi_portal_setting.cgi?', func='extra_get', targetInfo=1, targetIndex=target_index, 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=_('Get    target    info    failed'))
    target_list = root.find('targetInfo')
    target_tree = target_list.findall('row')
    for target in target_tree:
        if (target_index == target.find('targetIndex').text):
            LOG.debug('targetIQN:    %s', target.find('targetIQN').text)
            return target
