]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
No allocation needed for specific IPv6 SLAAC addr assignment
authorDane LeBlanc <leblancd@cisco.com>
Wed, 18 Mar 2015 16:41:25 +0000 (12:41 -0400)
committerDane LeBlanc <leblancd@cisco.com>
Fri, 27 Mar 2015 20:46:03 +0000 (16:46 -0400)
commit04cd03840977bc32b2bcadcd185a8c4ae19b7159
treebff14dc509c0d9fe2ee21be5f4a18a0fa6d97165
parent1a089e6059a381a9cb90a17cf17d44e144d30430
No allocation needed for specific IPv6 SLAAC addr assignment

(Patch set #7 for the multiple-ipv6-prefixes blueprint)

On internal router ports, Neutron allows for an address to
be assigned for an IPv6 SLAAC subnet that is not necessarily
EUI-64. This makes it easier for subnet create, since a
convenient address, e.g. one ending in ::1, can be used as
the subnet gateway IP address.

Currently, when an internal router port is created with a specific
(non-EUI-64) address for a SLAAC subnet, the call flow includes
a call to _allocate_specific_ip. This call is not necessary,
since we're not allocating an address from a pool (and
recalibrating availability ranges, etc.).

This patch set prevents the call to _allocate_specific_ip for
this scenario.

Co-Authored-By: Baodong (Robert) Li <baoli@cisco.com>
Change-Id: I2533ee82980bb602faa663b875787ca50b268b34
Partially-implements: blueprint multiple-ipv6-prefixes
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/test_db_plugin.py