X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_policy_module%2Fcore%2Fdatabase.py;h=3a896529831d8db116665b59b8b3c700b19d8458;hb=946821f0dcc61f0bf0fe6d78bc2dc7db2636296c;hp=e326ca277e9cba197ffc94f87754867c5718a8c3;hpb=f7451f8879d188c9fef9c976d82aa39141601938;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()