]> 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)
committerSalvatore Orlando <salv.orlando@gmail.com>
Mon, 10 Feb 2014 21:03:08 +0000 (13:03 -0800)
commit8f0f6ca82fcbec153f992fd2347b6c4fd9a9eb25
tree16c3e75a6163e40520553570b14cfe274fbb277f
parentc38b6b121972937461e24af578ec00e02f44263d
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