From a30778c360c0bcb8051e395e0ac4e9a3225c903a Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 21 Aug 2019 21:58:54 -0700 Subject: fix a nested node type issue the newly added node type is considered as nested when substitution_mapping is enabled in TOSCA yaml file Change-Id: Ibdee29d7a553c7b1ce085cbe971ceace6c4488f5 Issue-ID: SDC-2282 Signed-off-by: Liang Ding --- .../src/main/java/org/openecomp/sdc/be/model/NodeTypeInfo.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'catalog-model') diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/NodeTypeInfo.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/NodeTypeInfo.java index 5026fff129..817060e309 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/NodeTypeInfo.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/NodeTypeInfo.java @@ -28,6 +28,7 @@ public class NodeTypeInfo { String templateFileName; List derivedFrom; boolean isNested; + boolean isSubstitutionMapping; Map mappedToscaTemplate; public NodeTypeInfo getUnmarkedCopy(){ @@ -64,6 +65,12 @@ public class NodeTypeInfo { public void setNested(boolean isNested) { this.isNested = isNested; } + public boolean isSubstitutionMapping() { + return isSubstitutionMapping; + } + public void setSubstitutionMapping(boolean isSubstitutionMapping) { + this.isSubstitutionMapping = isSubstitutionMapping; + } public Map getMappedToscaTemplate() { return mappedToscaTemplate; -- cgit 1.2.3-korg