From: Quentin Smith <quentin@mit.edu>
Date: Fri, 27 Feb 2009 16:56:20 +0000 (-0500)
Subject: Add "reusable" column for nics, to avoid reusing addresses that are special in some... 
X-Git-Tag: 0.1.8^0
X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/commitdiff_plain/e8e9ad0a0d67dc92899a499ab42dccae285d76ba?ds=inline;hp=66d08ff5bec3db89c6bedf399c0b6f5ae5f821c5

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

svn path=/trunk/packages/invirt-database/; revision=2211
---

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 <price@mit.edu>  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 <quentin@mit.edu>  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),