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.

Location:
trunk/packages/invirt-web
Files:
2 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!  "
  • trunk/packages/invirt-web/debian/changelog

    r2161 r2211  
     1invirt-web (0.0.21) unstable; urgency=low
     2
     3  * Don't reuse IP addresses that are special in some way.
     4
     5 -- Quentin Smith <quentin@mit.edu>  Fri, 27 Feb 2009 11:55:51 -0500
     6
    17invirt-web (0.0.20) unstable; urgency=low
    28
Note: See TracChangeset for help on using the changeset viewer.