def limit_check(self, context, tenant_id, resources, values):

        # Ensure no value is less than zero
        unders = [key for key, val in values.items() if val < 0]
        if unders:
            raise n_exc.InvalidQuotaValue(unders=sorted(unders))

        # Get the applicable quotas
        quotas = self._get_quotas(context, tenant_id, resources)

        # Check the quotas and construct a list of the resources that
        # would be put over limit by the desired values
        overs = [key for key, val in values.items() if 0 <= quotas[key] < val]
        if overs:
            raise exceptions.OverQuota(overs=sorted(overs))
Return the bcache UUID of a block device.
dataset/ETHPy150Open openstack/neutron/neutron/db/quota/driver.py/DbQuotaDriver.limit_check--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/bcache.py/uuid