Adding code to prevent vip port deletion from port api
When a lbaas port is deleted from the port delete command from
neutron it tries to delete the port but since it is being held
for the vip the database update fails and neutron throws a 500
error
This fix checks if the vip is associated to the port and allows
deletion of the port only if there is no vip associated with the
port
Reviewed: https:/ /review. openstack. org/176016 /git.openstack. org/cgit/ openstack/ neutron- lbaas/commit/ ?id=dba6eea593f 532b7d7f7b3c1bc d4dee950d6fe18
Committed: https:/
Submitter: Jenkins
Branch: master
commit dba6eea593f532b 7d7f7b3c1bcd4de e950d6fe18
Author: Anand Shanmugam <email address hidden>
Date: Tue Apr 21 22:51:56 2015 +0530
Adding code to prevent vip port deletion from port api
When a lbaas port is deleted from the port delete command from
neutron it tries to delete the port but since it is being held
for the vip the database update fails and neutron throws a 500
error
This fix checks if the vip is associated to the port and allows
deletion of the port only if there is no vip associated with the
port
Change-Id: If9f123dedfe862 25c52b6d26c76a6 4e3f5bee15c
Closes-Bug: #1430394