Merge "Remove redundant _ensure_default_security_group" into stable/train
This commit is contained in:
commit
99bba02d6d
|
@ -1385,9 +1385,6 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
|
||||||
|
|
||||||
registry.notify(resources.PORT, events.BEFORE_CREATE, self,
|
registry.notify(resources.PORT, events.BEFORE_CREATE, self,
|
||||||
context=context, port=attrs)
|
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):
|
def _create_port_db(self, context, port):
|
||||||
attrs = port[port_def.RESOURCE_NAME]
|
attrs = port[port_def.RESOURCE_NAME]
|
||||||
|
|
Loading…
Reference in New Issue