{"_id": vnfd_id})
return vnfd
- def get_vnfd_by_id(self, vnfd_id: str):
- vnfd = self.common_db.get_one("vnfds",
- {"id": vnfd_id})
+ def get_vnfd_by_id(self, vnfd_id: str, filter: dict = {}):
+ filter["id"] = vnfd_id
+ vnfd = self.common_db.get_one("vnfds", filter)
return vnfd
def get_vnfd_by_name(self, vnfd_name: str):