From e5476c0177144dccef48642129ad29c860d3cf7e Mon Sep 17 00:00:00 2001 From: lombardof Date: Mon, 28 May 2018 18:34:32 +0200 Subject: [PATCH] VNF info in project overview Change-Id: Ia7512d0928372a447cc0ad43a2699cabb0e1baf6 Signed-off-by: lombardof --- projecthandler/osm_model.py | 4 +++- .../template/project/osm/osm_project_details.html | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) 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
+
+ -- 2.25.1