| commit | 2efbda22f27241546145752035a759016dd87430 | [log] [tgz] |
|---|---|---|
| author | garciadeblas <gerardo.garciadeblas@telefonica.com> | Thu May 04 13:38:46 2023 +0200 |
| committer | garciadeblas <gerardo.garciadeblas@telefonica.com> | Tue May 09 08:29:26 2023 +0200 |
| tree | 82b37c4bf5efb329cea3dfb2c189548698c1392e | |
| parent | 986c308d5d89b8dbb3361ce2f1638b3285859d8e [diff] |
Update db_upgrade.py to append osm to metric_name to be BWC Change-Id: I8ed6497fe21a3db3ccf841795f8b92af1a95cc0b Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/installers/charm/osm-update-db-operator/src/db_upgrade.py b/installers/charm/osm-update-db-operator/src/db_upgrade.py index 72eaa81..295ce87 100644 --- a/installers/charm/osm-update-db-operator/src/db_upgrade.py +++ b/installers/charm/osm-update-db-operator/src/db_upgrade.py
@@ -136,6 +136,7 @@ for vdur in monitored_vdurs: vdu_id = vdur["vdu-id-ref"] metric_name = vnf_monitoring_param.get("performance-metric") + metric_name = f"osm_{metric_name}" vdu_name = vdur["name"] vnf_member_index = vnfr["member-vnf-index-ref"] scalein_threshold = scaling_criteria.get("scale-in-threshold")