NSXv3: Clean up logical port for any nsgroup association error

Closes-bug: #1582177
Change-Id: I924c10d93c88f81c74f8ea2751ab1ed711a48a76
(cherry picked from commit 069334d75b)
This commit is contained in:
Roey Chen 2016-05-15 09:38:51 -07:00 committed by garyk
parent 051848e144
commit 94117909b9
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ class NsxV3Plugin(addr_pair_db.AllowedAddressPairsMixin,
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 "