@classmethod
def get_by_port_addresses(cls, context, addresses):
    """Get a node by associated port addresses.

        :param cls: the :class:`Node`
        :param context: Security context.
        :param addresses: A list of port addresses.
        :raises: NodeNotFound if the node is not found.
        :returns: a :class:`Node` object.
        """
    db_node = cls.dbapi.get_node_by_port_addresses(addresses)
    node = cls._from_db_object(context, cls(), db_node)
    return node
