

def _extract_networks(self, compute):
    '\n        Extract networks from a compute node XML representation.\n\n        Extract network descriptions from a compute node XML representation,\n        converting each network to an OpenNebulaNetwork object.\n\n        :type  compute: :class:`ElementTree`\n        :param compute: XML representation of a compute node.\n\n        :rtype:  ``list`` of :class:`OpenNebulaNetwork`s.\n        :return: List of virtual networks attached to the compute node.\n        '
    networks = list()
    network_list = compute.find('NETWORK')
    for element in network_list.findall('NIC'):
        networks.append(OpenNebulaNetwork(id=element.attrib.get('network', None), name=None, address=element.attrib.get('ip', None), size=1, driver=self.connection.driver))
    return network_list

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/opennebula.py OpenNebulaNodeDriver._extract_networks/VarMisuse@93/262 `networks`->`network_list`