Changeset 106


Ignore:
Timestamp:
Oct 6, 2007, 7:35:24 PM (17 years ago)
Author:
ecprice
Message:

nics primary key should be mac address, not hostname.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/sipb-xen-database/sipb_xen_database/models.py

    r77 r106  
    3232nic_table = Table('nics', meta,
    3333       Column('machine_id', Integer, ForeignKey('machines.machine_id'), nullable=True),
    34        Column('mac_addr', String, nullable=False),
     34       Column('mac_addr', String, nullable=False, primary_key=True),
    3535       Column('ip', String, nullable=False),
    36        Column('hostname', String, primary_key=True, nullable=False))
     36       Column('hostname', String, nullable=True))
    3737
    3838disk_table = Table('disks', meta,
Note: See TracChangeset for help on using the changeset viewer.