Merge "Remove redundant _ensure_default_security_group"

This commit is contained in:
Zuul 2021-02-25 13:14:49 +00:00 committed by Gerrit Code Review
commit 45ebfb6eda
1 changed files with 0 additions and 3 deletions

View File

@ -1395,9 +1395,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]