]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
[ML2] l2-pop MD handle multi create/delete ports
authorÉdouard Thuleau <edouard.thuleau@cloudwatt.com>
Tue, 24 Dec 2013 10:48:46 +0000 (11:48 +0100)
committerÉdouard Thuleau <edouard.thuleau@cloudwatt.com>
Tue, 24 Dec 2013 12:23:12 +0000 (13:23 +0100)
commit7e91362dbb974df5ee44d346e1d0971479510d4b
tree792203deb25462a1f8fa73b357f86144d696f6c8
parent84aeb9a407cde367ff4d6e2b5986dd0a689bc332
[ML2] l2-pop MD handle multi create/delete ports

If more than one port is added or removed simultaneously, port db entry
have status BUILD or DOWN and pass to ACTIVE when agent have finish to
configured it.
l2-pop mechanism driver use events port pass to ACTIVE or DOWN to send
fdb entries. In case of port is the first or the last network port on
an agent, the flooding entry need to be add or removed.

This patch fix the method to determine how many ports are active on a
agent by adding filter on status port to be ACTIVE.

Closes-bug: #1263881
Change-Id: I9c1f8bd69dee37bc01a5d42327aa5f737998c5aa
neutron/plugins/ml2/drivers/l2pop/db.py
neutron/plugins/ml2/drivers/l2pop/mech_driver.py
neutron/tests/unit/ml2/drivers/test_l2population.py