Skip to content

Commit

Permalink
Fix kwargs for FloatingIPPortAlreadyAssociated.
Browse files Browse the repository at this point in the history
Updates the NVP plugin to use the correct kwargs when raising
l3.FloatingIPPortAlreadyAssociated.

Fixes LP Bug #1159922.

Change-Id: If89feea5e40976ccb4286f96f5348c54f84950ce
  • Loading branch information
dprince committed Mar 25, 2013
1 parent 5308111 commit 6f752c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,11 @@ def _update_fip_assoc(self, context, fip, floatingip_db, external_port):
try:
port_qry.filter_by(fixed_port_id=fip['port_id']).one()
raise l3.FloatingIPPortAlreadyAssociated(
port_id=fip['port_id'])
port_id=fip['port_id'],
fip_id=floatingip_db['id'],
floating_ip_address=floatingip_db['floating_ip_address'],
fixed_ip=floatingip_db['fixed_ip_address'],
net_id=floatingip_db['floating_network_id'])
except sa_exc.NoResultFound:
pass
port_id, internal_ip, router_id = self.get_assoc_data(
Expand Down

0 comments on commit 6f752c0

Please sign in to comment.