Update ns.py to append osm to metric_name to be BWC 42/13342/2
authoraguilard <e.dah.tid@telefonica.com>
Mon, 8 May 2023 15:09:37 +0000 (15:09 +0000)
committeraguilard <e.dah.tid@telefonica.com>
Tue, 9 May 2023 15:19:54 +0000 (17:19 +0200)
Change-Id: I9319296e0f79dcab95878a925977514847c770db
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
osm_lcm/ns.py

index 83869bc..dcb044c 100644 (file)
@@ -2428,6 +2428,7 @@ class NsLcm(LcmBase):
                         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}"
                             vnf_member_index = vnfr["member-vnf-index-ref"]
                             scalein_threshold = scaling_criteria.get(
                                 "scale-in-threshold"