]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Basic subnetpool CRUD
authorRyan Tidwell <ryan.tidwell@hp.com>
Thu, 15 Jan 2015 21:17:17 +0000 (13:17 -0800)
committerRyan Tidwell <ryan.tidwell@hp.com>
Thu, 19 Mar 2015 05:53:50 +0000 (22:53 -0700)
commit6f610d2d87bbfa3b461a6e0d68bb9e88fc330543
tree002ae84b400d85717e74998c515c3067f6343fda
parent4cda123a86f65b2542553fde65ca8d36062e1f52
Basic subnetpool CRUD

Enable creating, reading, updating, and deleting subnet pools via REST API.
Includes required changes to REST, model, alembic migrations, and unit tests.
Subnet pools carry a list of IPv4 or IPv6 prefixes from which a subnet can be
allocated. This will enable tenants to request a subnet from a pool rather
than being forced to explicitly provide their own CIDR's for their subnets.
This change simply enables managing the lifecycle of a subnet pool and does
not yet enable allocation of subnet prefixes from a pool.

Subnet pools can have their prefix bounds (min, max, default), name, and
prefix list updated. Changes to prefix bounds do not alter existing
allocations and will not be blocked by existing allocations. Prefix lists can
only be appended to. Prefixes cannot be removed from the pool once added.

ApiImpact
Partially-Implements: blueprint subnet-allocation
Change-Id: I88c6b15aab258069758f1a9423d6616ceb4a33c4
etc/policy.json
neutron/api/v2/attributes.py
neutron/api/v2/router.py
neutron/common/exceptions.py
neutron/db/db_base_plugin_v2.py
neutron/db/migration/alembic_migrations/versions/51c54792158e_subnetpools.py [new file with mode: 0644]
neutron/db/migration/alembic_migrations/versions/HEAD
neutron/db/models_v2.py
neutron/ipam/subnet_alloc.py [new file with mode: 0644]
neutron/neutron_plugin_base_v2.py
neutron/tests/unit/test_db_plugin.py