projects
/
osm
/
POL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds vnf_member_index attribute to ScalingGroup model
[osm/POL.git]
/
osm_policy_module
/
core
/
database.py
diff --git
a/osm_policy_module/core/database.py
b/osm_policy_module/core/database.py
index
5d927d0
..
8ad19f2
100644
(file)
--- a/
osm_policy_module/core/database.py
+++ b/
osm_policy_module/core/database.py
@@
-44,6
+44,7
@@
class BaseModel(Model):
class ScalingGroup(BaseModel):
nsr_id = CharField()
class ScalingGroup(BaseModel):
nsr_id = CharField()
+ vnf_member_index = IntegerField()
name = CharField()
content = TextField()
name = CharField()
content = TextField()
@@
-51,7
+52,7
@@
class ScalingGroup(BaseModel):
class ScalingPolicy(BaseModel):
name = CharField()
cooldown_time = IntegerField()
class ScalingPolicy(BaseModel):
name = CharField()
cooldown_time = IntegerField()
- last_scale = DateTimeField(default=datetime.datetime.
min
)
+ last_scale = DateTimeField(default=datetime.datetime.
now
)
scaling_group = ForeignKeyField(ScalingGroup, related_name='scaling_policies')
scaling_group = ForeignKeyField(ScalingGroup, related_name='scaling_policies')