From: lombardof Date: Mon, 28 May 2018 16:34:32 +0000 (+0200) Subject: VNF info in project overview X-Git-Tag: v4.0.1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=53dcb66c5209a08a645aa12cceb8f064e06a50fd;p=osm%2FLW-UI.git VNF info in project overview Change-Id: Ia7512d0928372a447cc0ad43a2699cabb0e1baf6 Signed-off-by: lombardof --- diff --git a/projecthandler/osm_model.py b/projecthandler/osm_model.py index 4776010..f3daedf 100644 --- a/projecthandler/osm_model.py +++ b/projecthandler/osm_model.py @@ -142,6 +142,7 @@ class OsmProject(ProjectStateless): nsd = client.nsd_list() vnfd = client.vnfd_list() ns = client.ns_list() + vnf = client.vnf_list() result = { 'owner': self.owner.__str__(), 'name': self.name, @@ -151,7 +152,8 @@ class OsmProject(ProjectStateless): 'nsd': len(nsd) if nsd else 0, 'vnfd': len(vnfd) if vnfd else 0, 'ns': len(ns) if ns else 0, - 'validated': self.validated + 'vnf': len(vnf) if vnf else 0, + #'validated': self.validated } return result diff --git a/projecthandler/template/project/osm/osm_project_details.html b/projecthandler/template/project/osm/osm_project_details.html index 8c5f8fc..9462902 100644 --- a/projecthandler/template/project/osm/osm_project_details.html +++ b/projecthandler/template/project/osm/osm_project_details.html @@ -66,6 +66,15 @@ class="fa fa-arrow-circle-right"> +
+
+

{{ project_overview.vnf }}

+

VNF Instances

+
+ Open list
+
+