]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Simple subnetpool allocation quotas
authorRyan Tidwell <ryan.tidwell@hp.com>
Mon, 16 Mar 2015 18:02:13 +0000 (11:02 -0700)
committerRyan Tidwell <ryan.tidwell@hp.com>
Tue, 31 Mar 2015 20:56:31 +0000 (20:56 +0000)
commit2fa1fc4bb1a324e3878c68a74ca7bdb4bd545db1
tree9b83e5487dce65b738723c30fea94808b0ac2fee
parentfb8ea72240700573e97a70597418453374fbd02f
Simple subnetpool allocation quotas

Enables enforcement of allocation quotas on subnet pools. The quota
is pool-wide, with the value of allocation_quota applied to every
tenant who uses the pool. allocation_quota must be non-negative,
and is an optional attribute. If not supplied, no quotas are
enforced. Quotas are measured in prefix space allocated. For IPv4
subnet pools, the quota is measured in units of /32 ie each tenant
can allocate up to X /32's from the pool. For IPv6 subnet pools, the
quota is measured in units of /64 ie each tenant can allocate up to
X /64's from the pool. For backward-compatibility, allocation quotas
are not applied to the implicit (AKA null) pool. Standard subnet
quotas will continue to be applied to all requests.

ApiImpact
Partially-Implements: blueprint subnet-allocation
Change-Id: I7e4641f47790414c693c7cc9b7a44b1889087801
neutron/api/v2/attributes.py
neutron/common/exceptions.py
neutron/db/db_base_plugin_v2.py
neutron/db/migration/alembic_migrations/versions/28a09af858a8_subnetpool_quotas.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/db/models_v2.py
neutron/ipam/subnet_alloc.py
neutron/tests/unit/ipam/test_subnet_alloc.py
neutron/tests/unit/test_db_plugin.py