Bug 1133 fixed git add .
[osm/MON.git] / osm_mon / core / common_db.py
index f15ae97..983d84d 100644 (file)
@@ -62,6 +62,11 @@ class CommonDbClient:
                                       {"_id": vnfd_id})
         return vnfd
 
+    def get_vnfd_by_id(self, vnfd_id: str):
+        vnfd = self.common_db.get_one("vnfds",
+                                      {"id": vnfd_id})
+        return vnfd
+
     def get_vnfd_by_name(self, vnfd_name: str):
         # TODO: optimize way of getting single VNFD in shared enviroments (RBAC)
         if self.common_db.get_list("vnfds", {"name": vnfd_name}):