]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Subnet allocation from a subnet pool
authorRyan Tidwell <ryan.tidwell@hp.com>
Thu, 19 Feb 2015 23:29:08 +0000 (15:29 -0800)
committerRyan Tidwell <ryan.tidwell@hp.com>
Tue, 31 Mar 2015 20:44:14 +0000 (13:44 -0700)
commitfb8ea72240700573e97a70597418453374fbd02f
tree312a6d6db44db67aec1a9534bc96c2be1785007b
parent629d1d44ee3d223abc51fc78602d2b0cddfc2bca
Subnet allocation from a subnet pool

Contains API changes, model changes, and logic required to enable a subnet to
be allocated from a subnet pool. Users can request a subnet allocation by
supplying subnetpool_id and optionally prefixlen or cidr. If cidr is
specified, an attempt is made to allocate the given CIDR from the pool. If
prefixlen is specified, an attempt is made to allocate any CIDR with the
given prefix length from the pool. If neither is specified, a CIDR is chosen
from the pool using the default prefix length for the pool.

ApiImpact
Partially-Implements: blueprint subnet-allocation
Change-Id: I59a221f4f434718fb77bd132dbbe1ff50fce4b0c
14 files changed:
neutron/api/v2/attributes.py
neutron/common/constants.py
neutron/common/exceptions.py
neutron/common/utils.py
neutron/db/db_base_plugin_v2.py
neutron/db/migration/alembic_migrations/versions/268fb5e99aa2_subnetpool_allocation.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/db/models_v2.py
neutron/extensions/subnetallocation.py [new file with mode: 0644]
neutron/ipam/subnet_alloc.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ipam/test_subnet_alloc.py [new file with mode: 0644]
neutron/tests/unit/test_common_utils.py
neutron/tests/unit/test_db_plugin.py