]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Prevent an iteration through ports on IPv6 slaac
authorKevin Benton <blak111@gmail.com>
Tue, 18 Nov 2014 16:34:56 +0000 (08:34 -0800)
committerIhar Hrachyshka <ihrachys@redhat.com>
Wed, 26 Nov 2014 18:39:24 +0000 (19:39 +0100)
commit3e1d3a786500510be7338ce9e5c81e8daccfeb40
tree1b1c7145e3ca93e1392d30a5c5935eb1ade57071
parent63b43376b3818a28af496d3a6f4e6957df9427f2
Prevent an iteration through ports on IPv6 slaac

A recent change[1] allowed subnets to be deleted even if they
had active IPv6 SLAAC allocations on them. The updated check
was inefficient because it would check every port in the subnet
even if the subnet was a SLAAC subnet. This patch just shortcuts
out that check.

1. I281f5a1553248e09174dc49d0a42aef4b5c44bee

Change-Id: I2c35495b3642c644e4758f28ccddcc076139ec3b
(cherry picked from commit b3a44c2d5d8ca85bcc5ccffc76d2a959e373e5d4)
neutron/plugins/ml2/plugin.py