X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Fdashboarder%2Fservice.py;h=79cccb488b0f378c076c9e8ee2fd8628ffcdeeda;hb=refs%2Fchanges%2F68%2F10468%2F1;hp=0dd3d9036f165f2bc14281ffd458da7f338ee262;hpb=5ddcded2e122d6d705af90bc2462cc5938312ffd;p=osm%2FMON.git diff --git a/osm_mon/dashboarder/service.py b/osm_mon/dashboarder/service.py index 0dd3d90..79cccb4 100644 --- a/osm_mon/dashboarder/service.py +++ b/osm_mon/dashboarder/service.py @@ -27,7 +27,7 @@ from osm_mon.core.config import Config from osm_mon.core.keystone import KeystoneConnection from osm_mon.dashboarder.backends.grafana import GrafanaBackend from osm_mon import __path__ as mon_path -from osm_mon.dashboarder.utils import find_in_list +from osm_mon.core.utils import find_in_list, create_filter_from_nsr log = logging.getLogger(__name__) @@ -91,7 +91,7 @@ class DashboarderService: vnfds_profiles = nsr['nsd']["df"][0]['vnf-profile'] for vnf_profile in vnfds_profiles: try: - vnfd = self.common_db.get_vnfd_by_id(vnf_profile['vnfd-id']) + vnfd = self.common_db.get_vnfd_by_id(vnf_profile['vnfd-id'], create_filter_from_nsr(nsr)) # If there are metrics, create dashboard (if exists) vdu_found = find_in_list(vnfd["vdu"], lambda a_vdu: "monitoring-parameter" in a_vdu) if vdu_found: