summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/pub/database
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-02-15 15:18:33 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-02-15 15:18:33 +0800
commit9a8f9cd744b44514cf94e15c84f315751f493c3c (patch)
tree5b84fb29cffd9773fb1a97d7f58d1cd9beb0c9d1 /lcm/lcm/pub/database
parent12af60d015b56b12768797e5729c43590366151d (diff)
Get inst resource before grant resource
Change-Id: I046b066d92b08deeb5bb6740482bfccacccf7d78 Issue-Id: GVNFM-14 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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/lcm/pub/database/models.py b/lcm/lcm/pub/database/models.py
index 03be360e..ff7f290d 100644
--- a/lcm/lcm/pub/database/models.py
+++ b/lcm/lcm/pub/database/models.py
@@ -171,6 +171,7 @@ class FlavourInstModel(models.Model):
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)
+ is_predefined = models.IntegerField(db_column='ISPREDEFINED', default=0, null=True)
class NetworkInstModel(models.Model):
class Meta:
@@ -256,6 +257,7 @@ class PortInstModel(models.Model):
tenant = models.CharField(db_column='TENANT', max_length=255, null=True)
interfacename = models.CharField(db_column='INTERFACENAME', max_length=255, blank=True, null=True)
vmid = models.CharField(db_column='VMID', max_length=255, blank=True, null=True)
+ is_predefined = models.IntegerField(db_column='ISPREDEFINED', default=0, null=True)
class CPInstModel(models.Model):
class Meta: