summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/pub/database
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-02-13 17:09:26 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-02-13 17:09:26 +0800
commit5b35b59a536d91e4223335382ef73f0558624b3b (patch)
tree432e962be8b34a23fc8207710bfa965d80a31609 /lcm/lcm/pub/database
parent057f476a9cd43777452adb9ed34b2de595c748ed (diff)
Update database table module define
Change-Id: I6b53fbf60bd26b09182ace6fe1cd0377e0dec625 Issue-Id: GVNFM-8 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm/lcm/pub/database')
-rw-r--r--lcm/lcm/pub/database/models.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/lcm/lcm/pub/database/models.py b/lcm/lcm/pub/database/models.py
index 23376681..03be360e 100644
--- a/lcm/lcm/pub/database/models.py
+++ b/lcm/lcm/pub/database/models.py
@@ -113,6 +113,27 @@ class NfvoRegInfoModel(models.Model):
servercert = models.CharField(max_length=255, db_column='SERVERCERT', null=True)
regtime = models.CharField(max_length=255, db_column='REGTIME')
+class StorageInstModel(models.Model):
+ class Meta:
+ db_table = 'STORAGEINST'
+
+ storageid = models.CharField(db_column='STORAGEID', primary_key=True, max_length=255)
+ vimid = models.CharField(db_column='VIMID', max_length=255)
+ resouceid = models.CharField(db_column='RESOURCEID', max_length=255)
+ insttype = models.IntegerField(db_column='INSTTYPE')
+ instid = models.CharField(db_column='INSTID', max_length=255)
+ name = models.CharField(db_column='NAME', max_length=255, null=True)
+ storagetype = models.CharField(db_column='STORAGETYPE', max_length=255)
+ size = models.CharField(db_column='SIZE', max_length=255)
+ rdmaenabled = models.IntegerField(db_column='RDMAENABLED', null=True)
+ disktype = models.CharField(db_column='DISKTYPE', max_length=255)
+ ownerid = models.CharField(db_column='OWNERID', max_length=255, null=True)
+ zoneid = models.CharField(db_column='ZONEID', max_length=255, null=True)
+ hostid = models.CharField(db_column='HOSTID', max_length=255, null=True)
+ operationalstate = models.CharField(db_column='OPERATIONALSTATE', max_length=255, null=True)
+ tenant = models.CharField(db_column='TENANT', max_length=50, null=True)
+ is_predefined = models.IntegerField(db_column='ISPREDEFINED', default=0, null=True)
+
class VmInstModel(models.Model):
class Meta:
db_table = 'VMINST'
@@ -140,6 +161,17 @@ class VNFCInstModel(models.Model):
nfinstid = models.CharField(db_column='NFINSTID', max_length=255)
vmid = models.CharField(db_column='VMID', max_length=255)
+class FlavourInstModel(models.Model):
+ class Meta:
+ db_table = 'FLAVOURINST'
+
+ flavourid = models.CharField(db_column='FLAVOURID', max_length=255, primary_key=True)
+ name = models.CharField(db_column='NAME', max_length=255)
+ vcpu = models.CharField(db_column='VCPU', max_length=255)
+ memory = models.CharField(db_column='MEMORY', max_length=255)
+ extraspecs = models.CharField(db_column='EXTRASPECS', max_length=255)
+ instid = models.CharField(db_column='INSTID', max_length=255)
+
class NetworkInstModel(models.Model):
class Meta:
db_table = 'NETWORKINST'