Merge "Remove redundant _ensure_default_security_group" into stable/train

This commit is contained in:
Zuul 2021-04-24 21:17:17 +00:00 committed by Gerrit Code Review
commit 99bba02d6d

View File

@ -1385,9 +1385,6 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
registry.notify(resources.PORT, events.BEFORE_CREATE, self,
context=context, port=attrs)
# NOTE(kevinbenton): triggered outside of transaction since it
# emits 'AFTER' events if it creates.
self._ensure_default_security_group(context, attrs['tenant_id'])
def _create_port_db(self, context, port):
attrs = port[port_def.RESOURCE_NAME]