'Extract networks from a compute node XML representation.
Extract network descriptions from a compute node XML representation,
converting each network to an OpenNebulaNetwork object.
:type  compute: :class:`ElementTree`
:param compute: XML representation of a compute node.
:rtype:  ``list`` of :class:`OpenNebulaNetwork`s.
:return: List of virtual networks attached to the compute node.'

def _extract_networks(self, compute):

    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 networks
