Ignore:
Timestamp:
Feb 27, 2009, 11:56:20 AM (16 years ago)
Author:
quentin
Message:

Add "reusable" column for nics, to avoid reusing addresses that are special in some way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/controls.py

    r2097 r2211  
    9797        disk = Disk(machine=machine,
    9898                    guest_device_name='hda', size=disksize)
    99         nic = NIC.query().filter_by(machine_id=None).first()
     99        nic = NIC.query().filter_by(machine_id=None).filter_by(reusable=True).first()
    100100        if not nic: #No IPs left!
    101101            raise CodeError("No IP addresses left!  "
Note: See TracChangeset for help on using the changeset viewer.