Changeset 2211


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

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

Location:
trunk/packages
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-database/debian/changelog

    r2200 r2211  
    1818  * make EIBTI imports
    1919
    20  -- Greg Price <price@mit.edu>  Fri, 27 Feb 2009 02:29:29 -0500
     20  [ Quentin Smith ]
     21  * Add "reusable" column for nics, to avoid reusing addresses that are
     22    special in some way.
     23
     24 -- Quentin Smith <quentin@mit.edu>  Fri, 27 Feb 2009 11:51:39 -0500
    2125
    2226invirt-database (0.1.7) unstable; urgency=low
  • trunk/packages/invirt-database/python/database/models.py

    r2200 r2211  
    5454       Column('mac_addr', String, nullable=False, primary_key=True),
    5555       Column('ip', String, nullable=False, unique=True),
    56        Column('hostname', String, nullable=True))
     56       Column('hostname', String, nullable=True),
     57       Column('reusable', Boolean, nullable=False, default=True))
    5758
    5859disk_table = Table('disks', meta,
  • 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.