X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osm_policy_module%2Fcore%2Fdatabase.py;h=3a896529831d8db116665b59b8b3c700b19d8458;hb=ee0192d166c17a5bd1b487bdada457116afdcf63;hp=e326ca277e9cba197ffc94f87754867c5718a8c3;hpb=baaf876bd7ae2e43493917ab8a0d6b65d4c831de;p=osm%2FPOL.git diff --git a/osm_policy_module/core/database.py b/osm_policy_module/core/database.py index e326ca2..3a89652 100644 --- a/osm_policy_module/core/database.py +++ b/osm_policy_module/core/database.py @@ -48,7 +48,7 @@ class BaseModel(Model): class ScalingGroup(BaseModel): nsr_id = CharField() - vnf_member_index = IntegerField() + vnf_member_index = CharField() name = CharField() content = TextField() @@ -71,7 +71,7 @@ class ScalingCriteria(BaseModel): class ScalingAlarm(BaseModel): alarm_uuid = CharField(unique=True) action = CharField() - vnf_member_index = IntegerField() + vnf_member_index = CharField() vdu_name = CharField() scaling_criteria = ForeignKeyField(ScalingCriteria, related_name='scaling_alarms', on_delete='CASCADE') last_status = CharField(default='insufficient-data') @@ -81,7 +81,7 @@ class VnfAlarm(BaseModel): alarm_id = CharField() alarm_uuid = CharField(unique=True) nsr_id = CharField() - vnf_member_index = IntegerField() + vnf_member_index = CharField() vdu_name = CharField()