Skip to content

Commit

Permalink
Delete floating port and floatingip in the same transaction
Browse files Browse the repository at this point in the history
Bug #1080516

Change-Id: Icb5b71e29af582cb0e381e22909f46b325063d71
  • Loading branch information
gongysh authored and Gary Kotton committed Nov 14, 2012
1 parent a112840 commit 6f0a486
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quantum/db/l3_db.py
Expand Up @@ -604,9 +604,9 @@ def delete_floatingip(self, context, id):
floatingip = self._get_floatingip(context, id)
with context.session.begin(subtransactions=True):
context.session.delete(floatingip)
self.delete_port(context.elevated(),
floatingip['floating_port_id'],
l3_port_check=False)
self.delete_port(context.elevated(),
floatingip['floating_port_id'],
l3_port_check=False)

def get_floatingip(self, context, id, fields=None):
floatingip = self._get_floatingip(context, id)
Expand Down

0 comments on commit 6f0a486

Please sign in to comment.