commit | 6a42f6fe4f1250d1a7bb4e041a725627a4cade9e | [log] [tgz] |
---|---|---|
author | ojasdubey <ojas.dubey@amdocs.com> | Wed Apr 11 15:24:34 2018 +0530 |
committer | Oren Kleks <orenkle@amdocs.com> | Wed Apr 11 10:54:14 2018 +0000 |
tree | 4ffd84838d679a238cd15f0b88cba67e36e86b4b | |
parent | 57d7f55afe4c21d4cd6ad121d61c0f5239483ef4 [diff] |
Subinterface_indicator property create VF bug fix Added toggle to fix regression bug for create VF when VLAN tagging is not enabled. Change-Id: I7751ae1a7ba48315319b5522cc230ece2f46e84d Issue-ID: SDC-1206 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/services/heattotosca/UnifiedCompositionService.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/services/heattotosca/UnifiedCompositionService.java index 86a360b..e8a4656 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/services/heattotosca/UnifiedCompositionService.java +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/services/heattotosca/UnifiedCompositionService.java
@@ -50,6 +50,7 @@ import org.openecomp.config.api.Configuration; import org.openecomp.config.api.ConfigurationManager; import org.openecomp.core.utilities.CommonMethods; +import org.openecomp.sdc.common.togglz.ToggleableFeature; import org.openecomp.sdc.datatypes.configuration.ImplementationConfiguration; import org.openecomp.sdc.heat.services.HeatConstants; import org.openecomp.sdc.tosca.datatypes.ToscaFunctions; @@ -2166,7 +2167,8 @@ } if (unifiedCompositionEntity == UnifiedCompositionEntity.PORT - && entityConsolidationData instanceof PortTemplateConsolidationData) { + && entityConsolidationData instanceof PortTemplateConsolidationData + && ToggleableFeature.VLAN_TAGGING.isActive()) { properties.put(SUB_INTERFACE_INDICATOR_PROPERTY, ((PortTemplateConsolidationData) entityConsolidationData).isPortBoundToSubInterface()); }