summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@yahoo.com>2010-08-17 13:02:11 -0700
committerVishvananda Ishaya <vishvananda@yahoo.com>2010-08-17 13:02:11 -0700
commit8a8a1400426ca5355fa778ee34edc7b72ae74566 (patch)
tree05943f2d2131d2744ee43b0e567dbbd66a51e9bf
parent383764fb36858f5f7f2b36ca283563d2581dabdb (diff)
downloadnova-8a8a1400426ca5355fa778ee34edc7b72ae74566.tar.gz
nova-8a8a1400426ca5355fa778ee34edc7b72ae74566.tar.xz
nova-8a8a1400426ca5355fa778ee34edc7b72ae74566.zip
start with model code
-rw-r--r--nova/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/nova/models.py b/nova/models.py
index 561a722fc..e4075faeb 100644
--- a/nova/models.py
+++ b/nova/models.py
@@ -193,6 +193,18 @@ class Volume(Base, NovaBase):
attach_status = Column(String) # FIXME enum
delete_on_termination = Column(Boolean)
+class Network(Base, NovaBase):
+ __tablename__ = 'networks'
+
+class FixedIp(Base, NovaBase):
+ __tablename__ = 'fixed_ips'
+
+class ElasticIp(Base, NovaBase):
+ __tablename__ = 'elastic_ips'
+
+class Vpn(Base, NovaBase):
+ __tablename__ = 'vpns'
+
def create_session(engine=None):
return NovaBase.get_session()