]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix subnet creation failure on IPv6 valid gateway
authorDavid Edery <david.edery@alcatel-lucent.com>
Sun, 21 Jun 2015 12:59:49 +0000 (15:59 +0300)
committerDavid Edery <david.edery@alcatel-lucent.com>
Mon, 22 Jun 2015 08:33:56 +0000 (11:33 +0300)
commitee51ef72d37a02005a7733b7f2faf7236db850a1
tree23220899a87f5363d122aed217d42428e09a4574
parentacf78cc3c88aff638180819419a65145a9a79695
Fix subnet creation failure on IPv6 valid gateway

Currently a valid IPv6 address gateway of the "*::ffff:ffff:ffff:ffff"
pattern is failing due to netaddr.broadcast returning value for both IPv6
and IPv4 addresses. IPv6 has no broadcast address so the fix checks if
the gateway is the subnet broadcast address only in the case of IPv4
subnet

Change-Id: I849f95b30343d0b1c90cf91203df220bf731d8d5
Closes-Bug: 1466322
neutron/ipam/subnet_alloc.py
neutron/ipam/utils.py
neutron/tests/unit/ipam/test_subnet_alloc.py