'Get iscsi port info in order to build the iscsi target iqn.'

def _get_iscsi_port_info(self, ip):

    url = '/eth_port'
    result = self.call(url, None, 'GET')
    msg = _('Get    iSCSI    port    information    error.')
    self._assert_rest_result(result, msg)
    self._assert_data_in_result(result, msg)
    iscsi_port_info = None
    for item in result['data']:
        if (ip == item['IPV4ADDR']):
            iscsi_port_info = item['LOCATION']
            break
    return iscsi_port_info
