Changeset 107 for trunk/packages/sipb-xen-database
- Timestamp:
- Oct 6, 2007, 8:03:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/sipb-xen-database/sipb_xen_database/models.py
r106 r107 33 33 Column('machine_id', Integer, ForeignKey('machines.machine_id'), nullable=True), 34 34 Column('mac_addr', String, nullable=False, primary_key=True), 35 Column('ip', String, nullable=False ),35 Column('ip', String, nullable=False, unique=True), 36 36 Column('hostname', String, nullable=True)) 37 37 … … 55 55 56 56 class NIC(object): 57 pass 57 def __init__(self, machine_id, mac_addr, ip, hostname): 58 self.machine_id = machine_id 59 self.mac_addr = mac_addr 60 self.ip = ip 61 self.hostname = hostname 58 62 59 63 class Disk(object):
Note: See TracChangeset
for help on using the changeset viewer.