X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Finstantiate%2FinstantiateInputParams.jsx;h=d1e295c03d01bcc90714aba719a33398b253af62;hp=5f1cc8a7d01d65e50e6d1510c8958eafec3da78a;hb=aa69ba06ab35143e5858273ed7aeab70b624109b;hpb=a6bd6f8c6d9c17c647b1c9f6e04b51676d14b53a diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateInputParams.jsx index 5f1cc8a7d..d1e295c03 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 } { @@ -259,10 +259,11 @@ export default class InstantiateInputParams extends Component { {vlds && vlds.map(function(v, i) { let currentType = v.type; let isVIM = (currentType == 'vim-network-name'); - let isUnknown = (currentType == 'unknown') || ((currentType != 'vim-network-name') && (currentType != 'ip-profile-ref')); + let isUnknown = (currentType == 'none') || ((currentType != 'vim-network-name') && (currentType != 'ip-profile-ref')); return (
-

VLD: {v['short-name']}

+

VLD: {v['short-name'] ? v['short-name'] : v['name']}

+
{ @@ -305,8 +306,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 +355,11 @@ export default class InstantiateInputParams extends Component { onChange={props.ipProfileFn.updateProfile(j, 'security-group')} value={ipl['security-group']} /> +