← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1373199] [NEW] _delete_port_security_group_bindings not needed in ML2 delete_port

 

Public bug reported:

_delete_port_security_group_bindings will delete
SecurityGroupPortBinding associated with the port being deleted. But
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.

** Affects: neutron
     Importance: Undecided
     Assignee: Xurong Yang (idopra)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Xurong Yang (idopra)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1373199

Title:
  _delete_port_security_group_bindings not needed in ML2 delete_port

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  _delete_port_security_group_bindings will delete
  SecurityGroupPortBinding associated with the port being deleted. But
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1373199/+subscriptions


Follow ups

References