<div class="col-sm-8">
<select class="form-control" name="type" id="type"
ng-click="initTargetResourceId()" ng-model="type">
- <option value="VFC">VFC</option>
+ <option value="">-- choose an option --</option>
+ <option value="VFModule">VFModule</option>
<option value="VM">VM</option>
<option value="VNF">VNF</option>
</select>
<select class="form-control" name="resourceId" id="resourceId"
enableFilter="true" ng-click="changeTargetResourceId()"
ng-model="resourceId">
- <option value=""></option>
+ <option value="">-- choose an option --</option>
<option value="Other:">Other:</option>
</select>
</div>
$("#resourceId")
.append(
$('<option></option>').val("")
- .html(""));
+ .html("-- choose an option --"));
$("#resourceId").append(
$('<option></option>').val("Other:")
.html("Other:"));
}
}
- var resourceVfc = getResourceDetailsVfcProperty();
- if (type == "VFC"
- && (null !== resourceVfc || undefined !== resourceVfc)) {
+ var resourceVFModule = getResourceDetailsVfModuleProperty();
+ if (type == "VFModule"
+ && (null !== resourceVFModule || undefined !== resourceVFModule)) {
if (recipe == 'VF Module Create'
|| recipe == 'VF Module Delete') {
- for ( var prop in resourceVfc) {
- if (resourceVfc[prop]["isBase"] == false) {
- var name = resourceVfc[prop]["name"];
+ for ( var prop in resourceVFModule) {
+ if (resourceVFModule[prop]["isBase"] == false) {
+ var name = resourceVFModule[prop]["name"];
$("#resourceId").append(
$('<option></option>')
.val(name)
}
else
{
- for ( var prop in resourceVfc) {
- var name = resourceVfc[prop]["name"];
+ for ( var prop in resourceVFModule) {
+ var name = resourceVFModule[prop]["name"];
$("#resourceId").append(
$('<option></option>')
.val(name).html(name));
$("#modelVersionId").val("");
$("#modelVersion").val("");
$("#modelCustomizationId").val("");
- var resourceVfc = getResourceDetailsVfcProperty();
+ var resourceVFModule = getResourceDetailsVfModuleProperty();
var type = $("#type").val();
var recipe = $("#recipe").val();
vfBaseName = $(event.target).val();
- if (type == "VFC"
- && (null !== resourceVfc || undefined !== resourceVfc)
+ if (type == "VFModule"
+ && (null !== resourceVFModule || undefined !== resourceVFModule)
&& (recipe == 'VF Module Create' || recipe == 'VF Module Delete')) {
- for ( var prop in resourceVfc) {
- var name = resourceVfc[prop]["name"];
+ for ( var prop in resourceVFModule) {
+ var name = resourceVFModule[prop]["name"];
if (name == vfBaseName) {
- var vfModuleModelName = resourceVfc[prop]["name"];
+ var vfModuleModelName = resourceVFModule[prop]["name"];
$("#modelName").val(
vfModuleModelName);
- var vfModuleModelInvariantUUID = resourceVfc[prop]["invariantUUID"];
+ var vfModuleModelInvariantUUID = resourceVFModule[prop]["invariantUUID"];
$("#modelInvariantId").val(
vfModuleModelInvariantUUID);
- var vfModuleModelUUID = resourceVfc[prop]["UUID"];
+ var vfModuleModelUUID = resourceVFModule[prop]["UUID"];
$("#modelVersionId").val(
vfModuleModelUUID);
- var vfModuleModelVersion = resourceVfc[prop]["version"];
+ var vfModuleModelVersion = resourceVFModule[prop]["version"];
$("#modelVersion").val(
vfModuleModelVersion);
- var vfModuleModelCustomizationUUID = resourceVfc[prop]["customizationUUID"];
+ var vfModuleModelCustomizationUUID = resourceVFModule[prop]["customizationUUID"];
$("#modelCustomizationId")
.val(
vfModuleModelCustomizationUUID);
return cl_props["modelPropertiesJson"]["resourceDetails"]["VF"];
}
-function getResourceDetailsVfcProperty() {
- return cl_props["modelPropertiesJson"]["resourceDetails"]["VFC"];
+function getResourceDetailsVfModuleProperty() {
+ return cl_props["modelPropertiesJson"]["resourceDetails"]["VFModule"];
}
function getLoopLogsArray() {
return cl_props.loopLogs;
}
-module.exports = { getOperationalPolicyProperty,getGlobalProperty,getMsProperty,getMsUI,getLastUpdatedStatus,getDeploymentID,getDeploymentStatusURL,getResourceDetailsProperty,getResourceDetailsVfcProperty };
\ No newline at end of file
+module.exports = { getOperationalPolicyProperty,getGlobalProperty,getMsProperty,getMsUI,getLastUpdatedStatus,getDeploymentID,getDeploymentStatusURL,getResourceDetailsProperty,getResourceDetailsVfModuleProperty };
\ No newline at end of file