'Get target iSCSI iqn.'

def _get_tgt_iqn(self, iscsi_ip):

    ip_info = self._get_iscsi_port_info(iscsi_ip)
    iqn_prefix = self._get_iscsi_tgt_port()
    if (not ip_info):
        err_msg = _('Get    iSCSI    port    info    error,    please    check    the    target    IP    configured    in    huawei    conf    file.')
        LOG.error(err_msg)
        raise exception.VolumeBackendAPIException(data=err_msg)
    LOG.debug('Request    ip    info    is:    %s.', ip_info)
    split_list = ip_info.split('.')
    newstr = (split_list[1] + split_list[2])
    LOG.info('New    str    info    is:    %s.', newstr)
    if ip_info:
        if (newstr[0] == 'A'):
            ctr = '0'
        elif (newstr[0] == 'B'):
            ctr = '1'
        interface = ('0' + newstr[1])
        port = ('0' + newstr[3])
        iqn_suffix = (((ctr + '02') + interface) + port)
        for i in range(0, len(iqn_suffix)):
            if (iqn_suffix[i] != '0'):
                iqn_suffix = iqn_suffix[i:]
                break
        iqn = ((((iqn_prefix + ':') + iqn_suffix) + ':') + iscsi_ip)
        LOG.info('_get_tgt_iqn:    iSCSI    target    iqn    is:    %s.', iqn)
        return iqn
