]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Replace subnetpool config options with admin-only API
authorJohn Davidge <jodavidg@cisco.com>
Thu, 1 Oct 2015 19:37:34 +0000 (20:37 +0100)
committerJohn Davidge <jodavidg@cisco.com>
Fri, 6 Nov 2015 17:16:31 +0000 (17:16 +0000)
commit6ee91e56c84ea6e930369f8649f1d2b50096cb80
treeb6a9a0439a4c71b237f8de833e6d8894f96182b5
parenta3113c56c2aee11755890e22026423cc5b43c811
Replace subnetpool config options with admin-only API

This patch adds a new boolean 'is_default' property to subnetpools. This
allows the admin to set the default v4/v6 subnetpools via the API rather
than the existing neutron.conf options - which are deprecated by this patch.

Only one subnetpool per IP family can be set to default.

DocImpact
ApiImpact

Co-Authored-By: Carl Baldwin <carl@ecbaldwin.net>
Change-Id: I5daba2347cfb91fac0b155b2c1b459ee7d9e4505
Closes-Bug: 1501328
13 files changed:
etc/neutron.conf
etc/policy.json
neutron/api/v2/attributes.py
neutron/common/config.py
neutron/db/db_base_plugin_common.py
neutron/db/db_base_plugin_v2.py
neutron/db/migration/alembic_migrations/versions/EXPAND_HEAD
neutron/db/migration/alembic_migrations/versions/mitaka/expand/13cfb89f881a_add_is_default_to_subnetpool.py [new file with mode: 0644]
neutron/db/models_v2.py
neutron/ipam/subnet_alloc.py
neutron/tests/etc/policy.json
neutron/tests/unit/db/test_db_base_plugin_v2.py
neutron/tests/unit/ipam/test_subnet_alloc.py