X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fcommon%2Fcommon_db_client.py;h=c6237eec941a0d5355ad8faf07934bc3474562d4;hb=91b1018e1c84758bbc47394f50d04fe3ee81d812;hp=920fe36d2ff1acaefb8d7935bd79700b2ca68991;hpb=4da146638bc3838270fa41c9f9fb91961f726c97;p=osm%2FMON.git diff --git a/osm_mon/common/common_db_client.py b/osm_mon/common/common_db_client.py index 920fe36..c6237ee 100644 --- a/osm_mon/common/common_db_client.py +++ b/osm_mon/common/common_db_client.py @@ -43,6 +43,9 @@ class CommonDbClient: return [self.get_vnfr(nsr_id, member['member-vnf-index']) for member in self.get_nsr(nsr_id)['nsd']['constituent-vnfd']] + def get_vnfrs(self): + return self.common_db.get_list('vnfrs') + def get_vnfd(self, vnfd_id: str): vnfr = self.common_db.get_one("vnfds", {"_id": vnfd_id})