Merge branch 'master' of https://osm.etsi.org/gerrit/osm/UI 01/1401/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Wed, 29 Mar 2017 16:08:19 +0000 (12:08 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Wed, 29 Mar 2017 17:59:11 +0000 (13:59 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
1  2 
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) {