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
(cherry picked from commit 3fef15a40b2714c1a372216ce60cc1384dc48c02)
Reviewed: https:/ /review. openstack. org/246248 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=bbbd0b95fb2 c85d7089c8a4e3e b18b9372450ed9
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit bbbd0b95fb2c85d 7089c8a4e3eb18b 9372450ed9
Author: Ann Kamyshnikova <email address hidden>
Date: Fri Sep 25 15:30:30 2015 +0300
Add transaction for setting agent_id in L3HARouterAgent PortBinding
To avoid having extra L3HARouterAgent PortBinding with l3_agent as ha_port_ and_bind and _bind_ha_ router_ to_agents.
None, operation of setting l3_agent should be atomic.
For this purpose, transaction was added in methods
create_
Closes-Bug: #1499647
Change-Id: Iaad82fe522cfd7 0061daecf411c92 4fdc11b7e41 1a372216ce60cc1 384dc48c02)
(cherry picked from commit 3fef15a40b2714c