From: KIRAN KASHALKAR Date: Mon, 27 Feb 2017 20:24:28 +0000 (-0500) Subject: Revert "RIFT-15669: Launchpad UI - RIFT.ware DEB install - Viewport - service primiti... X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F03%2F1203%2F1;p=osm%2FUI.git Revert "RIFT-15669: Launchpad UI - RIFT.ware DEB install - Viewport - service primitive tab for ping_vnfd" This reverts commit c2edea79c193c2817fdf42a3b3dca683335dffa7. --- diff --git a/skyquake/plugins/launchpad/api/launchpad.js b/skyquake/plugins/launchpad/api/launchpad.js index 688d7756d..6fb01704a 100644 --- a/skyquake/plugins/launchpad/api/launchpad.js +++ b/skyquake/plugins/launchpad/api/launchpad.js @@ -838,7 +838,7 @@ NSR.addVnfrDataPromise = function(req, nsrs) { } } var vnfrNfviMetrics = buildNfviGraphs(vnfr.vdur, vnfrName); - if (vnfr['vnf-configuration'] && vnfr['vnf-configuration']['config-primitive'] && vnfr['vnf-configuration']['config-primitive'].length > 0) { + if (vnfr['vnf-configuration'] && vnfr['vnf-configuration']['service-primitive'] && vnfr['vnf-configuration']['service-primitive'].length > 0) { vnfrObj['service-primitives-present'] = true; } else { vnfrObj['service-primitives-present'] = false; @@ -1276,7 +1276,7 @@ VNFR.get = function(req) { returnData.forEach(function(vnfr) { vnfr['nfvi-metrics'] = buildNfviGraphs(vnfr.vdur); vnfr['epa-params'] = epa_aggregator(vnfr.vdur); - vnfr['service-primitives-present'] = (vnfr['vnf-configuration'] && vnfr['vnf-configuration']['config-primitive'] && vnfr['vnf-configuration']['config-primitive'].length > 0) ? true : false; + vnfr['service-primitives-present'] = (vnfr['vnf-configuration'] && vnfr['vnf-configuration']['service-primitive'] && vnfr['vnf-configuration']['service-primitive'].length > 0) ? true : false; vnfr['vdur'] && vnfr['vdur'].map(function(vdur, vdurIndex) { // This console-url is what front-end will hit to generate a real console-url vdur['console-url'] = 'api/vnfr/' + vnfr.id + '/vdur/' + vdur.id + '/console-url'; diff --git a/skyquake/plugins/launchpad/src/launchpad_card/vnfrConfigPrimitives.jsx b/skyquake/plugins/launchpad/src/launchpad_card/vnfrConfigPrimitives.jsx index 94ad3020b..d9b718238 100644 --- a/skyquake/plugins/launchpad/src/launchpad_card/vnfrConfigPrimitives.jsx +++ b/skyquake/plugins/launchpad/src/launchpad_card/vnfrConfigPrimitives.jsx @@ -46,7 +46,7 @@ handleParamChange = (paramIndex, configPrimitiveIndex, vnfrIndex, e) => { let vnfrs = this.state.vnfrs; - vnfrs[vnfrIndex]["vnf-configuration"]["config-primitive"][configPrimitiveIndex]["parameter"][paramIndex].value = e.target.value + vnfrs[vnfrIndex]["vnf-configuration"]["service-primitive"][configPrimitiveIndex]["parameter"][paramIndex].value = e.target.value this.setState({ vnfrs: vnfrs }) @@ -63,8 +63,8 @@ constructConfigPrimitiveTabs = (tabList, tabPanels) => { let mandatoryFieldValue = 'true'; this.state.vnfrs && this.state.vnfrs.map((vnfr, vnfrIndex) => { - if (vnfr['vnf-configuration'] && vnfr['vnf-configuration']['config-primitive'] && vnfr['vnf-configuration']['config-primitive'].length > 0) { - vnfr['vnf-configuration']['config-primitive'].map((configPrimitive, configPrimitiveIndex) => { + if (vnfr['vnf-configuration'] && vnfr['vnf-configuration']['service-primitive'] && vnfr['vnf-configuration']['service-primitive'].length > 0) { + vnfr['vnf-configuration']['service-primitive'].map((configPrimitive, configPrimitiveIndex) => { let params = []; if (configPrimitive['parameter'] && configPrimitive['parameter'].length > 0) { configPrimitive['parameter'].map((param, paramIndex) => { @@ -123,7 +123,7 @@ return (
- CONFIG-PRIMITIVES {displayConfigStatus} + SERVICE-PRIMITIVES {displayConfigStatus}
diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx index 31b1ed631..50a3585d5 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx +++ b/skyquake/plugins/launchpad/src/recordViewer/recordCard.jsx @@ -329,7 +329,7 @@ export default class RecordCard extends React.Component { if (this.props.type == 'nsr') { primitivesTabTitle = 'Service Primitive'; } else if (this.props.type == 'vnfr') { - primitivesTabTitle = 'Config Primitive' + primitivesTabTitle = 'Service Primitive' } tabList.push( diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js b/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js index bf6485968..a7770a7fa 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js +++ b/skyquake/plugins/launchpad/src/recordViewer/recordViewStore.js @@ -137,7 +137,7 @@ class RecordViewStore { let configPrimitiveIndex = data.configPrimitiveIndex; let payload = {}; let isValid = true; - let configPrimitive = vnfrs[vnfrIndex]['vnf-configuration']['config-primitive'][configPrimitiveIndex]; + let configPrimitive = vnfrs[vnfrIndex]['vnf-configuration']['service-primitive'][configPrimitiveIndex]; payload['name'] = ''; payload['nsr_id_ref'] = vnfrs[vnfrIndex]['nsr-id-ref'];