From 5403f5493cd2d40908ba5a734c725e181bf550b1 Mon Sep 17 00:00:00 2001 From: Felipe Vicens Date: Fri, 22 May 2020 16:37:39 +0200 Subject: [PATCH 1/1] Filter with project in slice nsd selection Change-Id: Id0141df33b8470bc6739b26da0fd72166c160972 Signed-off-by: Felipe Vicens --- osm_nbi/instance_topics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index 6ac3bce..e091abd 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -1420,7 +1420,9 @@ class NsiLcmOpTopic(BaseTopic): if nstId == netslice_subnet["id"]: nsd_id = netslice_subnet["nsd-ref"] if nsd_id not in nsds: - nsds[nsd_id] = self.db.get_one("nsds", {"id": nsd_id}) + _filter = self._get_project_filter(session) + _filter["id"] = nsd_id + nsds[nsd_id] = self.db.get_one("nsds", _filter) return nsds[nsd_id] else: raise EngineException("Invalid parameter nstId='{}' is not one of the " -- 2.17.1