@classmethod
def get_by_id(cls, context, port_id):
    """Find a port based on its integer ID and return a Port object.

        :param cls: the :class:`Port`
        :param context: Security context
        :param port_id: the ID of a port.
        :returns: a :class:`Port` object.
        :raises: PortNotFound

        """
    db_port = cls.dbapi.get_port_by_id(port_id)
    port = cls._from_db_object(context, cls(), db_port)
    return port
