}
}
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;
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';
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
})
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) => {
return (
<div className="nsConfigPrimitives vnfrConfigPrimitives">
<div className="launchpadCard_title">
- CONFIG-PRIMITIVES {displayConfigStatus}
+ SERVICE-PRIMITIVES {displayConfigStatus}
</div>
<div className={isConfiguring ? 'configuring': 'nsConfigPrimitiveTabs'}>
<Tabs onSelect={this.handleSelect}>
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'];