]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Compare subnet length as well when deleting DHCP entry
authorAngus Lees <gus@inodes.org>
Thu, 28 Aug 2014 04:37:34 +0000 (14:37 +1000)
committerAngus Lees <gus@inodes.org>
Sun, 12 Oct 2014 09:00:38 +0000 (20:00 +1100)
commit648063881ebfbb54a362ef32d58263fc0f20981c
tree5784b54ef60d5ce7d37df22e108c3ae2e03f2c38
parent542f5cc6277c6d66bb1f603e174f1254e823f2c9
Compare subnet length as well when deleting DHCP entry

When searching for the DHCP subnet entry to delete, the existing code
compares only the subnet prefix and ignores subnet length.  This could
delete the wrong entry/entries if nested subnets are present.

Change-Id: Icf079c42adeca14ef84ec57dc45a5930fde8786d
Closes-Bug: #1362416
neutron/plugins/midonet/midonet_lib.py
neutron/tests/unit/midonet/test_midonet_lib.py