aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js32
-rw-r--r--vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOCreateNetworkALaCarteOldViewEdit.java3
2 files changed, 8 insertions, 27 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js
index 15ba51941..242a3dc8a 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js
@@ -714,45 +714,23 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON
break;
case COMPONENT.VNF:
-
- requestDetails.requestInfo.productFamilyId = getValueFromList(
- FIELD.ID.PRODUCT_FAMILY, parameterList);
-
- var lineOfBusiness = getValueFromList(FIELD.ID.LINE_OF_BUSINESS, parameterList);
-
- if(lineOfBusiness) {
- requestDetails.lineOfBusiness = {
- lineOfBusinessName: lineOfBusiness
- };
- }
-
- requestDetails.platform = {
- platformName: getValueFromList(FIELD.ID.PLATFORM, parameterList)
- };
-
- break;
case COMPONENT.NETWORK:
requestDetails.requestInfo.productFamilyId = getValueFromList(
FIELD.ID.PRODUCT_FAMILY, parameterList);
var lineOfBusiness = getValueFromList(FIELD.ID.LINE_OF_BUSINESS, parameterList);
-
if(lineOfBusiness) {
- var lineOfBusinessNamesString = _.map(lineOfBusiness, "name").join(", ");
-
requestDetails.lineOfBusiness = {
- lineOfBusinessName: lineOfBusinessNamesString
+ lineOfBusinessName: lineOfBusiness
};
}
var platform = getValueFromList(FIELD.ID.PLATFORM, parameterList);
- if(platform !== null && platform !== ""){
- requestDetails.platform = {
- platformName: platform
- };
+ if (platform !== null && platform !== "") {
+ requestDetails.platform = {
+ platformName: platform
+ };
}
-
-
break;
case COMPONENT.VF_MODULE:
requestDetails.requestParameters.usePreload = getValueFromList(
diff --git a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOCreateNetworkALaCarteOldViewEdit.java b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOCreateNetworkALaCarteOldViewEdit.java
index fd70723ad..64ed5c91b 100644
--- a/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOCreateNetworkALaCarteOldViewEdit.java
+++ b/vid-automation/src/main/java/org/onap/simulator/presetGenerator/presets/mso/PresetMSOCreateNetworkALaCarteOldViewEdit.java
@@ -41,6 +41,9 @@ public class PresetMSOCreateNetworkALaCarteOldViewEdit extends PresetMSOBaseCrea
" \"testApi\": \"GR_API\"," +
" \"userParams\": []" +
" }," +
+ " \"lineOfBusiness\": {" +
+ " \"lineOfBusinessName\": \"zzz1\"" +
+ " }," +
" \"cloudConfiguration\": {" +
" \"lcpCloudRegionId\": \"One\"," +
addCloudOwnerIfNeeded() +