]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow non-root ip in subnet CIDR
authorJay S. Bryant <jsbryant@us.ibm.com>
Sun, 9 Jun 2013 13:43:55 +0000 (08:43 -0500)
committerJay S. Bryant <jsbryant@us.ibm.com>
Mon, 1 Jul 2013 20:18:47 +0000 (15:18 -0500)
commitaf91fe1e179effcbb89fee0b9fa037290585a444
treef1342e05c5bdb2553fe192bb4d40b2b6830529b1
parent9c18ac14ca4dec316ae3469dce9218b359fa1b7d
Allow non-root ip in subnet CIDR

If a subnet is created using an IP that isn't a root IP
(doesn't end with .0) the code that handles IP checking
for fixed IPs fails.  This fix changes the check for a
valid IP to use the net.network IP address to
avoid problems in subnets created with the non-root CIDR.

(fixes bug 1188845)

Change-Id: I89df64261d0f2741668576e45dc8f026857f20b0
quantum/db/db_base_plugin_v2.py
quantum/tests/unit/test_db_plugin.py