NSXv3: Clean up logical port for any nsgroup association error

Closes-bug: #1582177
Change-Id: I924c10d93c88f81c74f8ea2751ab1ed711a48a76
This commit is contained in:
Roey Chen 2016-05-15 09:38:51 -07:00
parent 16200ab377
commit 069334d75b
1 changed files with 1 additions and 1 deletions

View File

@ -1025,7 +1025,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
if sgids:
security.update_lport_with_security_groups(
context, lport['id'], [], sgids)
except nsx_exc.SecurityGroupMaximumCapacityReached:
except Exception:
with excutils.save_and_reraise_exception():
LOG.debug("Couldn't associate port %s with "
"one or more security-groups, reverting "