~markmc/nova/flat-dhcp-without-bridge-iface

« back to all changes in this revision

Viewing changes to nova/db/sqlalchemy/models.py

  • Committer: Tarmac
  • Author(s): Ryu Ishimoto, Dan Wendlandt
  • Date: 2011-08-19 08:54:49 UTC
  • mfrom: (1360.7.18 nova-quantum-vifid)
  • Revision ID: tarmac-20110819085449-g5rs3tfsdhumopsr
Added uuid column in virtual_interfaces table, and an OpenStack extension API for virtual interfaces to expose these IDs.  Also set this UUID as one of the external IDs in the OVS vif driver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
570
570
    instance_id = Column(Integer, ForeignKey('instances.id'), nullable=False)
571
571
    instance = relationship(Instance, backref=backref('virtual_interfaces'))
572
572
 
 
573
    uuid = Column(String(36))
 
574
 
573
575
    @property
574
576
    def fixed_ipv6(self):
575
577
        cidr_v6 = self.network.cidr_v6