'Execute get_ethernet_ip API.'

@_connection_checker
def get_ethernet_ip(self, **kwargs):

    LOG.debug('in    get_ethernet_ip')
    res_details = self._get_res_details('/cgi-bin/sys/sysRequest.cgi?', subfunc='net_setting', sid=self.sid)
    root = ET.fromstring(res_details['data'])
    if (root.find('authPassed').text == '0'):
        raise exception.VolumeBackendAPIException(data=_('Session    id    expired'))
    if ('type' in kwargs):
        return_ip = []
        ip_list = root.find('func').find('ownContent')
        ip_list_tree = ip_list.findall('IPInfo')
        for IP in ip_list_tree:
            ipv4 = ((((((IP.find('IP').find('IP1').text + '.') + IP.find('IP').find('IP2').text) + '.') + IP.find('IP').find('IP3').text) + '.') + IP.find('IP').find('IP4').text)
            LOG.debug('ipv4    =    %s', ipv4)
            if (IP.find('status').text == '1'):
                return_ip.append(ipv4)
        LOG.debug('return_ip    =    %s', return_ip)
    return return_ip
