summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src
diff options
context:
space:
mode:
authorSonsino, Ofir (os0695) <os0695@intl.att.com>2018-03-28 12:42:14 +0300
committerSonsino, Ofir (os0695) <os0695@intl.att.com>2018-03-28 12:42:14 +0300
commitf5485e25370ba15228845da85bdf856ac22bbbd5 (patch)
tree03c5c3a4ba8b30dff8d71ce2cec84be2e97b6144 /vid-app-common/src
parentb1c8e14d685ba237ad5613caba6f0f7c307fc5ef (diff)
PNF Plug & Play use case
Change-Id: I6901e9cd61d09dd770c57b4310f5c6d71fd41bc5 Issue-ID: VID-203 Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src')
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js7
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/services/creationService.js5
2 files changed, 11 insertions, 1 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js b/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js
index d7f429a6e..fc051d028 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/constants/fieldConstants.js
@@ -28,6 +28,7 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) {
var ID = {
AVAILABLE_VOLUME_GROUP: "availableVolumeGroup",
INSTANCE_NAME: "instanceName",
+ PNF_ID: "pnfId",
LCP_REGION: "lcpRegion",
LCP_REGION_TEXT: "lcpRegionText",
PRODUCT_FAMILY: "productFamily",
@@ -155,6 +156,7 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) {
var NAME = {
AVAILABLE_VOLUME_GROUP: "Available Volume Group",
INSTANCE_NAME: "Instance Name",
+ PNF_ID: "PNF (Correlation) ID",
CUSTOMER_ID: "Customer ID",
LCP_REGION: "LCP Region",
LCP_REGION_TEXT: "Legacy Region",
@@ -337,6 +339,11 @@ appDS2.factory("FIELD", ["PARAMETER", function (PARAMETER) {
id: ID.INSTANCE_NAME,
isRequired: true
},
+ PNF_ID: {
+ name: NAME.PNF_ID,
+ id: ID.PNF_ID,
+ isRequired: false
+ },
LCP_REGION: {
name: NAME.LCP_REGION,
id: ID.LCP_REGION,
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 838ab3719..56ec715b5 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
@@ -241,7 +241,10 @@ var CreationService = function($log, AaiService, AsdcService, DataService,VIDCON
parameterList = parameterList.concat([ getProjectParameter() ]);
parameterList = parameterList.concat([ getOwningEntityParameter() ]);
-
+ //if service model has a pnf, add a PNF ID parameter
+ if (DataService.getPnf()) {
+ parameterList = parameterList.concat([ FIELD.PARAMETER.PNF_ID ]);
+ }
}
else {
parameterList = [ FIELD.PARAMETER.INSTANCE_NAME ];