From 2efbda22f27241546145752035a759016dd87430 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 4 May 2023 13:38:46 +0200 Subject: [PATCH] Update db_upgrade.py to append osm to metric_name to be BWC Change-Id: I8ed6497fe21a3db3ccf841795f8b92af1a95cc0b Signed-off-by: garciadeblas --- installers/charm/osm-update-db-operator/src/db_upgrade.py | 1 + 1 file changed, 1 insertion(+) 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 72eaa81f..295ce875 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 @@ class MongoUpgrade1214: 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") -- 2.25.1