X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Finstantiate%2FinstantiateInputParams.jsx;h=8ccebcb428c1f963c0de11c78489770fcadeca6c;hp=4db4a63bde964143a30ed3bdcd3eacd56558a744;hb=f22401cd2aeae1b9695c872ab49f340cabe105a8;hpb=3130c3b976dc11f641bce038fcfa1c101d156f12 diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx index 4db4a63bd..8ccebcb42 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx @@ -82,7 +82,7 @@ export default class InstantiateInputParams extends Component { isOpenMano(props.ro) ? dataCentersHTML( props.dataCenters[props.ro.name], - props.vnfFn.updateSelectedDataCenter.bind(null, v['member-vnf-index'])) + props.vnfFn.updateSelectedDataCenter.bind(null, v['member-vnf-index']), true) : null } { @@ -305,8 +305,14 @@ export default class InstantiateInputParams extends Component { ); } ipProfilesHTML = (props) => { + let vldHasIPprofile = false; + props.vlds && props.vlds.map(function(v){ + if(v.type == 'ip-profile-ref') { + vldHasIPprofile = true; + } + }) let ipProfileList = props.ipProfileList; - return ipProfileList && + return ipProfileList && vldHasIPprofile && (

IP Profiles

@@ -420,8 +426,9 @@ export default class InstantiateInputParams extends Component { { sshKeysRef.map(function(ref, i) { + let keyref = JSON.stringify(ref) return ( -
+