]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
call security_groups_member_updated in port_update
authorXu Chen <xchenum@gmail.com>
Thu, 19 Jun 2014 19:01:33 +0000 (15:01 -0400)
committerXu Chen <xchenum@gmail.com>
Mon, 21 Jul 2014 18:22:09 +0000 (14:22 -0400)
commite97eea83ae162b9ce0f45f1ff334dbf70608fe3f
tree7acc19328e0b113bcaab6a2102e487b1bcebb001
parent8abd632e05a2e900a4c17b37f81cb846c3c4da44
call security_groups_member_updated in port_update

When a running VM is added to a security group, all existing VMs (ports)
in the security group should be notified/updated - otherwise they would
have incorrect rules, not knowing the new VM/port added.

The current behavior would only update the port of the added VM. This
patch forces an security_groups_member_updated() call for all the
security groups that have ports removed or added.

Change-Id: Ibdcd74f47043762386b62f3ec0fa1723060446ac
Closes-Bug: 1316618
neutron/plugins/openvswitch/ovs_neutron_plugin.py
neutron/tests/unit/openvswitch/test_openvswitch_plugin.py