]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX plugin: fix floatingip re-association
authorSalvatore Orlando <salv.orlando@gmail.com>
Mon, 10 Feb 2014 21:03:08 +0000 (13:03 -0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:18 +0000 (15:20 +0800)
commit37cc1fc89b22316ae7de18c41c3b710b234a3014
treee630145035cf0076245df6c05c89290c8cbd1143
parentdd7c041de79eb4b975e58eb90f0707382693db69
NSX plugin: fix floatingip re-association

The NSX plugin does not allow to reassociate a floating IP to
a different internal IP address on the same port where it's
currently associated.
This patch fixes this behaviour and adds a unit test to ensure
re-association on the same port with a different IP is possible.

A few tweaks to the unit test aux functions were necessary to
accomodate the newly introduced unit test.

Change-Id: Iafbc3c54ebc4509ca75155ef138cc6da869df7bd
Closes-Bug: #1278581
neutron/plugins/nicira/NeutronPlugin.py
neutron/tests/unit/test_l3_plugin.py