remove expire_all in getting backup edges

Since expire_all may break other case's communication, we would just
remove it here.

Change-Id: I0e7dc3e9979287cffb184eb93d83aee28ad1cfad
This commit is contained in:
linb 2016-05-23 16:41:09 +08:00 committed by Gary Kotton
parent bf50c26d1b
commit 7f3e8f1961
1 changed files with 0 additions and 3 deletions

View File

@ -323,9 +323,6 @@ class EdgeManager(object):
def _get_available_router_binding(self, context,
appliance_size=nsxv_constants.COMPACT,
edge_type=nsxv_constants.SERVICE_EDGE):
# Reload backup router bindings in case of getting
# deleted router bindings
context.session.expire_all()
backup_router_bindings = self._get_backup_edge_bindings(
context, appliance_size=appliance_size, edge_type=edge_type)
while backup_router_bindings: