]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix handling of floating IP association info in Nicira plugin
authorSalvatore Orlando <salv.orlando@gmail.com>
Wed, 11 Sep 2013 14:19:28 +0000 (07:19 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Fri, 13 Sep 2013 14:24:35 +0000 (07:24 -0700)
commite68617c141c8a16a26bc4ade641aa4a5a809619d
tree019cbe05695458144b90679f5dbe8f420b7fedc7
parent3f9fe8f6a5cb0a48c1c2741b01a7bee1a0a3b7cc
Fix handling of floating IP association info in Nicira plugin

Bug 1223902

This patch fixes the _update_fix_assoc routine in the Nicira plugin,
ensuring the association of a floating IP with a router is removed
when the floating IP is disassociated.
This patch also adds a unit test for validating behaviour when a floating
IP is associated to a port on a different router, which was an
uncovered use case. This new unit test required some refactoring in
test_l3_plugin.py.

Change-Id: Ibfd53a637f4d14a368b0aeff289c15f993df58dd
neutron/plugins/nicira/NeutronPlugin.py
neutron/tests/unit/test_l3_plugin.py