~smoser/nova/milestone-proposed.lp853330

« back to all changes in this revision

Viewing changes to nova/db/api.py

  • Committer: Tarmac
  • Author(s): Vishvananda Ishaya
  • Date: 2011-09-14 21:57:52 UTC
  • mfrom: (1130.411.1 fix-floating-reboot)
  • Revision ID: tarmac-20110914215752-46y80xhmgaagveon
Fix issue where floating ips don't get recreated when a network host reboots.

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
    return IMPL.floating_ip_disassociate(context, address)
262
262
 
263
263
 
264
 
def floating_ip_fixed_ip_associate(context, floating_address, fixed_address):
 
264
def floating_ip_fixed_ip_associate(context, floating_address,
 
265
                                   fixed_address, host):
265
266
    """Associate an floating ip to a fixed_ip by address."""
266
267
    return IMPL.floating_ip_fixed_ip_associate(context,
267
268
                                               floating_address,
268
 
                                               fixed_address)
 
269
                                               fixed_address,
 
270
                                               host)
269
271
 
270
272
 
271
273
def floating_ip_get_all(context):
367
369
 
368
370
def fixed_ip_get_all_by_instance_host(context, host):
369
371
    """Get all allocated fixed ips filtered by instance host."""
370
 
    return IMPL.fixed_ip_get_all_instance_by_host(context, host)
 
372
    return IMPL.fixed_ip_get_all_by_instance_host(context, host)
371
373
 
372
374
 
373
375
def fixed_ip_get_by_address(context, address):