diff options
author | aleemraja <ar00500721@techmahindra.com> | 2020-09-16 20:47:08 +0530 |
---|---|---|
committer | aleemraja <ar00500721@techmahindra.com> | 2020-09-16 20:47:50 +0530 |
commit | 23a9fcc45932f062053beed77ce6a4763a28e5cd (patch) | |
tree | ae91ccc28078affcde457a89e2302294e15c072a /src/main | |
parent | 95de516749c1b673162707e4a33c6b60c1bd8c71 (diff) |
Enhancement to SO macro flow support7.0.2
- Added skip_post_instantiation_configuration as Vnf Level Params
- Decision to set k8s-rb-profile name as default or not
Issue-ID: EXTAPI-513
Signed-off-by: aleemraja <ar00500721@techmahindra.com>
Change-Id: I6bb9786660f6760c19669132e2c254e7f9b23323
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/nbi/apis/servicecatalog/ToscaInfosProcessor.java | 5 | ||||
-rw-r--r-- | src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/main/java/org/onap/nbi/apis/servicecatalog/ToscaInfosProcessor.java b/src/main/java/org/onap/nbi/apis/servicecatalog/ToscaInfosProcessor.java index 67f157e..1c04581 100644 --- a/src/main/java/org/onap/nbi/apis/servicecatalog/ToscaInfosProcessor.java +++ b/src/main/java/org/onap/nbi/apis/servicecatalog/ToscaInfosProcessor.java @@ -61,7 +61,7 @@ public class ToscaInfosProcessor { private Set<String> vnfInstanceParams = new HashSet<String>(Arrays.asList("onap_private_net_id", "onap_private_subnet_id", "pub_key", "sec_group", "install_script_version", "demo_artifacts_version", - "cloud_env", "public_net_id", "aic-cloud-region", "image_name", "flavor_name")); + "cloud_env", "public_net_id", "aic-cloud-region", "image_name", "flavor_name", "skip_post_instantiation_configuration")); final ObjectMapper mapper = new ObjectMapper(new YAMLFactory()); // jackson databind @@ -290,6 +290,9 @@ public class ToscaInfosProcessor { GetInput getInput = (GetInput) property.getValue(); listOfVFLevelInputs.put(getInput.getInputName(), getInput.result()); listOfVFLevelInputs.remove(property.getName()); + } else if(property.getName().equals("skip_post_instantiation_configuration")) { + //Add skip_post_instantiation_configuration as vf Level Inputs + listOfVFLevelInputs.put(property.getName(), property.getValue()); } } diff --git a/src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java b/src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java index c356bdd..0cafcde 100644 --- a/src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java +++ b/src/main/java/org/onap/nbi/apis/serviceorder/workflow/PostSoProcessor.java @@ -288,7 +288,9 @@ public class PostSoProcessor { instanceSpecification.putAll(vnfInstanceParams); vnfInstanceParam.add(instanceSpecification); } else { - vnfInstanceParams.put("k8s-rb-profile-name", k8sRbProfileName); + //if skip_post_instantiation_configuration is true then add k8s-rb-profile-name + if(instanceSpecification.get("skip_post_instantiation_configuration").equals(true)) + vnfInstanceParams.put("k8s-rb-profile-name", k8sRbProfileName); vnfInstanceParam.add(vnfInstanceParams); } @@ -337,7 +339,8 @@ public class PostSoProcessor { } else { Map<String, Object> instanceParam = new HashMap<>(); - instanceParam.put("k8s-rb-profile-name", k8sRbProfileName); + if(instanceSpecification.get("skip_post_instantiation_configuration").equals(true)) + instanceParam.put("k8s-rb-profile-name", k8sRbProfileName); vfInstanceParam.add(instanceParam); } |