]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Create new IPv6 attributes for Subnets
authorSean M. Collins <sean_collins2@cable.comcast.com>
Thu, 30 Jan 2014 19:12:17 +0000 (14:12 -0500)
committerSean M. Collins <sean_collins2@cable.comcast.com>
Mon, 17 Mar 2014 18:35:46 +0000 (14:35 -0400)
commit2a4e50caeaa271937a23ab7c052c7e9c47c1933f
tree89e87f60cea6b6e65b6e3b03dbeedcbebfdae0d4
parent903aa84ff98efb675e1d4e7af464d1df9f7f01ea
Create new IPv6 attributes for Subnets

* Introduces two new optional attributes for Subnets:
  * ipv6_ra_mode
  * ipv6_address_mode

Both attributes accept the following values:

* dhcpv6-stateful
* dhcpv6-stateless
* slaac

In addition to these values, additional behaviors are specified for
when only one of the attributes is set. For example, a Neutron network
that uses a physical router as a gateway, that transmits ICMPv6 Router
Advertisement packets to configure hosts on the network will create
Neutron Subnets that have ipv6_ra_mode *not* set, and ipv6_address_mode
set to 'slaac' so that Neutron will calculate EUI64 addresses for
each port assigned to the subnet, and not spawn a Dnsmasq process.

These attributes maintain backwards compatability with the enable_dhcp
Subnet attribute, by requiring a subnet with these attributes to also
have enable_dhcp set to True.

DocImpact

Implements bp ipv6-two-attributes
Change-Id: I5b2313fff5dca1c16ff939fdc4397d7f95ba3ba5
neutron/api/v2/attributes.py
neutron/common/constants.py
neutron/db/db_base_plugin_v2.py
neutron/db/migration/alembic_migrations/versions/2447ad0e9585_add_ipv6_mode_props.py [new file with mode: 0644]
neutron/db/models_v2.py
neutron/tests/unit/oneconvergence/test_nvsd_plugin.py
neutron/tests/unit/test_db_plugin.py