]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use last address in v6 allocation pool generation
authorKevin Benton <blak111@gmail.com>
Wed, 24 Jun 2015 13:50:48 +0000 (06:50 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 26 Jun 2015 09:29:32 +0000 (02:29 -0700)
commitbd3604277f6a550d8757aa96a3164a189ab3af6d
treec1389b5f1ab3854a0d732d3ecd5fe0d85ec4f33f
parent043829d4c3068f7d8e758629959a95bcd601ade5
Use last address in v6 allocation pool generation

This reverts commit 1d61c5f736b9df7253a1939fe55f1875f988d1f4,
which reverted ee51ef72d37a02005a7733b7f2faf7236db850a1 due
to an issue with the allocation pools being mis-aligned with
the last address of a v6 subnet.

IPv6 does not have a subnet broadcast address so the last IP
address can be used as a regular address. This patch tweaks the
automatic allocation pool generation to include that last address
on v6 networks.

This was found because
NetworksTestDHCPv6.test_dhcp_stateful_fixedips_outrange makes the
assumption that the default generated pools cover the entire usable
address space.

Related-Bug: #1466322
Closes-Bug: #1468163
Change-Id: I5a2518c819757cd1fb43244901fe3e2f6c576b34
neutron/db/db_base_plugin_common.py
neutron/db/db_base_plugin_v2.py
neutron/db/ipam_backend_mixin.py
neutron/ipam/utils.py
neutron/tests/unit/db/test_db_base_plugin_v2.py
neutron/tests/unit/ipam/test_subnet_alloc.py
neutron/tests/unit/ipam/test_utils.py [new file with mode: 0644]