Merge "NSX: Remove unneed call to _ensure_default_security_group"
This commit is contained in:
commit
4a2f3e5092
@ -2467,12 +2467,10 @@ class NsxPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
||||
:param security_group_rule: list of rules to create
|
||||
"""
|
||||
s = security_group_rule.get('security_group_rules')
|
||||
tenant_id = self._get_tenant_id_for_create(context, s)
|
||||
|
||||
# TODO(arosen) is there anyway we could avoid having the update of
|
||||
# the security group rules in nsx outside of this transaction?
|
||||
with context.session.begin(subtransactions=True):
|
||||
self._ensure_default_security_group(context, tenant_id)
|
||||
security_group_id = self._validate_security_group_rules(
|
||||
context, security_group_rule)
|
||||
# Check to make sure security group exists
|
||||
|
Loading…
Reference in New Issue
Block a user