]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove _delete_port_security_group_bindings from delete_port
authoryangxurong <yangxurong@huawei.com>
Mon, 29 Sep 2014 03:37:19 +0000 (11:37 +0800)
committeryangxurong <yangxurong@huawei.com>
Wed, 24 Dec 2014 02:34:32 +0000 (10:34 +0800)
commit87a3d9fc3a41e45d7c14517243b3f8bda9c0d367
tree32e246a682b48b84717d7c563d90fcb71090fe51
parentc8a8be0f6863dd34f0f0be791ec9c705bd9bccce
Remove _delete_port_security_group_bindings from delete_port

Since SecurityGroupPortBinding has a foreign key constraint with Port
and cascade deleting is defined, SecurityGroupPortBinding can be
deleted when port is deleted, thus _delete_port_security_group_bindings
call in ML2 delete_port is not needed and can be removed. Redundant
calls in other core plugins are also removed in this patch.

_delete_port_security_group_bindings is needed when updating ports so
this method cannot be removed directly.

Change-Id: I33c787fbed46d6049d3b24ccd246a8484d8aa306
Closes-Bug: #1373199
neutron/plugins/bigswitch/plugin.py
neutron/plugins/ml2/plugin.py
neutron/plugins/nec/nec_plugin.py
neutron/plugins/nuage/plugin.py
neutron/plugins/oneconvergence/plugin.py