def get_by_ip(self, ip):
        """ Retrieve an instance of Node by its IP.
        """
        for server in self.remote_servers:
            addresses = self.get_all_ips(server, self.network_client)
            if not addresses:
                self.logger.warning("No ip addresses found: %s", server.__dict__)
            else:
                """ returns first node """
                for addr in addresses:
                    if addr[0] == ip or addr[1] == ip:
                        new_node=create_node_from_server(compute_client=self.compute_client, server=server, int_ip=addr[0], ext_ip=addr[1])
                        return new_node
        return None
 Retrieve an instance of Node by its IP.
        
powerfulseal/clouddrivers/azure_driver.py