X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Finstantiate%2FinstantiateInputParams.jsx;h=164403cadd703db75180faf7695bee5d4e50c60c;hp=ec40ccfc1f5e43b251a3f3ba7e2d6cf2f96d71a4;hb=e0eecf285728f37ca256fdc8ee6656ea934040a2;hpb=71c8bf54e57ac5b4b0e0a45581aeb3bde3e70f00 diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx index ec40ccfc1..164403cad 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

@@ -348,6 +354,11 @@ export default class InstantiateInputParams extends Component { onChange={props.ipProfileFn.updateProfile(j, 'security-group')} value={ipl['security-group']} /> +