NSX|V: ensure route update is aromic for shared routers
Ensure that the route update is atomic. Change-Id: Ie3c9d3fdb2505b53839faeacdc1ed1c7e2ad6e2f
This commit is contained in:
parent
ddfb880d5a
commit
dd9d8db3dd
@ -331,6 +331,7 @@ class RouterSharedDriver(router_driver.RouterBaseDriver):
|
|||||||
self._add_router_services_on_available_edge(context,
|
self._add_router_services_on_available_edge(context,
|
||||||
router_id)
|
router_id)
|
||||||
else:
|
else:
|
||||||
|
with locking.LockManager.get_lock(str(edge_id)):
|
||||||
router_ids = self.edge_manager.get_routers_on_same_edge(
|
router_ids = self.edge_manager.get_routers_on_same_edge(
|
||||||
context, router_id)
|
context, router_id)
|
||||||
if router_ids:
|
if router_ids:
|
||||||
|
Loading…
Reference in New Issue
Block a user