]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Disable PUT for IPv6 subnet attributes
authorHenry Gessau <gessau@cisco.com>
Wed, 8 Oct 2014 00:38:38 +0000 (20:38 -0400)
committerThierry Carrez <thierry@openstack.org>
Thu, 9 Oct 2014 10:04:07 +0000 (12:04 +0200)
commit5610343d5aab876480cbe15c8d77631e67d6142f
treebfc4150e93dc1218669625d365113b6bdf9153a8
parent54be5a9e977ea344cc53addb87635ddba0cfd815
Disable PUT for IPv6 subnet attributes

In Juno we are not ready for allowing the IPv6 attributes on a subnet
to be updated after the subnet is created, because:
- The implementation for supporting updates is incomplete.
- Perceived lack of usefulness, no good use cases known yet.
- Allowing updates causes more complexity in the code.
- Have not tested that radvd, dhcp, etc. behave OK after update.

Therefore, for now, we set 'allow_put' to False for the two IPv6
attributes, ipv6_ra_mode and ipv6_address_mode. This prevents the
modes from being updated via the PUT:subnets API.

Closes-bug: #1378952

Change-Id: Id6ce894d223c91421b62f82d266cfc15fa63ed0e
(cherry picked from commit 8a08a3cb47d0dd69d4aa2e8fa661d04054fe95ae)
neutron/api/v2/attributes.py
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/test_db_plugin.py