Merge "Add retry to _create_ha_port_binding"
This commit is contained in:
commit
8bb2abcb64
@ -295,6 +295,7 @@ class L3_HA_NAT_db_mixin(l3_dvr_db.L3_NAT_with_dvr_db_mixin,
|
|||||||
|
|
||||||
return num_agents
|
return num_agents
|
||||||
|
|
||||||
|
@db_api.retry_if_session_inactive()
|
||||||
def _create_ha_port_binding(self, context, router_id, port_id):
|
def _create_ha_port_binding(self, context, router_id, port_id):
|
||||||
try:
|
try:
|
||||||
with context.session.begin():
|
with context.session.begin():
|
||||||
|
Loading…
Reference in New Issue
Block a user