From e8e9ad0a0d67dc92899a499ab42dccae285d76ba Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Fri, 27 Feb 2009 11:56:20 -0500 Subject: [PATCH] Add "reusable" column for nics, to avoid reusing addresses that are special in some way. svn path=/trunk/packages/invirt-database/; revision=2211 --- debian/changelog | 6 +++++- python/database/models.py | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4d5e96d..2ce6710 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,7 +17,11 @@ invirt-database (0.1.8) unstable; urgency=low all: * make EIBTI imports - -- Greg Price Fri, 27 Feb 2009 02:29:29 -0500 + [ Quentin Smith ] + * Add "reusable" column for nics, to avoid reusing addresses that are + special in some way. + + -- Quentin Smith Fri, 27 Feb 2009 11:51:39 -0500 invirt-database (0.1.7) unstable; urgency=low diff --git a/python/database/models.py b/python/database/models.py index 02b5092..067f9ca 100644 --- a/python/database/models.py +++ b/python/database/models.py @@ -53,7 +53,8 @@ nic_table = Table('nics', meta, Column('machine_id', Integer, ForeignKey('machines.machine_id'), nullable=True), Column('mac_addr', String, nullable=False, primary_key=True), Column('ip', String, nullable=False, unique=True), - Column('hostname', String, nullable=True)) + Column('hostname', String, nullable=True), + Column('reusable', Boolean, nullable=False, default=True)) disk_table = Table('disks', meta, Column('machine_id', Integer, ForeignKey('machines.machine_id'), nullable=False), -- 1.7.9.5