From: Laurence Maultsby Date: Wed, 29 Mar 2017 16:08:19 +0000 (-0400) Subject: Merge branch 'master' of https://osm.etsi.org/gerrit/osm/UI X-Git-Tag: v2.0.0~20 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=27f05540369a9d925aff51c38e51d3f4f172ab5c;p=osm%2FUI.git Merge branch 'master' of https://osm.etsi.org/gerrit/osm/UI Signed-off-by: Laurence Maultsby --- 27f05540369a9d925aff51c38e51d3f4f172ab5c diff --cc skyquake/plugins/launchpad/api/launchpad.js index 6fb01704a,6fb01704a..d74bb3e2e --- a/skyquake/plugins/launchpad/api/launchpad.js +++ b/skyquake/plugins/launchpad/api/launchpad.js @@@ -790,8 -790,8 +790,14 @@@ NSR.addVnfrDataPromise = function(req, try { if (nsr["monitoring-param"]) { nsr["monitoring-param"].map(function(m) { -- var vnfr = vnfrs[m["vnfr-id"]] || {}; ++ // var vnfr = vnfrs[m["vnfr-id"]] || {}; ++ // m["vnfr-name"] = vnfr['name'] ? vnfr['name'] : (vnfr['short-name'] ? vnfr['short-name'] : 'VNFR'); ++ var groupTag = m['group-tag']; ++ var vnfrId = m['vnfr-mon-param-ref'] && m['vnfr-mon-param-ref'][0] && m['vnfr-mon-param-ref'][0]['vnfr-id-ref']; ++ var vnfr = vnfrs[vnfrId] || {}; m["vnfr-name"] = vnfr['name'] ? vnfr['name'] : (vnfr['short-name'] ? vnfr['short-name'] : 'VNFR'); ++ m['group-tag'] = (groupTag ? (groupTag + ' - ') : '') + m['vnfr-name'] + (vnfrId ? ' (' + vnfrId.substring(1,8) + '...)' : ''); ++ }); } } catch (e) {