]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix BigSwitch plugin to handle device_id re-use in porttracker code
authorKevin Benton <kevin.benton@bigswitch.com>
Tue, 6 Aug 2013 15:19:08 +0000 (08:19 -0700)
committerKevin Benton <kevin.benton@bigswitch.com>
Tue, 6 Aug 2013 19:34:25 +0000 (12:34 -0700)
commit967e71c0318606558d866f3853c98e74aa963922
tree8cd80fce19be22bd25e728c5d33ec529bd21a003
parentf27fba3ad77d907713e3e1cbfa45d33e0135c08b
Fix BigSwitch plugin to handle device_id re-use in porttracker code

Updates the BigSwitch port_tracker code to use the sqlalchemy merge method
instead of the add method for the port location tracking code to avoid primary
 key constraint errors if device-ids are moved or re-used

Fixes: bug #1208990
Change-Id: I06065ac888873b00f445d4356b17f084ee38c1ea
neutron/plugins/bigswitch/db/porttracker_db.py
neutron/tests/unit/bigswitch/test_restproxy_plugin.py