]> 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)
committerHenry Gessau <gessau@cisco.com>
Wed, 8 Oct 2014 17:16:54 +0000 (13:16 -0400)
commit8a08a3cb47d0dd69d4aa2e8fa661d04054fe95ae
tree1743010b572b205a3871b266ada16dc314318b8b
parentd217543ea05f7be2b01630afa76148bf1c0b48bb
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
neutron/api/v2/attributes.py
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/test_db_plugin.py