]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Auto allocate gateway_ip even for SLAAC subnets
authorsridhargaddam <sridhar.gaddam@enovance.com>
Thu, 20 Nov 2014 07:39:54 +0000 (07:39 +0000)
committersridhargaddam <sridhar.gaddam@enovance.com>
Tue, 9 Dec 2014 15:47:05 +0000 (15:47 +0000)
commit66dcb8b935a00e7f7566802d662ebb1f265eab1f
tree1e3d1c6b324c0d6aba5005f43880cfdfef7a5239
parent7df578c4512adbd2443114b11b83589a22bba19f
Auto allocate gateway_ip even for SLAAC subnets

For a SLAAC subnet that is created without specifying the gateway_ip,
Neutron currently allocates (If0c48a7287a828eef4a0f0b0859d4f898d2937bd)
the gateway_ip at a later stage (i.e., neutron router_interface_add).
In order to keep the API consistent between IPv4 and IPv6, it is
recommended to allocate the gateway_ip during subnet_create stage itself.

Closes-Bug: #1394112
Change-Id: I965232930502c21b605fe360bb138bb6ea73d2b0
neutron/db/db_base_plugin_v2.py
neutron/db/l3_db.py
neutron/tests/unit/oneconvergence/test_nvsd_plugin.py
neutron/tests/unit/test_db_plugin.py
neutron/tests/unit/test_l3_plugin.py