@classmethod
def get_by_uuid(cls, context, uuid):
    """Find a portgroup by UUID and return a :class:`Portgroup` object.

        :param cls: the :class:`Portgroup`
        :param context: Security context
        :param uuid: The UUID of a portgroup.
        :returns: A :class:`Portgroup` object.
        :raises: PortgroupNotFound

        """
    db_portgroup = cls.dbapi.get_portgroup_by_uuid(uuid)
    portgroup = cls._from_db_object(context, cls(), db_portgroup)
    return portgroup
