Bug 1133 fixed git add .
[osm/MON.git] / osm_mon / dashboarder / service.py
index 9f184d2..14ea0b9 100644 (file)
@@ -69,7 +69,7 @@ class DashboarderService:
             constituent_vnfds = nsr['nsd']['constituent-vnfd']
             for constituent_vnfd in constituent_vnfds:
                 try:
-                    vnfd = self.common_db.get_vnfd_by_name(constituent_vnfd['vnfd-id-ref'])
+                    vnfd = self.common_db.get_vnfd_by_id(constituent_vnfd['vnfd-id-ref'])
                     # If there are metrics, create dashboard (if exists)
                     if 'monitoring-param' in vnfd:
                         if nsr_id not in dashboard_uids: