]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add transaction for setting agent_id in L3HARouterAgentPortBinding
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Fri, 25 Sep 2015 12:30:30 +0000 (15:30 +0300)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Fri, 13 Nov 2015 09:59:33 +0000 (09:59 +0000)
commit3fef15a40b2714c1a372216ce60cc1384dc48c02
tree2d7924ca89d9504e4bc5a65bdd8e31ea87152313
parent3ed7371332b8a21acde07e4d813de095cf3b7791
Add transaction for setting agent_id in L3HARouterAgentPortBinding

To avoid having extra L3HARouterAgentPortBinding with l3_agent as
None, operation of setting l3_agent should be atomic.
For this purpose, transaction was added in methods
create_ha_port_and_bind and _bind_ha_router_to_agents.

Closes-Bug: #1499647

Change-Id: Iaad82fe522cfd70061daecf411c924fdc11b7e41
neutron/scheduler/l3_agent_scheduler.py